{"action":"opened","issue":{"url":"https://api.github.com/repos/Shazwazza/UmbracoIdentity/issues/72","repository_url":"https://api.github.com/repos/Shazwazza/UmbracoIdentity","labels_url":"https://api.github.com/repos/Shazwazza/UmbracoIdentity/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/Shazwazza/UmbracoIdentity/issues/72/comments","events_url":"https://api.github.com/repos/Shazwazza/UmbracoIdentity/issues/72/events","html_url":"https://github.com/Shazwazza/UmbracoIdentity/issues/72","id":225994986,"number":72,"title":"ExternalLoginStore issue with Umbraco 7.6.0","user":{"login":"yuriburger","id":8437538,"avatar_url":"https://avatars3.githubusercontent.com/u/8437538?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriburger","html_url":"https://github.com/yuriburger","followers_url":"https://api.github.com/users/yuriburger/followers","following_url":"https://api.github.com/users/yuriburger/following{/other_user}","gists_url":"https://api.github.com/users/yuriburger/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriburger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriburger/subscriptions","organizations_url":"https://api.github.com/users/yuriburger/orgs","repos_url":"https://api.github.com/users/yuriburger/repos","events_url":"https://api.github.com/users/yuriburger/events{/privacy}","received_events_url":"https://api.github.com/users/yuriburger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-03T13:57:14Z","updated_at":"2017-05-03T13:57:14Z","closed_at":null,"body":"Hi,\r\n\r\nWhen using UmbracoIdentity 5.0.0 with Umbraco 7.6.0 I run into the following error(s):\r\n\r\nException Details: System.NullReferenceException: Object reference not set to an instance of an object.\r\nLine 100:\r\nLine 101:            // Sign in the user with this external login provider if the user already has a login\r\nLine 102:            var user = await UserManager.FindAsync(loginInfo.Login);\r\nLine 103:            if (user != null)\r\nLine 104:            {\r\n\r\nSource File: E:\\Sources\\POC1\\POC1.Umbraco76\\Controllers\\UmbracoIdentityAccountController.cs    Line: 102 \r\n\r\nStack Trace: \r\n\r\n[NullReferenceException: Object reference not set to an instance of an object.]\r\n   Umbraco.Core.Persistence.Database.BeginTransaction(IsolationLevel isolationLevel) +84\r\n   UmbracoIdentity.ExternalLoginStore.EnsureTable() in X:\\Projects\\Umbraco\\UmbracoIdentity\\src\\UmbracoIdentity\\ExternalLoginStore.cs:116\r\n   UmbracoIdentity.ExternalLoginStore.<EnsureInitialized>b__12_0() in X:\\Projects\\Umbraco\\UmbracoIdentity\\src\\UmbracoIdentity\\ExternalLoginStore.cs:103\r\n   System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +115\r\n   UmbracoIdentity.ExternalLoginStore.EnsureInitialized() in X:\\Projects\\Umbraco\\UmbracoIdentity\\src\\UmbracoIdentity\\ExternalLoginStore.cs:100\r\n   UmbracoIdentity.ExternalLoginStore.Find(UserLoginInfo login) in X:\\Projects\\Umbraco\\UmbracoIdentity\\src\\UmbracoIdentity\\ExternalLoginStore.cs:162\r\n   UmbracoIdentity.UmbracoMembersUserStore`1.FindAsync(UserLoginInfo login) in X:\\Projects\\Umbraco\\UmbracoIdentity\\src\\UmbracoIdentity\\UmbracoMembersUserStore.cs:358\r\n   Microsoft.AspNet.Identity.UserManager`2.FindAsync(UserLoginInfo login) +59\r\n\r\nSteps to reproduce:\r\n\r\n1. New setup Umbraco CMS 7.6.0 using Nuget package\r\n2. SQL Server or SQL CE (both throw this error)\r\n3. Install-Package Microsoft.Owin.Security.OpenIDConnect\r\n4. Install-Package UmbracoIdentity\r\n5. Configure external identity provider using:\r\n\r\n    app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);\r\n    var identityOptions = new OpenIdConnectAuthenticationOptions\r\n    {\r\n    ClientId = \"xyz\",\r\n    AuthenticationType = \"IdentityServer\",\r\n    Authority = \"https://localhost:44349/core\",\r\n    RedirectUri = \"http://localhost:32794/\",\r\n    ResponseType = \"code id_token token\",\r\n    Scope = \"openid profile email\",\r\n    PostLogoutRedirectUri = \"http://localhost:32794/\"\r\n    };\r\n    app.UseOpenIdConnectAuthentication(identityOptions);\r\n\r\n6. Try to login. On return from our external identity provider, the error is shown.\r\n\r\nAny help appreciated!\r\n\r\n/Y.\r\n\r\n\r\n"}}
{"actor":{"display_login":"yuriburger"}}