-
Notifications
You must be signed in to change notification settings - Fork 26
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
Return object from authenticate #64
Comments
I have submitted a pull request for this #65. Writing tests for this is a little hard so I might need some help generating the responses. Below is an example of how this can be utilised. I haven't included it in the documentation as it isn't specific to this authenticator. This example overrides the spawn options presented to a user based on the roles they authenticated with.
Reference: |
Rad PR. I'll let you know when I'm able to get to writing the tests. I might make a PR against your branch. I'll let you know. |
Since version 0.8 we can return an object or string from the authenticate function. Currently we return the username or None. Returning an object will enable us to do more with role based access.
Example:
Reference:
The text was updated successfully, but these errors were encountered: