Legacy Dev Forum Posts

 View Only

Sign Up

My-authorization-code: Information about expiration time and question about the code generation

  • 1.  My-authorization-code: Information about expiration time and question about the code generation

    Posted 06-05-2025 18:16

    JorgeMarceloNegri | 2019-12-13 14:28:20 UTC | #1

    After we log in with the login URL and the clientID, we are redirected to the configured URL in the OAuth method:

    http://example.com/oauth/callback?code=my-authorization-code

    The question is the following:

    The code ?code=my-authorization-code, is different than the token.

    1. What is the expiry time for this authorization code?
    2. For each sesion (login) for the same user account, do we have a different authorization code, or is it always the same?

    Thanks in advance for your help and answers.

    Regards,

    Jorge Negri


    tim.smith | 2019-12-13 16:15:29 UTC | #2

    The expiry time is in the response. This is shown here: https://developer.mypurecloud.com/api/rest/authorization/use-authorization-code.html

    The auth code will work exactly once. When a user needs to be authorized, they must complete the full oauth flow each time.


    JorgeMarceloNegri | 2019-12-13 16:19:33 UTC | #3

    Thanks Tim for your reply!

    Regards

    Jorge Negri


    system | 2020-01-13 16:26:31 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 6729