FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. sven.richter86
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 2
    • Controversial 0
    • Groups 0

    sven.richter86

    @sven.richter86

    2
    Reputation
    2
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    sven.richter86 Unfollow Follow

    Best posts made by sven.richter86

    • 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.

      posted in Q&A python refresh token
      S
      sven.richter86
    • RE: No Refresh Tokens from grant_type = authorizazion_code; python

      Great thanks, that solved it.

      posted in Q&A
      S
      sven.richter86

    Latest posts made by sven.richter86

    • RE: No Refresh Tokens from grant_type = authorizazion_code; python

      Great thanks, that solved it.

      posted in Q&A
      S
      sven.richter86
    • 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.

      posted in Q&A python refresh token
      S
      sven.richter86