Skip to content
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

B2C connection not working #2534

Open
JorritDeKlerk opened this issue Mar 19, 2024 · 1 comment
Open

B2C connection not working #2534

JorritDeKlerk opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels
Issue type - enhancement request New feature being requested outside of original scope. Plugin - auth_oidc Status - queued / not yet started The request is clear, but the work has yet to be scheduled.

Comments

@JorritDeKlerk
Copy link

Using the latest versions of the plugins and after configuring B2C in Azure, it still is not quite clear to me if these wonderful plugins do even work with B2C or not.

Using IdP-type 'Other' and authorization/token endpoints like 'https://xxx.b2clogin.com/xxx.onmicrosoft.com/signin_and_signup/oauth2/v2.0/authorize' and with scope 'openid profile email' I'm getting an 'Could not get app or system token' when authenticating.

I dit manage to get it to work with the alternative auth_azureb2c plugin but that plugin is not up to date (and, as I understand, based on auth_oidc) so I think I configured things right on the Azure-side.

I just want SSO but it's not clear to me if the plugin does even work with B2C or there are changed needed in auth_oidc.

@weilai-irl
Copy link
Collaborator

Hi @JorritDeKlerk

I confirm the plugins don't work on B2C tenants out of the box. This is due to some differences between B2C and non-B2C tenants, mainly in claims available in access tokens and ID tokens.

With that said, we do have a few clients who use the plugins to integration Moodle and Microsoft B2C tenants with the help of some customisations. We have a plan to review the customisations applied across the sites with the aim to provide some out-of-the-box support for at least the SSO feature. We hope to carry out the work in the coming weeks/months.

I'll update this issue when the changes are ready.

Regards,
Lai

@weilai-irl weilai-irl self-assigned this May 29, 2024
@weilai-irl weilai-irl added Issue type - enhancement request New feature being requested outside of original scope. Plugin - auth_oidc Status - queued / not yet started The request is clear, but the work has yet to be scheduled. labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue type - enhancement request New feature being requested outside of original scope. Plugin - auth_oidc Status - queued / not yet started The request is clear, but the work has yet to be scheduled.
Projects
None yet
Development

No branches or pull requests

2 participants