Skip to content
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

Refresh token documentation #26

Open
ShriramK opened this issue Apr 24, 2023 · 0 comments
Open

Refresh token documentation #26

ShriramK opened this issue Apr 24, 2023 · 0 comments

Comments

@ShriramK
Copy link

ShriramK commented Apr 24, 2023

Please update the documentation on refresh token at
https://docs.authlib.org/en/latest/client/frameworks.html
or
https://docs.authlib.org/en/latest/client/flask.html
as per the suggested solution at
https://stackoverflow.com/questions/62293888/obtaining-and-storing-refresh-token-using-authlib-with-flask

Parameter to specify add in the remote application as per
" .. The first step is register a remote application on the OAuth registry via oauth.register method "
at https://docs.authlib.org/en/latest/client/flask.html
to obtain retrieve get the refresh token

is

authorize_params={'access_type': 'offline'}

google = oauth.register(
    'google',
    # ...
    authorize_params={'access_type': 'offline'},
)

as per
https://stackoverflow.com/a/62296675

and

'prompt': 'consent' in the client_kwargs parameter in the remote application on the OAuth registry via oauth.register method

if required

client_kwargs = {'prompt':'consent'}
as per
https://stackoverflow.com/questions/62293888/obtaining-and-storing-refresh-token-using-authlib-with-flask#comment110182471_62296675

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant