{"action":"opened","issue":{"url":"https://api.github.com/repos/DotNetOpenAuth/DotNetOpenAuth.Samples/issues/21","labels_url":"https://api.github.com/repos/DotNetOpenAuth/DotNetOpenAuth.Samples/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/DotNetOpenAuth/DotNetOpenAuth.Samples/issues/21/comments","events_url":"https://api.github.com/repos/DotNetOpenAuth/DotNetOpenAuth.Samples/issues/21/events","html_url":"https://github.com/DotNetOpenAuth/DotNetOpenAuth.Samples/issues/21","id":59978371,"number":21,"title":"Azure AD - Failed to obtain access token.  Authorization Server reports reason: invalid_grant","user":{"login":"lmueller74","id":6931214,"avatar_url":"https://avatars.githubusercontent.com/u/6931214?v=3","gravatar_id":"","url":"https://api.github.com/users/lmueller74","html_url":"https://github.com/lmueller74","followers_url":"https://api.github.com/users/lmueller74/followers","following_url":"https://api.github.com/users/lmueller74/following{/other_user}","gists_url":"https://api.github.com/users/lmueller74/gists{/gist_id}","starred_url":"https://api.github.com/users/lmueller74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmueller74/subscriptions","organizations_url":"https://api.github.com/users/lmueller74/orgs","repos_url":"https://api.github.com/users/lmueller74/repos","events_url":"https://api.github.com/users/lmueller74/events{/privacy}","received_events_url":"https://api.github.com/users/lmueller74/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-05T16:41:15Z","updated_at":"2015-03-05T16:41:15Z","closed_at":null,"body":"I am running your samples and have run into this issue while trying to use the OAuth2Client to authenticate with Azure AD.\r\n\r\nI have a multi-tenant app in my Azure AD - i've connected to it in MVC5, but I need to use MVC4 for a project, so i started looking into this project because it uses OAuth2 with MVC4.\r\n\r\nOut of the box, after just adding my keys to the web.config, the OAuth2Client (\\DotNetOpenAuth-develop\\samples\\OAuthClient\\) fails to connect to Google using OAuth2 - saying the \"Scope\" parameter is missing (which i fixed by adding the scope).\r\n\r\nThe one that has me stumped is this Azure AD issue - I get to the windows auth screen and when it calls the callback (AzureAD.aspx) I get this error.\r\n\r\nAny help would be greatly appreciated.\r\n\r\nThanks!"}}