Get authorization

Ali Shavaiz 1 Reputation point
2022-07-19T09:53:50.657+00:00

I am creating a web portal where I want to authenticate my users by Microsoft authentication, I create my account on Azure after that I want to authorize my user by following these steps, but its not working

1 ) create an App on azure portal.
2 ) The first step to getting an access token for many OpenID Connect (OIDC) and OAuth 2.0 flows is to redirect the user to the Microsoft identity platform /authorize endpoint. Azure AD will sign the user in and request their consent for the permissions your app requests. In the authorization code grant flow, after consent is obtained, Azure AD will return an authorization_code to your app that it can redeem at the Microsoft identity platform /token endpoint for an access token.

222245-4.png

I add these data in my code as

222226-5.png

there is an error which I don't understand

222130-6.png

Microsoft Security | Microsoft Authenticator
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.