Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
I needed to add openid support via identity server 4 (set up to use ASP.NET Identity) so users can log into the back office of umbraco.
I followed this tut: https://yuriburger.net/2017/04/26/login-to-umbraco-backoffice-using-identityserver4/
I have everything the button showing on the login screen:
Now when I click the button it goes off to Identity Server and I log in then it redirects me my mysite/umbraco , but it hasn't logged me in.
Here's the main code I'm using the the custom Owin Startup:
var identityOptions = new OpenIdConnectAuthenticationOptions { ClientId = "umbracoBackoffice", SignInAsAuthenticationType = Constants.Security.BackOfficeExternalAuthenticationType, Authority = "https:localhost:5000", RedirectUri = "https://mysite/umbraco", ResponseType = "code id_token token", Scope = "openid profile email application.profile", PostLogoutRedirectUri = "https:localhost:5000" }; // Configure BackOffice Account Link button and style identityOptions.ForUmbracoBackOffice("btn-microsoft", "fa-windows"); identityOptions.Caption = "OpenId Connect"; // Fix Authentication Type identityOptions.AuthenticationType = "https:localhost:5000"; // Configure AutoLinking string[] userTypes = new string[] { "administrator", "editor" }; identityOptions.SetExternalSignInAutoLinkOptions( new ExternalSignInAutoLinkOptions(autoLinkExternalAccount: true, defaultUserGroups: userTypes)); identityOptions.Notifications = new OpenIdConnectAuthenticationNotifications { SecurityTokenValidated = ClaimsTransformer.GenerateUserIdentityAsync }; app.UseOpenIdConnectAuthentication(identityOptions);
Any ideas?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
UseOpenIdConnectAuthentication for backoffice not working
Hi All,
I needed to add openid support via identity server 4 (set up to use ASP.NET Identity) so users can log into the back office of umbraco.
I followed this tut: https://yuriburger.net/2017/04/26/login-to-umbraco-backoffice-using-identityserver4/
I have everything the button showing on the login screen:
Now when I click the button it goes off to Identity Server and I log in then it redirects me my mysite/umbraco , but it hasn't logged me in.
Here's the main code I'm using the the custom Owin Startup:
Any ideas?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.