Hello,
We have set up a client in Keycloak.
We attempted to connect Keycloak with Moodle 4.2.2+ (Build: 20230822) using the OpenID Connect plugin (https://moodle.org/plugins/auth_oidc) to enable users to log in via Single Sign-On (SSO).
We have taken the following steps:
- We created the client in Keycloak.
- We set the redirect URI (provided by the plugin) in Keycloak.
- In the plugin settings in Moodle, we configured the authorization endpoint, token endpoint, resource, identity provider (IdP) type: other, and client secret.
- We tested logging in. We were able to log in using OpenID, which directed us to Keycloak. However, when it attempted to redirect to Moodle, we encountered the following error:
403 Forbidden
You don't have permission to access this resource.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Any help will be appreciated.