My goal is to authenticate all website visitors to any frontend page via Azure AD. I've had no trouble completing this in other .NET Core web apps, but implementing it in Umbraco 12.2 has proven challenging!
Hi,
we have the same issue trying to authenticate with Azure Active Directory from a new website built on Umbraco 12 and .Net Core.
Were you ever able to solve this problem?
We have a working solution for an old Umbraco 7 site which we are trying to move away from. However, without AAD authentication we cannot move forward.
I'm close, but the provided documentation works with multi-tenant Azure AD. Ours is a single-tenant Azure AD, and thus I'm stuck. I get the oidc login screen, but I get an error when I attempt to login that a multi-tenant Azure AD is required.
Add OIDC Azure AD Auth to all Frontend Pages
My goal is to authenticate all website visitors to any frontend page via Azure AD. I've had no trouble completing this in other .NET Core web apps, but implementing it in Umbraco 12.2 has proven challenging!
I found some posts doing similar auth like this https://docs.umbraco.com/umbraco-cms/tutorials/add-azure-active-directory-authentication and this https://www.scottbrady91.com/umbraco/frontend-members-sso-openid-connect . There's even a package out there https://marketplace.umbraco.com/package/umbraco.community.azuresso
But, none of these match exactly what I was hoping to accomplish. I don't really want all of those memberships.
Here's what I've tried so far...
I registered my app in portal.azure.com and setup the redirect URLs including: https://localhost:44314/signin-oidc
I created a class
AzureADAuth.cs
Then I added a call to that in my
Startup.cs
And this bit was added to the
Configure
inStartup.cs
Added the Azure AD credentials to appsettings.json
The end result is a 404.15 Error.
The requested URL: https://localhost:44314/Account/Login?ReturnUrl=%2FAccount%2FLogin%3FReturnUrl%3D%252FAccount%252FLogin%253FReturnUrl%253D%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAccount%**shortened for brevity
Any pointers on how to resolve this issue trying to implement OIDC Azure AD Auth to all frontend pages?
Hi, we have the same issue trying to authenticate with Azure Active Directory from a new website built on Umbraco 12 and .Net Core. Were you ever able to solve this problem? We have a working solution for an old Umbraco 7 site which we are trying to move away from. However, without AAD authentication we cannot move forward.
@philbarker I made some strides on this, but I have not yet cracked the nut.
I found this documentation helpful https://docs.umbraco.com/umbraco-cms/reference/security/external-login-providers and more specifically this documentation got me still closer https://docs.umbraco.com/umbraco-cms/tutorials/add-azure-active-directory-authentication
I'm close, but the provided documentation works with multi-tenant Azure AD. Ours is a single-tenant Azure AD, and thus I'm stuck. I get the oidc login screen, but I get an error when I attempt to login that a multi-tenant Azure AD is required.
is working on a reply...