kayleecodes1 / cas-authentication

A CAS authentication library designed to be used as middleware for an Express server.
MIT License
73 stars 77 forks source link

Is possible to make a login with user and pass, via code? #6

Open augcampos opened 8 years ago

augcampos commented 8 years ago

Is possible to make a login with user and pass, via code?

I need a example that allow to make login with a ticket or page that I own in a nodejs.

matthewvalimaki commented 8 years ago

@augcampos I believe your question is not relative to this project but to CAS itself. In any case see https://jasig.github.io/cas/4.2.x/protocol/REST-Protocol.html.

  1. Enable REST support (the link I gave).
  2. Create your page with form asking username & password.
  3. Use the REST API to authenticate.
  4. In Node handle login.
kayleecodes1 commented 7 years ago

I'm going to look into adding the REST protocol to this library once I fix the other problems with it.