Great thanks, that solved it.
S
Posts made by sven.richter86
-
RE: No Refresh Tokens from grant_type = authorizazion_code; python
-
No Refresh Tokens from grant_type = authorizazion_code; python
Currently we are testing FusionAuth with the python package:
When we use:
exchange_o_auth_code_for_access_token()
we get an access_token but no refresh token.We modified the the function inside the package:
body = {
"code": code,
"client_id": client_id,
"client_secret": client_secret,
"grant_type": "authorization_code",
"redirect_uri": redirect_uri,
"scope": "offline_access",
}We tried adding the scope=offline_access in order to get a refresh token but we still don't get one.
If we try retrieve_refresh_tokens() the result is empty.
On the other hand if we use:
exchange_user_credentials_for_access_token()
we get an access_token and a refresh token.What are we doing wrong? We need to use to grant_type=authorization_code for our application.