Git Product home page Git Product logo

cas-server-mock's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cas-server-mock's Issues

Does Not Redirect

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.

TypeError [ERR_INVALID_URL]: Invalid URL:

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!

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.