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

Handle all the information supplied by the CAS server #1

Closed carboneater closed 8 years ago

carboneater commented 9 years ago

This is a small set of changes I did to the library so a parent app can use all of the CAS-supplied information, should the developer need it.

The way I did it is the developer needs to set a new flag (options.session_info) to activate this new functionality.

I figured merging it might help somebody else.

kayleecodes1 commented 8 years ago

Sorry it took me so long to get to this.

It looked like what you pushed didn't work. Did you test it? The bodyObj seemed to still be just the user name. I changed the 2.0/3.0 _validate function to pass both theuser and the attributes to the callback function, so the repo now has the functionality you implemented.