oauth 2.0 - Azure AD: Authentication missing or malformed -


i using postman query graph api list of applications on instance of aad.

auth url: https://login.microsoftonline.com/common/oauth2/authorize?resource=https%3a%2f%2fmanagement.azure.com%2f

access token url: https://login.microsoftonline.com/common/oauth2/token

with these, i'm able access token. when attempt query graph api list of applications, along access token included in header, following error:

{ "error": {     "code": "invalidauthenticationtoken",     "message": "access token validation failure.",     "innererror": {         "request-id": "***-***-***",         "date": "2017-07-25t16:21:06"     } } 

}

is there way resolve this?

edit: found weird when receive access token, not receive refresh token along :|

thanks!

the resource value in auth url not graph api endpoint, access token obtained resource , graph api cannot validate it. graph api endpoint should https://graph.microsoft.com/

refresh tokens not issued oauth grant types such client credentials flow because client can use credentials obtain new token required. may reason don't see refresh token. in flow involves user interaction, refresh token used obtain new token without requiring user interaction.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -