Mike Holtkamp
Mike Holtkamp

Reputation: 94

Office api V2 authentication multiple resources in scopes

I have successfully implemented the authorization flow but when I try to use scope from different api's like the office outlook task api and the graph calendar api I got an error message AADSTS70011: The provided value for the input parameter 'scope' is not valid.

This doesn't work

scopes=https://outlook.office.com/tasks.readwrite offline_access https://graph.microsoft.com/Calendars.Read Write

This works

scopes=https://outlook.office.com/tasks.readwrite offline_access

or

scopes=offline_access https://graph.microsoft.com/Calendars.Read

Is it possible to request scopes from different api's at once or do I need two separated calls

Upvotes: 3

Views: 838

Answers (1)

Jason Johnston
Jason Johnston

Reputation: 17702

You have to make two calls. Azure's endpoint doesn't support mixing scopes from different resources in one call.

Upvotes: 2

Related Questions