This Keycloak extension is inspired by the KeycloakConditionalSpnegoAuthenticator.
It has two main functions:
- allowing skipping Kerberos authentication based on networks or cookies (or both).
- allowing limiting kerberos to IP ranges
This addresses a common compaint about allowing users to logout and log in again with another user account and/or with username/password
It uses a cookie to skip another kerberos login, when configured to do that.
Build it with Maven, copy the jar to the /opt/keycloak/providers/
directory. We usually build it inside the Keycloak-quickstarts repo, under the extensions
folder. It is easily adaptable to be built elsewhere.
We can provide the jar as a release if people starts asking for it.
![Screenshot 2024-09-12 at 08 41 03](https://private-user-images.githubusercontent.com/6791923/366750930-0d9cfc17-96df-4d4c-9cca-e10b8ebd68e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzEzMDYsIm5iZiI6MTczOTM3MTAwNiwicGF0aCI6Ii82NzkxOTIzLzM2Njc1MDkzMC0wZDljZmMxNy05NmRmLTRkNGMtOWNjYS1lMTBiOGViZDY4ZTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTQzNjQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmU3NzIzMTc2MDE2NjU3ODc2YjQ3NmQzOGQxZTEzYWQ0MDQ5NDA2ODc5YTU3YmJjM2FkZTBiZDE0NjIwMThmNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.iNtvC8fXYP17YaViqaYwKbujxbNiSPQ-LbEC8I758fc)