Need assistance on how to pass query parameters in redirect URL

Can I pass query parameters in the redirect URL when using the implicit method/Authorization code? Below is the reference for what we are trying to achieve.

https://login.mypurecloud.com/oauth/authorize

?client_id=

&response_type=token

&redirect_uri=http://localhost:8080/?conversationId={conversationId}

Hi,

You could take advantage of the state parameter, that is a user free string to encode some custom data like an url or application path.
This state parameter will be included in the url callback path.
So your request will look like:

https://login.mypurecloud.com/oauth/authorize
?client_id=
&response_type=token
&redirect_uri=http://localhost:8080
&state=<randomId><separator><encoded private data>

Bonus: you can verify that the state received is the same as the state set up in the initial request.
(i.e the purpose of this parameter).

Some doc around this.

Hope this helps,

Regards,
V.P.

Thank you! Understood

Hi,

We're attempting to trigger the postConversationsCallParticipants API via the SDK, but we're facing an issue. It works with the token implicit (browser) authentication method, but not with the client credentials OAuth method. Our goal is to avoid any browser-based redirection methods, such as Authorization Code or Implicit methods. Is there a way to enable automatic conferencing in Architect using a data action integration? Does Genesys support Authorization Code or Implicit method authentication through data action integration?

Most call handling APIs, like you are trying to use, only operate within the scope of a user context (Implicit Grant or Authorization Code Grant). So you won't be able to use a Data Action invocation to make that conferencing request.

Based on your question, it looks like you are wanting to create a conference within Architect. What is your use case for that?

We need to add a third participant to a conference call using custom logic or Genesys APIs. Currently, we are achieving this with the postConversationsCallParticipants API. However, this API requires the authorization code and implicit code flow, which involves redirection. We want to avoid redirection in our middleware code. Is there an alternative method or custom logic we can implement to achieve this?

Unfortunately no, there is no way around needing to use an Implicit grant or Authorization Code grant token.

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