Reputation: 2470
I am trying to access files on one drive for personal as well as business drive. I am planning to use V2 end point, can somebody point me to sample application, or on how to provide scope for graph api for one drive business using open id connect.
Upvotes: 0
Views: 1623
Reputation: 5178
You probably want to use the Microsoft Graph API
I found the following link to be the most helpful on available scopes.
https://graph.microsoft.io/en-us/docs/authorization/permission_scopes
Here's the list:
Permissions requiring administrator consent
Permissions that don't require administrator consent
offline_access
is necessary if you're doing OAuth2 and want a refresh token.
Upvotes: 0
Reputation: 1786
This article has the information you are looking for: https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-protocols-oidc/ The scope to get access to OneDrive content is Files.Read or Files.ReadWrite, you can use either of the following strings for the scope parameter: scope=openid%20https%3A%2F%2Fgraph.microsoft.com%2Ffiles.read or scope=openid%20files.read
Upvotes: 1