Lubos Zapotocny
Lubos Zapotocny

Reputation: 105

Microsoft graph api - no refresh_token

i want to use MS graph api, i have CODE, and i need to exchange code for access token, when i post request, like in docs i get this answer

{
  "token_type": "Bearer",
  "scope": "mail.read mail.send user.read user.read.all",
  "expires_in": 3599,
  "ext_expires_in": 0,
  "access_token": "blah blah blah ..... §§&&##"
}

and this token will expire in 1 hour, i found, that i need refresh_token to extend token next time, but i havent got any in response with access_token

any solution?

Thanks

Upvotes: 2

Views: 952

Answers (1)

Jacob Lambert
Jacob Lambert

Reputation: 7679

Looking at the documentation for Active Directory Tokens, you need to request the offline_access scope in your authorization code request and your token request.

Upvotes: 4

Related Questions