Skip to content

Instantly share code, notes, and snippets.

@aleksclark
Created May 9, 2017 11:28
Show Gist options
  • Save aleksclark/38b84182e191bcfc5c35587e27a63273 to your computer and use it in GitHub Desktop.
Save aleksclark/38b84182e191bcfc5c35587e27a63273 to your computer and use it in GitHub Desktop.
request:
https://login.windows.net/common/oauth2/authorize?client_id={CLIENT ID}&client_secret={CLIENT SECRET}&redirect_uri=http%3A%2F%2Fauth-dev.lvh.me%3A3000%2Fauth%2Fazure_ad%2Fcallback&resource=Microsoft.SharePoint&response_type=code&scope=MyFiles.Read%2CMyFiles.Write
response:
{"error"=>"invalid_resource", "error_description"=>"AADSTS50001: Resource 'Microsoft.SharePoint' is disabled.\r\nTrace ID: 16750e77-b8c9-4965-ae3c-a471dfc80a00\r\nCorrelation ID: 9bdba4f9-5277-48f6-b735-2548ce4aba71\r\nTimestamp: 2017-04-28 18:49:48Z"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment