-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IConfigureNamedOptions<MemberExternalLoginProviderOptions> Configure methods never called to setup autolinking #17027
Comments
Hi there @r-modica-cti! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Hi @r-modica-cti , thank you for reporting the issue. I'm trying to reproduce it, I'll let you know as soon as possible 🚀 |
Hi again @r-modica-cti , I am using v13.5.0 and unfortunately I cannot reproduce this issue, can you confirm that when you register a web application in Azure AD, you enable ID token implicit grant? like this tutorial https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications?tabs=app-reg-ga |
Hi @NguyenThuyLan, We have found what the issue was after we put a vanilla install for code review. You would be able to replicate it if you deleted the login page most likely, or created a project which didn't have a login page created. The site we were building is exclusively external login only, so we did not have a Login page created, becuase, we didn't need one. On the login page there is something that is injected and without that, the Membership options are never hit. Essentially, we were missing this:
Once that was added, we were able to register what we needed too. |
It's great that you got the problem and the solution. So I will close this issue here. Thank you very much 😊 |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.3.0
Bug summary
We are unable to get auto linking working with an Azure AD provider as the
IConfigureNamedOptions<MemberExternalLoginProviderOptions> Configure
is never called to setup auto linking.The login via the external service is working (as in we are presented with a Microsoft login page which allows us to put in credentials) and we are redirected back to the site, but no member is linked.
Setting breakpoints on either of the
Configure
methods never get hit.We don't believe there is an issue with out implementation as we have also copied the implementation from the official documentation (literally copied with no code changes):
https://docs.umbraco.com/umbraco-cms/tutorials/add-microsoft-entra-id-authentication
We have tried different types of provider too, like OIDC but its the same, the MemberExternalLoginProviderOptions are never called.
Options file
Extension (secrets have been removed):
Specifics
No response
Steps to reproduce
We are using an Azure AD integration (not B2C) which may require a client to be setup on an Azure AD Tenant.
We have essentially copied this line for line into a project:
https://docs.umbraco.com/umbraco-cms/tutorials/add-microsoft-entra-id-authentication
Expected result / actual result
For the
OnAutoLinking
andOnExternalLogin
to be wired up correctly and theConfigure
methods of theEntraIDB2CMembersExternalLoginProviderOptions
to be run.The text was updated successfully, but these errors were encountered: