UmbracoIdentityExtensions | Code files & installation | OAuth library
kandi X-RAY | UmbracoIdentityExtensions Summary
kandi X-RAY | UmbracoIdentityExtensions Summary
An Umbraco add-on package that enables easy extensibility points for ASP.Net Identity integration with the Umbraco backoffice including a simple OAuth token server and snippets on how to incorporate custom OAuth authentication providers for the back office.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of UmbracoIdentityExtensions
UmbracoIdentityExtensions Key Features
UmbracoIdentityExtensions Examples and Code Snippets
Install-Package UmbracoCms.IdentityExtensions
Install-Package UmbracoCms.IdentityExtensions.Google
Install-Package UmbracoCms.IdentityExtensions.Facebook
Install-Package UmbracoCms.IdentityExtensions.AzureActiveDirectory
Community Discussions
Trending Discussions on UmbracoIdentityExtensions
QUESTION
Background
I'm quite new to Umbraco but have been trying to use IdentityServer4 for the BackOffice of Umbraco. For the IDP, I've used the in-memory configuration (is4inmem template) found here.
For Umbraco I've used the UmbracoIdentityExtensions to configure OpenId Connect.
I've been mainly following this tutorial (this is however, for Umbraco 7).
The problem
I do have the 'Sign in with OpenId connect' button which I configured, but when I try to log in using the IDP, Umbraco does not log me in. I keep getting returned to the login page. Whenever I go to the IDP page, however, I am logged in and can see I've given access as seen in the picture below.
Whenever I log in with an Umbraco account, and then try to 'Link your OpenId Connect account', it does nothing, but upon logging out an error message appears in the screen: 'An error occurred, could not get external login info' I've tried to use different configuration settings, but without success.
Code
IDP Config.cs
...ANSWER
Answered 2020-Mar-09 at 17:53I've finally figured it out. There were several issues:
1. Correct the auth cookie
Instead of using DefaultAuthenticationTypes.ExternalCookie
as SignInAsAuthenticationType
, I am now using Umbraco.Core.Constants.Security.BackOfficeExternalAuthenticationType
.
2. Set the AuthenticationType
Set the AuthenticationType
in the OpenIdConnectAuthenticationOptions
. It must match the name of the Authority
in order for auto-link to work.
Important: Set it again after identityOptions.ForUmbracoBackOffice("btn-microsoft", "fa-windows");
explicitly since it prefixes it with 'Umbraco.'
after the method call.
3. Include the email claim
I've added the email claim, this is also required for auto-link to work.
Scope = "openid email profile application.profile",
4. Ensure that you have any form of name claim
I've set AlwaysIncludeUserClaimsInIdToken
to true
in the IDP, so the id claims get automatically in Umbraco.
My ClaimsTransformer
looks like this now:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install UmbracoIdentityExtensions
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page