Genesys Cloud CX (formerly PureCloud)

Discussion Thread View
Expand all | Collapse all

OAuth Client Credential - Token Duration

  • 1.  OAuth Client Credential - Token Duration

    Posted 02-07-2017 14:57

    Hi all,

    It seems that the token for API(OAuth Client Credential) goes expired after a certain time that can be a maximum of 48 hours, If we want to use the API within our Information System, we should have a permanent OAuth2 token. How can we configure that ?

    Any help is appreciated :)

     

    Stefano



  • 2.  RE: OAuth Client Credential - Token Duration

    GENESYS
    Posted 02-10-2017 15:42

    Hi @Stefano Pucci. I reached out to our authorization gurus and found out:  "there is no way to have a permanent token. When the API returns a 401 response the token should be refreshed. You can take a look at the docs here: https://developer.mypurecloud.com/api/rest/authorization/."

     

    I hope this helps. There's actually quite a bit of information on authorization in the Dev Center - https://developer.mypurecloud.com/forum/. This is a great spot to ask API-related questions. 

     

    Have a lovely day!



  • 3.  RE: OAuth Client Credential - Token Duration

    Posted 4 days ago
    Is there a way to extend the duration beyond the 48 hours?  say to 1 year?

    ------------------------------
    Janice Jahnsen
    F5 Networks, Inc.
    ------------------------------