This example demonstrates how one can log in from an external domain to CAMPUSonline Keycloak. CAMPUSonline Keycloak issues a valid JWT (JSON Web Token) to the application for the user who has logged in. This JWT can be used to access "my-endpoints" - REST interfaces that return data in the context of a user. The login is accomplished using the Keycloak Javascript Adapter.
IMPORTANT To test the login with Keycloak for a specific CAMPUSonline instance, Keycloak must be configured accordingly. On one hand, an appropriate client must be provided, and on the other hand, the Security Defense must be configured with this domain. For more information, please refer to the README.md in the COmmunity GitLab.
Hint: This site only works if you have access to keycloak in your browser.
To connect with the Keycloak of the desired instance, you need to modify the script URL and the authorization URL according to your instance. Please also change the Client ID that will be used for the login.
If you want to reset the configuration, you can do this here.