"id_token" is not present in Oauth2 token received from Microsoft login, even though "openid" scope was requested and granted

ashutosh 5 Reputation points
2023-06-30T11:15:52.3433333+00:00

I am using Microsoft as an Identity provider in my application. The problem is that sometimes I am not receiving "id_token" in Oauth2 token response even though I am requesting "openid" scope (scopes requested: openid profile email) everytime.
I am using the common authorization and token endpoints: https://login.microsoftonline.com/common/oauth2/v2.0/authorize

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Identity Manager
{count} votes

1 answer

Sort by: Most helpful
  1. ashutosh 5 Reputation points
    2023-08-02T04:21:56.4166667+00:00

    The issue was that admin disabled the Include ID Token in OAuth token option for the app that was being used for authentication.

    0 comments No comments

Your answer

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