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
------------------------------
Original Message:
Sent: 12-04-2025 00:08
From: Naoki Ono
Subject: Issue Opening PKCE OAuth Authorization URL
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
------------------------------