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
{{ message }}
Repository navigation
Documentation for client_kwargs is lacking (e.g. leeway configuration) #687
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?
Activity
docs: document leeway and other OAuth2Session options in client_kwargs