AzureAD Authorization Code Issue

Phyo Myanmar Kyaw 21 Reputation points

Hello, currently I'm developing Web Portal using AzureAD + Outsystems ( with Microsoft Login Connector Forge ).
But my 1st step is to get Code + State. So i'm trying to paste the url in browser first. But seems like the return code is incorrect and cannot use in my Forge ( lib ) also. Pls correct me if i am wrong. Thanks all.
My ref link :

Here's my request url :

Here's the response url :
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,458 questions
0 comments No comments
{count} votes

Accepted answer
  1. soumi-MSFT 11,761 Reputation points Microsoft Employee

    Hello @Phyo Myanmar Kyaw , thank you for reaching out. The Authorization Code Grant flow has the following steps involved.

    1. Fetch a code from the /authorize endpoint of AAD.
    2. Once you have the code, then you make a call to the /token endpoint of AAD to fetch the access-token
    3. Once you have the access-token, that's when you send the access-token to the AAD protected resource and get yourself authorized by the resource and gain access to it.

    If you check the GitHub article, it speaks the same steps in more detail:

    An AAD protected resource is only concerned about the access-token, which is in JWT format and that can be decoded and an access-token contains the permissions and other claims that would be used by the AAD protected app. Hence, the code that you are trying to use directly with the AAD protected resource (Outsystems) is erroring out.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as an Answer; if the above response helped in answering your query.

0 additional answers

Sort by: Most helpful