OAuth - Authorized redirect URIs

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

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

1 Like

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

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

Thank you, Tim.

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