Share via

Implement oauth based application

Padmanabhan M 20 Reputation points
2026-01-22T10:24:19.6666667+00:00

I am implementing oauth based application and can anyone explain the differences between Oauth token types and when to use open id?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author

  1. Rukmini 39,015 Reputation points Microsoft External Staff Moderator
    2026-01-22T10:52:57.5266667+00:00

    Hello Padmanabhan M,

    Please see the below to know Azure Active Directory authentication works:

    The Microsoft Entra ID application redirects the user to Microsoft Entra ID and uses OpenID Connect to request scopes.

    • In order to enforce security requirements, Entra ID evaluates Conditional Access restrictions and authenticates the user using configures authentication methods.
    • After that, Entra ID confirms user or admin consent and API permissions. Entra ID issues an ID token, an access token, and maybe a refresh token if all checks are successful.
    • When the application calls the API using the access token, the API verifies the token and approves the request.

    Token Types:

    • Access Token: APIs use it to approve requests. It includes application roles (roles) or delegated scopes (scp) that specify what the app is permitted to perform.
    • ID Token: Used by the application to verify the user's identity. It includes identification claims, including tenant details, user IDs, and names.
    • Refresh Token: Used to obtain new access tokens without prompting the user to sign in again.

    OAuth 2.0 vs OpenID Connect: OAuth 2.0 focuses on authorization, while OpenID Connect focuses on authentication.

    • OAuth 2.0- Authorization framework which allows the apps to securely access protected resources (APIs) on behalf of a user or application.
    • OpenID Connect - An authentication mechanism based on OAuth 2.0 that allows applications to get user data via ID tokens and confirm user identity.

    Hence, OpenID Connect is used by Azure AD to authenticate users, OAuth 2.0 is used to grant access, tokens containing identity and permissions are issued, and Conditional Access is enforced prior to token issuance.

    If the resolution was helpful, kindly take a moment to click on 210246-screenshot-2021-12-10-121802.pngand click on Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.