{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1225","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1225/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1225/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1225/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1225","id":69646800,"number":1225,"title":"[Question] Azure AD Login Not Working","user":{"login":"tameyer1","id":12037747,"avatar_url":"https://avatars.githubusercontent.com/u/12037747?v=3","gravatar_id":"","url":"https://api.github.com/users/tameyer1","html_url":"https://github.com/tameyer1","followers_url":"https://api.github.com/users/tameyer1/followers","following_url":"https://api.github.com/users/tameyer1/following{/other_user}","gists_url":"https://api.github.com/users/tameyer1/gists{/gist_id}","starred_url":"https://api.github.com/users/tameyer1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tameyer1/subscriptions","organizations_url":"https://api.github.com/users/tameyer1/orgs","repos_url":"https://api.github.com/users/tameyer1/repos","events_url":"https://api.github.com/users/tameyer1/events{/privacy}","received_events_url":"https://api.github.com/users/tameyer1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-20T18:11:38Z","updated_at":"2015-04-26T22:41:09Z","closed_at":null,"body":"I have been having an issue trying to get a sample working with Azure AD as an external id provider.\r\nI took the current MVC Authentication sample from the repository and help docs and simply tried to add in ad as an external provider.  The issue I get is when I click the Azure AD button from the sample app login screen, I am taken to the MS login.  I choose an ID I have setup in AD with access to the app and login.  Each time I am redirected back to the root of my sample app (https://localhost:44319). And that is where it stops. There are no logged exceptions or other information to indicate what the issue is.  Code wise I used the exact MVC Auth sample and after the Google auth options I added options for AD based on sample.  Google and the AD are setup in the external id providers code block.  Local logon is setup in the main Configuration method in Startup.  (The code is straight from the MVC sample). Below is how I have the AD piece defined.\r\n     var aad = new OpenIdConnectAuthenticationOptions\r\n            {\r\n                AuthenticationType = \"aad\",\r\n                Caption = \"Azure AD\",\r\n                SignInAsAuthenticationType = signInAsType,\r\n                Authority = \"https://login.microsoftonline.com/<<GUID>>\",\r\n                ClientId = \"<<GUID>>\",\r\n                RedirectUri = \"https://localhost:44319\"\r\n             };\r\n            app.UseOpenIdConnectAuthentication(aad);\r\nWhen I am redirected back to the above Uri, I see 2 OpenIdConnect cookies (nonce.OpenIdConnect and nonce.aad) in the Request cookies.  The Logon with local userid\\password and Google logon both work fine.  \r\n\r\nAny hints on what I might have setup wrong or how to debug?  Thanks for you help.\r\n"},"comment":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/comments/96443370","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1225#issuecomment-96443370","issue_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1225","id":96443370,"user":{"login":"brockallen","id":649492,"avatar_url":"https://avatars.githubusercontent.com/u/649492?v=3","gravatar_id":"","url":"https://api.github.com/users/brockallen","html_url":"https://github.com/brockallen","followers_url":"https://api.github.com/users/brockallen/followers","following_url":"https://api.github.com/users/brockallen/following{/other_user}","gists_url":"https://api.github.com/users/brockallen/gists{/gist_id}","starred_url":"https://api.github.com/users/brockallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockallen/subscriptions","organizations_url":"https://api.github.com/users/brockallen/orgs","repos_url":"https://api.github.com/users/brockallen/repos","events_url":"https://api.github.com/users/brockallen/events{/privacy}","received_events_url":"https://api.github.com/users/brockallen/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T22:41:09Z","updated_at":"2015-04-26T22:41:09Z","body":"Any update?"}}