-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Each auth strategy contain unique paths to protect #9
Comments
Yeah, this is on the roadmap for |
Cool, how would one implement this? To my knowledge, the array of protected is defaulted to all auths |
no, it's simply 'protected'. so either you have an auth header or a session, or you're not authorized. |
so, in general... this can be a situation where multiple social auth strategies are active and you require data from 'the other one'. I would simply have the end point look for a session flag or data set you put there when the user passed through the auth handler, and if missing redirect them to the appropriate uri. |
Handling the use case that some areas of an app need to access a users external account, i.e. Twitter.
config.json would look something like this:
In tenso.js, lines 370, 398, 425, 453 would need to be updated as exampled:
The mapping function at line 195 would need to be changed, something like:
Then on line 248 you could do something like:
The text was updated successfully, but these errors were encountered: