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
I was hoping someone might be able to provide a bit of help getting Azure B2C working to authenticate external users into the backoffice.
I have implemented the suggested code here, however after redirecting out to B2C it just seems to return to /umbraco-signin-oidc and display a ERR_CONNECTION_REFUSED error in my browser.
My auth code looks like below
options.RemoteSignOutPath = "/oidc-signout";
options.MetadataAddress = "https://xx.b2clogin.com/landoswolerissiandev.onmicrosoft.com/B2C_1_signin1/v2.0/.well-known/openid-configuration";
options.ClientId = "xxxx";
options.SignedOutRedirectUri = "https://localhost:44323/umbraco";
options.TokenValidationParameters = new Microsoft.IdentityModel.Tokens.TokenValidationParameters
NameClaimType = "name"
If anyone has any advice or working examples in the latest versions of v9 that would be amazing!
Maybe you are missing
options.CallbackPath = "/signin-oidc";
Also you could follow this here : https://www.scottbrady91.com/umbraco/backoffice-sso-openid-connect
Thanks for that!
I've followed that and managed to get Umbraco redirecting out to B2C and authenticating now. It seems to link work perfectly when I link things via the user profile in their account.
However when I try and use auto linking I get the following error:
The requested provider (Umbraco.oidc) has not provided the email claim http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress, the account cannot be linked.
My autolinking code is copy pasted from the docs here
Yes I get this same error too. It seems Umbraco.oidc scheme does not get the email claim for some reason. I am stuck on this myself. This is one workaround I have found which might be helpful for you https://our.umbraco.com/forum/umbraco-9/107617-onautolinking-not-working#comment-335140
Thanks for the help. I can work around with this stuff.
I was wondering if you have any suggestions implementing Azure B2C for members on an external site, not backoffice. Appreciate any help or pointers you can share.
I don't sorry, I was using B2C to authenticate the back office only
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted