Legacy Dev Forum Posts

 View Only

Sign Up

Create Oauth2 Athorization token without login screen

  • 1.  Create Oauth2 Athorization token without login screen

    Posted 06-05-2025 19:24

    Magudeeswaran_N | 2023-06-12 07:58:10 UTC | #1

    Hi team,

    I would like to know how we can create Ouath 2 athorization token without login screen. Because I am using /api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult API for making calls on hold. But this API requires Oauth2 acess token. I got to know that SAML2.0 type will provide us the access token without login screen but it requires SSO setup. But out client don't have anything like that. So kindly help me out.

    Thanks


    tim.smith | 2023-06-12 12:49:16 UTC | #2

    The only grant types that allow you authorize an application without using the Genesys Cloud login screen are the SAML2 Bearer and Client Credential grants. Only the former provides a user context, which is required for certain tasks, such as manipulating conversations.


    Magudeeswaran_N | 2023-06-12 16:34:48 UTC | #3

    Hi tim,

    Thanks for your information. Is there any way we can call Oauth 2 API's in Data action. If so, how athorization will happen in that case. Will it open new login page.

    Thanks, Magu


    tim.smith | 2023-06-12 16:52:32 UTC | #4

    Magudeeswaran_N, post:3, topic:20372
    Is there any way we can call Oauth 2 API's in Data action

    Yes, data actions can make API requests to Genesys Cloud. OAuth 2.0 is the only supported authorization method for the Genesys Cloud Platform API. Data action configuration is documented here: https://help.mypurecloud.com/articles/about-genesys-cloud-data-actions-integration/

    But keep in mind that data actions only support the client credentials OAuth grant type, so you can't use data actions with API endpoints that require a user context.


    Magudeeswaran_N | 2023-06-12 18:33:48 UTC | #5

    Hi tim,

    I came across this blog

    https://developer.genesys.cloud/forum/t/oauth-2-0-implementation/4232/3

    where they mentioned about configuring Oauth 2 in data action. Is this valid way to do it, or we can't do this way.

    Thanks, Magu


    tim.smith | 2023-06-12 18:43:22 UTC | #6

    @Magudeeswaran_N please take note of the next two replies in that thread:

    https://developer.genesys.cloud/forum/t/oauth-2-0-implementation/4232/4?u=tim.smith

    https://developer.genesys.cloud/forum/t/oauth-2-0-implementation/4232/5?u=tim.smith

    I'm saying the same thing now as I said then: You can only use client credentials in data actions. You cannot use user-based API endpoints in data actions.


    system | 2023-07-13 18:43:46 UTC | #7

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