You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed to configure leeway to be shorter than the default 60 seconds.
It took me a long time and a lot of reading the code to realize that I can pass leeway to the client_kwargs (using OAuth2 with Django, Authlib v 1.3.2):
I would like to see documentation on client_kwargs.
From what I understand of the code:
leeway is passed as a kwarg to both OAuth2Session and OAuth2Client. Along with client_id, client_secret, token_endpoint_auth_method, revocation_endpoint_auth_method, scope, state, redirect_uri, token, token_placement, update_token, leeway, default_timeout
OAuth2Session is given as the client class of DjangoOAuth2App
... honestly at this point I get a little lost. I would write the docs but I don't want to suggest the wrong thing. Which parameters are configurable? And are they configurable during the register method as shown above or should they be configured from settings.py?
Environment:
OS:
Python Version:
Authlib Version: 1.3.2
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I needed to configure
leeway
to be shorter than the default 60 seconds.It took me a long time and a lot of reading the code to realize that I can pass leeway to the
client_kwargs
(using OAuth2 with Django, Authlib v 1.3.2):Error Stacks
N/A
To Reproduce
N/A
Expected behavior
I would like to see documentation on
client_kwargs
.From what I understand of the code:
client_id
,client_secret
,token_endpoint_auth_method
,revocation_endpoint_auth_method
,scope
,state
,redirect_uri
,token
,token_placement
,update_token
,leeway
,default_timeout
OAuth2Session
is given as the client class of DjangoOAuth2App... honestly at this point I get a little lost. I would write the docs but I don't want to suggest the wrong thing. Which parameters are configurable? And are they configurable during the register method as shown above or should they be configured from
settings.py
?Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: