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. My first post... bare with me...
I'd like to replace the user login (NOT the member login) in my Umbraco v8 installation but I haven't been able to find anything other than how to create custom MEMBER login pages.
I don't just want to change the layout, but I want to use an entirely different identity provider.
I have managed to create a login page that takes me to this other IdP and returns to Umbraco when login has been completed. But I have only been able to create a member login - not a user login.
Can anyone direct me to a bit of information on how to do that? I do have a principal identity when returning from my IdP.
Any help would be much appreciated :-)
Edit: When I get to the point where I'd hoped to be logged in, instead I'm met with the standard Umbraco login page. I DO have an authCookie with the name I expect and a value like
Then if I login using the username/pwd for the user already authenticated through my IdP the content of the cookie changes to something like
So obviously I haven't gotten the authCookie created correct.
I'm hooking into the response from my IdP using an action that implements IAction so I dont have access to any context (Application or Umbraco) at the time I (try to) set the authCookie.
currently also playing with integrating IdentityServer and Umbraco. There are nuget packages that help by integrating.
Search for Umbraco.Identity.
Also there are some blog posts in the topic which can be adapted to v8
I have already been looking into Shazwazzas Umbraco.Identity but that only adresses MEMBER login. Not backoffice user login which is what I'm after.
Thanks for taking the time to reply :-)
Shannon also has a project that shows how to extend backoffice Users called UmbracoIdentityExtensions:
It's been updated for V8.
If it's not exactly what you need, it might provide some inspiration.
so my starting point for integration was this article: https://yuriburger.net/2017/04/26/login-to-umbraco-backoffice-using-identityserver4/.
Not sure which identity provider you want to use but I think it can give you some hints.
For my bad I pointed you to the wrong package out of memory.
The important ones are UmbracoCms.IdentityExtensions and then depending on what ID you want to use:
These are kind of pre-build starting points/integrations.
If you want to use IdentityServer you need Microsoft.Owin.Security.OpenIdConnect to setup the OpenId connection instead of one of the above ones.
Thanks for getting back to me David :-)
I have managed to get it working somewhat by implementing this logic in a custom SurfaceController:
var identityName = HttpContext.User.Identity.Name; //Email
var us = Services.UserService;
var user = us.GetByEmail(identityName);
It's not exactly what I want but for a POC it works. Now I'm trying to figure out how to redirect users to /login when they try to access /umbraco and are not logged in. Here's another post I just made: https://our.umbraco.com/forum/extending-umbraco-and-using-the-api//98780-can-i-redirect-to-custom-user-login-if-user-is-not-logged-in-as-backoffice-user
I'll have a look at your links :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted