{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1302","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1302/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1302/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1302/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1302","id":78959898,"number":1302,"title":"OAuth2 and Azure Active Directory - invalid_resource","user":{"login":"ChrisHimsworth","id":658604,"avatar_url":"https://avatars.githubusercontent.com/u/658604?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisHimsworth","html_url":"https://github.com/ChrisHimsworth","followers_url":"https://api.github.com/users/ChrisHimsworth/followers","following_url":"https://api.github.com/users/ChrisHimsworth/following{/other_user}","gists_url":"https://api.github.com/users/ChrisHimsworth/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisHimsworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisHimsworth/subscriptions","organizations_url":"https://api.github.com/users/ChrisHimsworth/orgs","repos_url":"https://api.github.com/users/ChrisHimsworth/repos","events_url":"https://api.github.com/users/ChrisHimsworth/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisHimsworth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-21T11:48:07Z","updated_at":"2015-05-21T11:48:07Z","closed_at":null,"body":"I am using Swagger (via https://github.com/domaindrivendev/Swashbuckle) with OAuth2 using Azure Active Directory as the identity provider.\r\nI am managing to authorise my application, but the issue comes when Swagger requests a token from Azure Active Directory, I get the response:\r\n\"error\":\"invalid_resource\",\"error_description\":\"AADSTS50001: Resource identifier is not provided.\r\n\r\nLooking at MSDN docs: https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx, under the heading \"Use the Authorization Code to Request an Access Token\", there is an optional field called resource, but it seems that in this scenario Microsoft requires this field.\r\n\r\nIs there a way in which Swagger can be changed to pass this in (ideally so it can work with solutions like Swashbuckle as well)?"}}