veo-labs / cas-server-mock Goto Github PK
View Code? Open in Web Editor NEWReally simple basic mock for Apereo CAS server
License: GNU Affero General Public License v3.0
Really simple basic mock for Apereo CAS server
License: GNU Affero General Public License v3.0
Manual Reference https://apereo.github.io/cas/6.6.x/protocol/CAS-Protocol-V2-Specification.html#311-service-ticket-properties
Service tickets MUST begin with the characters, ST-
or PT-
. issue.
when username not start with ST-
or PT-
the mock server not work well.
I may be missing something, but I have followed the instructions and have tried to hook this up with my local application. My application re-directs to the login page, but when I type in the name of one of the users I specified in my file, it appears to just reload the same login page with more query parameters, instead of redirecting back to the application.
Hello,
I received the following error when I tried to login to the page http://localhost:3004/:
TypeError [ERR_INVALID_URL]: Invalid URL:
at onParseError (internal/url.js:257:9)
at new URL (internal/url.js:333:5)
at module.exports.authenticateAction (C:\Users\abc\Desktop\authentication\cas-server-mock\lib\controller.js:29:21)
at Layer.handle [as handle_request] (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\express\lib\router\index.js:335:12)
at next (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\express\lib\router\index.js:275:10)
at SendStream.error (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\serve-static\index.js:121:7)
at SendStream.emit (events.js:315:20)
at SendStream.error (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\send\index.js:270:17)
at SendStream.onStatError (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\send\index.js:421:12)
at next (C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\send\index.js:735:16)
at C:\Users\abc\Desktop\authentication\cas-server-mock\node_modules\send\index.js:743:23
The user.json file I created was like this:
[
{
"name": "001",
"attributes": {
"stringAttribute": "value",
"arrayAttribute": "arrayValue"
}
}
]
I didn't config any other things. Could you please give me some instructions about how to solve this error?
Thank you so much!
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.