-
-
Notifications
You must be signed in to change notification settings - Fork 800
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
Implementing custom token generator #732
Comments
Hi, do you want to generate access_token as JWT ? If yes, please have a look at https://oauthlib.readthedocs.io/en/latest/oauth2/tokens/bearer.html |
I think there are currently multiple places in the code where server instance is being initialized (three, if I remember correctly) and only one of them can be subclassed easily ( Note however that you're likely to need to use a custom |
Pass variables generated based on settings when initializing Server.
Pass variables generated based on settings when initializing Server.
Pass variables generated based on settings when initializing Server. Add a property to settings class for convenience.
Pass variables generated based on settings when initializing Server. Add a property to settings class for convenience. Update settings documentation to reflect additions.
Pass variables generated based on settings when initializing Server. Add a property to settings class for convenience. Update settings documentation to reflect additions.
Pass variables generated based on settings when initializing Server. Add a property to settings class for convenience. Update settings documentation to reflect additions.
Pass variables generated based on settings when initializing Server. Add a property to settings class for convenience. Update settings documentation to reflect additions.
Hi,
I want to implement a custom token generator to use JWT in DOT.
There are several issues related to this problem which lead to this pull request: #467. But the pull request is about writing custom models for tokens which doesn't handle token generation.
The solution that I've currently found is to write a custom
Server Class
to pass a custom generator function toBearerToken
. But I've seen thatServer Class
instances are initialized with atoken_generator
function passed to them, but I can't find out where the instances are initialized.I would appreciate if you could help me with this matter.
The text was updated successfully, but these errors were encountered: