Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement the "passReqToCallback" option for this strategy #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iamjochem
Copy link

inline with other/standard strategies, this PR implements the boolean "passReqToCallback" option for strategy initialization so that users can opt to have the Request object passed as the first argument to this strategy's verify and issue callbacks.

PS - sorry about the bogus white space changes.

I have the same requirements for 'post login processing' when someone logs in with a "remember-me" cookie (as compared to other auth strategies in use)

in order to be able to call my handler(s) for 'post login processing' I need to pass in the `req` object - in my case session data needs to be set, specifically I track the kind of login used so that I can request/require that a user verifies 'account-id + passwd' before updating sensitive data if the user initially logged in with a "remember-me" cookie (or some other one-time-pass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant