Could not authenticate you from AzureActivedirectoryV2 because "Csrf detected"

Could not authenticate you from AzureActivedirectoryV2 because “Csrf detected”.
Can check the configuration in the config file is -

gitlab_rails[‘omniauth_allow_single_sign_on’] = [‘saml’]
gitlab_rails[‘omniauth_auto_link_saml_user’] = true
gitlab_rails[‘omniauth_auto_link_user’] = [‘azure_activedirectory_v2’]
gitlab_rails[‘omniauth_providers’] = [
{
“name” => “azure_activedirectory_v2”,
“label” => “Azure AD”,
“args” => {
“client_id” => “",
“client_secret” => "
",
“tenant_id” => "
*********”,
}
}
]

Need help on this what can be done to resolve this issue?

1 Like