When you only put "openid profile" in scope, the default scopes in access token "Directory.Read.All Group.Read.All User.Read profile openid email" is for Microsoft Graph API by default. It is by design.
Because this access token is used to call the UserInfo endpoint, wherein the user information is actually from Microsoft Graph.
When you put "api://........" in scope, the access token will be for your API application. There is an aud
claim in the access token, which identifies the intended recipient of the token. You can check that.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…