For more than a week my configuration of the keycloak plugin is broken, it worked very well before.
After consulting the logs, I realize that it is the oauth.py file which is called instead of that of keycloak in the backend.
my configuration of the keycloak plugin
name: keycloak
version: 0.1.0
patches:
common-env-features: |
"ENABLE_THIRD_PARTY_AUTH": true
openedx-lms-common-settings: |
SOCIAL_AUTH_KEYCLOAK_KEY = '$SOCIAL_AUTH_KEYCLOAK_KEY'
SOCIAL_AUTH_KEYCLOAK_SECRET = '$SOCIAL_AUTH_KEYCLOAK_SECRET'
SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY = '$SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY'
SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL = '$SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL'
SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL = '$SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL'
SOCIAL_AUTH_KEYCLOAK_ID_KEY = '$SOCIAL_AUTH_KEYCLOAK_ID_KEY',
SOCIAL_AUTH_OAUTH_SECRETS= { "keycloak": "$SOCIAL_AUTH_KEYCLOAK_SECRET" }
lms-env: |
"THIRD_PARTY_AUTH_BACKENDS": [
"social_core.backends.keycloak.KeycloakOAuth2"
]
openedx-auth: |
"keycloak": "$SOCIAL_AUTH_KEYCLOAK_SECRET"
the error after authentication on keycloak