How to add Azure B2c to Squidex

I have Customer Policy Login on Azure AD B2c like:

 "issuer": "https://mytenant.b2clogin.com/7d73c792-46b8-402b-b77f-38ce079a3dd7/v2.0/",
  "authorization_endpoint": "https://mytenant.b2clogin.com/mytenant.onmicrosoft.com/oauth2/v2.0/authorize?p=b2c_1a_signup_signin",
  "token_endpoint": "https://mytenant.b2clogin.com/mytenant.onmicrosoft.com/oauth2/v2.0/token?p=b2c_1a_signup_signin",
  "end_session_endpoint": "https://mytenant.b2clogin.com/mytenant.onmicrosoft.com/oauth2/v2.0/logout?p=b2c_1a_signup_signin",
  "jwks_uri": "https://mytenant.b2clogin.com/mytenant.onmicrosoft.com/discovery/v2.0/keys?p=b2c_1a_signup_signin",

How Can I add this Login policy to Squidex.

I have tried:

  1. Add this config to Configuration:
{
    {
        "name": "IDENTITY__oidcAuthority",
        "value": "https://login.microsoftonline.com/my_tenant_name/v2.0",
    },
    {
        "name": "IDENTITY__oidcClient",
        "value": "9bf5bf5c-320...."
    },
    {
        "name": "IDENTITY__oidcSecret",
        "value": "1LE8Q...
    }
}

Add Authentication Provider

My application Setting:


Environment

App Name:

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x] Cloud version

Version:

Docker image: squidex/squidex:dev-6913

Browser:

  • [x] Chrome Version 102.0.5005.115 (Official Build) (64-bit)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

What exactly is the question?

1 Like

How Can I add this Azure Ad B2c Policy Login to Squidex. @Sebastian

i did a few things but its not working.

I will have a look, but I need concrete errors or so to help. I cannot provide detailed instructions or test all kind of integrations myself.

1 Like

I got it working.

These are the settings I made:

IDENTITY_OIDCAUTHORITY

https://login.microsoftonline.com/{tenantId}/v2.0

from

IDENTITY__OIDCRESPONSETYPE

Code

IDENTITY__OIDCCLIENT

from

IDENTITY__SECRET

from

Redirect URI

https://<YOUR_DOMAIN>/signin-oidc