I’m currently trying to implement third-party authentication using Keycloak, I’ve activated the keycloak OAuth2 backend provided by
python-social-auth using a yml plugin, I’m able to select my OAuth Provider in the login page and then provide my credentials in the keycloak form.
Then when the authentication is completed I’m redirected to the edX login page with the following error message
An error occurred when signing you in to My Open edx.
We are sorry, you are not authorized to access My Open edx via this channel. Please contact your learning administrator or manager in order to access My Open edx.
Authentication failed: HTTPConnectionPool(host=‘localhost’, port=8080): Max retries exceeded with url: /auth/realms/ippon/protocol/openid-connect/token (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f8817920e50>: Failed to establish a new connection: [Errno 111] Connection refused’))
On the keycloak side, the logs say the login is successful. It seems like Open edX or Tutor is blocking something
Thank for your help !