Closed carapas closed 9 years ago
You might want to take a look at : https://github.com/dozoisch/pointsgenie/blob/master/lib/cas-strategy.js
I've did a passport strategy that is used in PointsGenie57 for users to be able to login with CAS directly.
It is already logging through CAS with the cas-authentication module, what I did was to add access rights to the users and create a middleware that restricts access to the desired routes.
See https://github.com/kylepixel/cas-authentication for the module!
Check your indentation (should be 2 spaces)
Make smaller commit, it will be easier to review and less things to change!
Code review done
Changes Dones
All detected problem are corrected. You can merge.
Oops I forgot that :p
yes pi il a la variable toSend a changé de nom après tu vas pouvoir merger !
A propos de sa... quel case on utilise? Snake case ou camel case...
Je prefère snake mais le standard javascript est en camel. Le best serait camel case
Add basic user rights and by the same time add current user to layout.ejs