Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Issue Opening PKCE OAuth Authorization URL

    Posted 12-04-2025 00:09

    I am trying to construct a URL for authentication using the PKCE Grant.
    For the region, I use args[0], which is set to mypurecloud.jp for Japan.
    However, when I try to open this URL, it does not work as expected. What should I do?

    Here is the format of the URL I am generating:

    https://login.{args[0]}/oauth/authorize?response_type=code&client_id={encodedClientId}&redirect_uri={encodedRedirectUri}&code_challenge={codeChallenge}&code_challenge_method=S256&prompt=login

    #PlatformAPI
    #PlatformSDK

    ------------------------------
    Naoki Ono
    ------------------------------


  • 2.  RE: Issue Opening PKCE OAuth Authorization URL

    Posted 12-05-2025 11:46

    Hi Naoki, 

    Can you expand further on the behavior you are seeing ? 



    ------------------------------
    Ewomazino Onokpise
    Software Engineer
    ------------------------------



  • 3.  RE: Issue Opening PKCE OAuth Authorization URL

    Posted 01-02-2026 02:07

    Hi Naoki,

    Are u getting redirected to the redirect URL? what is the exact thing you are seeing when open URL.
    Please note for PKCE, if code challenge is not in format suggested in the official documentation, it will not work as expected, additionally I can see a query param "prompt=login", but form my best understanding that is not required one or not needed for PKCE.

    Please refer Documentation PKCE for more understanding



    ------------------------------
    ARJUN T P
    Engineer
    ------------------------------