Support Keycloak 17+
See original GitHub issueFeature description
Keycloak 17
In Keycloak 17 the default distribution is powered by Quarkus and default endpoints has changed (removed the /auth
prefix) so autoconfiguration of EndSessionEndpoint
is failing.
See https://github.com/micronaut-projects/micronaut-security/pull/1009
Keycloak 18
In Keycloak 18 there are even bigger changes as shift to using standard OIDC logout and more. This means the KeycloakEndSessionEndpoint
is not working anymore.
The behaviour is now following OIDC standard and is working exactly as OktaEndSessionEndpoint
.
Proposed solution
Add new configuration property mode
with following options:
auto
(actual behavior usingEndSessionEndpointResolver
, backward compatible, default value)standard
(new behaviour, following the standard, using renamedOktaEndSessionEndpoint
)
Example:
micronaut:
security:
oauth2:
clients:
internal:
enabled: true
client-id: xxx
client-secret: xxx
openid:
issuer: xxx
end-session:
enabled: true
mode: standard # <-- this is the new property
Current workaround for Keycloak 18
We successfuly tricked Micronaut to think that Keycloak is Okta by using ?okta
suffix for issuer URL e.g. https://sso.xxx.com/realms/master?okta
.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Support for Java17 - Keycloak Discourse
Hi team,. Any idea on Keycloak support for Java 17. Thanks!! ... Have you tried it? There are not “officially supported” versions of...
Read more >Keycloak 17.0.0 released
A new approach to documentation in form of server guides to help you install and configure Keycloak. Upgraded Quarkus to 2.7.0.Final.
Read more >Release Notes - Keycloak
Supported OpenJDK versions. Keycloak now supports OpenJDK 17 both for the server and adapters. With the removal of the WildFly based distribution there...
Read more >Upgrading Guide - Keycloak
As mentioned above, we try to support newer release versions of Keycloak server working with older release versions of the adapters. However, in ......
Read more >Documentation - Keycloak
Guides ; Getting Started, How to get started with Keycloak ; Server Installation and Configuration, Installation and offline configuration of the Keycloak server....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the request @morki
I think we have to support OpenID Connect RP-Initiated Logout 1.0. And I think we have to be able to specify whether you want to use that logout request or a custom.
New version for this proposal can use property
vendor
instead ofmode
:This new version can be used for https://github.com/micronaut-projects/micronaut-test-resources/pull/44 and will enable multiple versions of Keycloak for example.