soulwing / cas-mock-server Goto Github PK
View Code? Open in Web Editor NEWA CAS server for use in test scenarios.
License: Other
A CAS server for use in test scenarios.
License: Other
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.
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?
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.