Hello @Ben in CA,
Thank you for connecting offline to understand the scenario.
During our call, we observed two authentication scenarios—one using the /common endpoint and the other using the /tenantID endpoint.
- When using the /tenantID endpoint in your authentication request, the process follows the OAuth 2.0 Authorization Code flow as expected. As discussed, this involves sending a GET request to the authorization endpoint followed by a POST request to the token endpoint. We confirmed that the OAuth 2.0 Authorization Code Grant flow is being correctly executed in this scenario.
- However, when using the /common endpoint in your script, the application only sends an Authorize request but fails to send a POST request to the token endpoint. As a result, authentication does not complete successfully on this page.
To resolve this issue, modifications are required at the script level to ensure the authentication request is handled according to the OAuth 2.0 Authorization Code flow design.
For reference, please review the OAuth 2.0 Authorization Code flow documentation: OAuth 2.0 Authorization Code Flow
I hope this information is helpful. Please "Accept the answer" if the information helped you. This will help us and others in the community as well.