{"action":"created","issue":{"url":"https://api.github.com/repos/davidjrh/dnn.azureadprovider/issues/1","repository_url":"https://api.github.com/repos/davidjrh/dnn.azureadprovider","labels_url":"https://api.github.com/repos/davidjrh/dnn.azureadprovider/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/davidjrh/dnn.azureadprovider/issues/1/comments","events_url":"https://api.github.com/repos/davidjrh/dnn.azureadprovider/issues/1/events","html_url":"https://github.com/davidjrh/dnn.azureadprovider/issues/1","id":133982579,"number":1,"title":"GetToken issue once returned back to DNN website","user":{"login":"iiminov","id":6739564,"avatar_url":"https://avatars.githubusercontent.com/u/6739564?v=3","gravatar_id":"","url":"https://api.github.com/users/iiminov","html_url":"https://github.com/iiminov","followers_url":"https://api.github.com/users/iiminov/followers","following_url":"https://api.github.com/users/iiminov/following{/other_user}","gists_url":"https://api.github.com/users/iiminov/gists{/gist_id}","starred_url":"https://api.github.com/users/iiminov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiminov/subscriptions","organizations_url":"https://api.github.com/users/iiminov/orgs","repos_url":"https://api.github.com/users/iiminov/repos","events_url":"https://api.github.com/users/iiminov/events{/privacy}","received_events_url":"https://api.github.com/users/iiminov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T13:30:24Z","updated_at":"2016-02-16T14:37:08Z","closed_at":null,"body":"Hi, looking for tiny bit of help with this one.\r\n\r\nAfter I had no joy with an existing installation (upgraded to 7.4.2) I've setup a clean 7.4.2 installation on my dev server. I then installed Azure Provider 1.0.1 and configured it with relevant Azure AD endpoints. At this stage I get ``Login with Azure`` button which redirects me to my portal where I login. When I am redirected back I get an exception and no login.\r\n\r\n```\r\nTabId:55\r\n\r\nRawUrl:/Login?code=AAABAAAAiL9Kn2Z27UubvWFPbm0gLX5sMXzAHCesPzNYN5YkcQKQq5V2Id8uzfKhP-7PeAz27qIPniM3xwTBkjvregiRW6W-b3LxT-FRYs1mCmg20BmptXfXVSPARfWhTjLI8N6-nXhUy58l6ivSe24NU7ZQ7QQYj3oFUr3J7uZbGX3J0EwtqAChzktkoZnNj0FWexUehlW1gPfA3jfDPmVBNfbtYg2HqfhqJEnFPVNc3hY9Rg6frhc2\r\n\r\nInnerMessage:There was an error processing the credentials. Contact your system administrator.\r\n\r\nInnerStackTrace:\r\n   at DotNetNuke.Authentication.Azure.Components.AzureClient.GetToken(String responseText) in c:\\hosting\\dnn742\\DesktopModules\\AuthenticationServices\\Azure\\Components\\AzureClient.cs:line 78\r\n   at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.ExchangeCodeForToken() in c:\\hosting\\dnn742\\DesktopModules\\Library\\Services\\Authentication\\OAuth\\OAuthClientBase.cs:line 278\r\n   at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.AuthorizeV2() in c:\\hosting\\dnn742\\DesktopModules\\Library\\Services\\Authentication\\OAuth\\OAuthClientBase.cs:line 237\r\n   at DotNetNuke.Services.Authentication.OAuth.OAuthLoginBase.OnLoad(EventArgs e) in c:\\hosting\\dnn742\\DesktopModules\\Library\\Services\\Authentication\\OAuth\\OAuthLoginBase.cs:line 73\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Control.LoadRecursive()\r\n   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)\r\n```\r\n\r\nSo, at this stage I am a bit lost. Is there a sure way to test/know if I am getting the correct token?\r\n\r\nThe ``RawURL`` property from events log has a long ``code`` string of something. Is this what I am expecting from Azure AD?\r\n\r\nAny pointers or help is much appreciated."},"comment":{"url":"https://api.github.com/repos/davidjrh/dnn.azureadprovider/issues/comments/184703629","html_url":"https://github.com/davidjrh/dnn.azureadprovider/issues/1#issuecomment-184703629","issue_url":"https://api.github.com/repos/davidjrh/dnn.azureadprovider/issues/1","id":184703629,"user":{"login":"iiminov","id":6739564,"avatar_url":"https://avatars.githubusercontent.com/u/6739564?v=3","gravatar_id":"","url":"https://api.github.com/users/iiminov","html_url":"https://github.com/iiminov","followers_url":"https://api.github.com/users/iiminov/followers","following_url":"https://api.github.com/users/iiminov/following{/other_user}","gists_url":"https://api.github.com/users/iiminov/gists{/gist_id}","starred_url":"https://api.github.com/users/iiminov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiminov/subscriptions","organizations_url":"https://api.github.com/users/iiminov/orgs","repos_url":"https://api.github.com/users/iiminov/repos","events_url":"https://api.github.com/users/iiminov/events{/privacy}","received_events_url":"https://api.github.com/users/iiminov/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T14:37:08Z","updated_at":"2016-02-16T14:37:08Z","body":"My apologies. I managed solve my problem. It boiled down to incorrect ``CLIENT ID`` used with module configuration."}}