Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Azure OAuth Action Returning Login Window not Token

    Posted 04-09-2025 20:26

    Web Services Data Action associated to an Azure OAuth integration is returning a login window instead of a token. Have a working one in a different org; however, all the existing credential variables are obfuscated (not just the secret). Have tried the below...any thoughts would be greatly appreciated. 

    Request URL Template:
    ${credentials.loginUrl}


    Header:
    Authorization = Basic $encoding.base64("${credentials.clientId}:${credentials.clientSecret}")
    Content-Type = application/x-www-form-urlencoded
    Host = login.microsoftonline.com
    Transfer-Encoding = buffered

    loginUrl     = https://login.microsoftonline.com/7c1f*******************************/oauth2/v2.0/authorize
    clientId     = 9083*******************************
    clientSecret = *************************************
    scope        = https://mecivrsvc-brkenergy.msappproxy.net/ivrsvc/user_impersonation/


    #Integrations

    ------------------------------
    David Ogden
    Voice Systems Engineer
    ------------------------------


  • 2.  RE: Azure OAuth Action Returning Login Window not Token

    Posted 04-10-2025 16:03

    Never mind. Found what we were doing wrong. We had "/authorize" instead of "/token" in the loginUrl and "/user_impersonation" instead of "/.default" in the scope.



    ------------------------------
    David Ogden
    Voice Systems Engineer
    ------------------------------