Code Monkey home page Code Monkey logo

cas-mock-server's People

Contributors

ceharris avatar dependabot[bot] avatar mikesir87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cas-mock-server's Issues

Add support LDAP attributes provider

Should support any LDAP attributes using simple bind with a fixed DN and password or an anonymous search by username and subsequent simple bind with the username as the password.

Follow on enhancement could support SASL EXTERNAL bind with a certificate.

FileNotFoundException: http://localhost:8085/cas/p3/serviceValidate

Hello,

I am trying to use cas-mock-server to test my CAS configuration on a Spring-Boot application without been able to access my company CAS server. But, I am getting a FileNotFoundException.

I know for sure that my current client configuration does work on a CAS 3 server.

I tried using the ATTRIBUTES_JSON_URL attribut with a JSON available at the http://localhost/json/cas.json URL.
But, this doesn't seem to be linked to the issue.

What am I missing to correctly set up this cas-mock-server?

use https on localhost

Hello

I'm using th Docker image, but when I'm on HTTPS, it's doesn't work... :'(
"SSL_ERROR_RX_RECORD_TOO_LONG"

Did you have already this error ?

Thnaks in advance for your help

My Docker config
version: '3'
services:
cas-mock-server:
container_name: phpCAS
image: soulwing/cas-mock-server
ports:
- "8085:8080"
- "8443:8443"
volumes:
- C:/certif:/etc/cas

How should I add a CorsFilter?

This might be a stupid question, I'd like to add CORS related header to all the response, I've tried following Filter class and then rebuild redeploy to the tomcat, but seems like the filter class didn't get scanned.

@Provider
public class CorsFilter implements ContainerResponseFilter {

    @Override
    public void filter(ContainerRequestContext requestContext, 
      ContainerResponseContext responseContext) throws IOException {
          responseContext.getHeaders().add(
            "Access-Control-Allow-Origin", "*");
          responseContext.getHeaders().add(
            "Access-Control-Allow-Credentials", "true");
          responseContext.getHeaders().add(
           "Access-Control-Allow-Headers",
           "origin, content-type, accept, authorization");
          responseContext.getHeaders().add(
            "Access-Control-Allow-Methods", 
            "GET, POST, PUT, DELETE, OPTIONS, HEAD");
    }
}

I was wondering what's the proper way to do the trick, thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.