Azure AD Identity Provider throws 403 on redirection when login to Keycloak

Hi all,

I’m simply setting Azure AD as an Identity Provider on Keycloack. I followed the steps on the following video (https://www.youtube.com/watch?v=LYF-NLHD2uQ&ab_channel=NikoKöbler(%40dasniko)) which are pretty straightforward.

Edit: configuration is akin to the described in the solution post of this thread: AzureAD OIDC Configuration

Basically it configures it as a custom oidc provider.

I’m able to login to Azure AD and when being redirected back to Keycloak I get the following screen. The error 403 could possibly be caused by the next request:

Any idea? it seems that the Identity Provider is correctly configured and that the error may be caused by Keycloak itself.

I’m using keycloak 19.0.1

Thanks in advance.