Oauth Azure AD configuration help

I’ve enabled third-party authentication and configured Azure as the backend authentication.
I’ve created the enterprise application.
The login page shows Microsoft as a sign-in option.
After logging in with Microsoft ID, it returns to the authentication page of tutor with the error.

“We are sorry, you are not authorized to access XYZ via this channel. Please contact your learning administrator …”
Error details
your credentials are not allowed. "

checking the LMS logs

[openedx.core.djangoapps.cors_csrf.helpers] [user None] [ip x.x.x.x] helpers.py:64 - Origin ‘https://login.microsoftonline.com’ was not in CORS_ORIGIN_WHITELIST; full referer was ‘https://login.microsoftonline.com/’ and requested host was ‘xyz.com’; CORS_ORIGIN_ALLOW_ALL=False

INFO 11 [social] [user None] [ip x.x.x.x]] middleware.py:43 - Your credentials aren’t allowed

I’ve tried to edit the common.py and change the value CORS_ORIGIN_ALLOW_ALL=True

Please share if someone has successfully enabled oAuth with AzureAD as the backend.

Hi @Med, welcome to the forum!

Did you follow the instructions? Note that Azure Active Directory now was renamed to Entra Id and things have changed a bit.
It doesn’t look to me a CORS problem. I think it might be that the domain is not validated, or one of the URLs is incorrect.

Hi @Med , have you resolved? I can get the button too, i get redirected to my org EntraID login, but after authenticating i get the same error:

We couldn’t create your account.

We are sorry, you are not authorized to access ISIFLEX edX via this channel. Please contact your learning administrator or manager in order to access ISIFLEX edX.

Error Details:
Your credentials aren’t allowed

In the LMS containter the error is:

2026-01-14 11:15:19,363 INFO 14 [social] [user None] [ip 10.81.234.2] middleware.py:43 - Your credentials aren't allowed

@Andres.Aulasneo the link you provided does not work, could you please update it?

Hi @execcr
You can find the current documentation here

Thank you a lot @joel.edwards

I checked that was the same guide i’ve followed.

Any hint on what i can check for my problem?