The authorization process require authorization_code which have lifetime of 5 Min

How can we increase that 5 minute token ?

Comments

  • Michael Tims
    Michael Tims Blackbaud Employee
    Seventh Anniversary Kudos 2 Name Dropper Participant
    Hi Awais Tariq‍, there's no way that I'm aware of to increase the authorization code timeout. From the Authorization code flow tutotial, between step 3 (obtaining auth code) and step 4 (exchanging auth code for access token), is there a reason that you require more than 5 minutes between those steps?
  • Awais, is there a chance you're confusing the Authorization Code with the Access Token? As Michael Tims‍ says, the Authorization Code is merely an intermediate piece of data used to complete authorization and obtain a token set (Access and Refresh tokens). The 5 minute lifetime is normally plenty because it is exchanged for the token set almost immediately (virtually the next line of your code).


    Cheers,

    Steve Cinquegrana | CEO and Principal Developer | Protégé Solutions

Categories