Legacy Dev Forum Posts

 View Only

Sign Up

OAuth - Authorized redirect URIs

  • 1.  OAuth - Authorized redirect URIs

    Posted 06-05-2025 18:14

    alialjohani | 2018-11-27 18:25:00 UTC | #1

    Dears,

    The customer web application has a dynamic URL format.

    For example: www.CustomerDomain.com/detailsA/req?id=123 www.CustomerDomain.com/detailsB/req?id=321 www.CustomerDomain.com/detailsC/req?id=13756

    So, in the OAuth within PureCloud, I tried the following: www.CustomerDomain.com/* www.CustomerDomain.com//req?id=

    But obviously, it does not work.

    What is the possible solution while I am using "Token Implicit Grant (Browser)" in order to let the customer create an outbound campaigns from his application.

    Note: the customer cannot use NodeJS!

    Is there a way to deal with dynamic URIs?

    Please, any solutions? Suggestions?

    Best Regards, Ali


    KevinGlinski | 2018-11-27 18:07:43 UTC | #2

    you would need to use the state param in the oauth flow to hold the id, then redirect to a known page, have the page get the state and redirect to the correct id


    alialjohani | 2018-11-27 18:56:17 UTC | #3

    Dear Kevin,

    Thank you for your reply.

    So, does that mean I have to edit the URI with the state param inside OAuth-PureCloud as well as redirect_URL inside my code?

    Best Regards, Ali


    tim.smith | 2018-11-27 18:58:09 UTC | #4

    The state parameter is documented here: Additional Authorization Parameters. The JavaScript SDK also supports it; see the implicit grant section.


    alialjohani | 2018-11-29 06:42:02 UTC | #5

    Thank you, Tim.


    system | 2018-12-30 06:42:05 UTC | #6

    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: 4052