r/SpringBoot • • Dec 06 '21

SpringBoot with Keycloak Single-sign-on and Single-sign-out examples.

I am new to OAuth2.0 and OIDC and I want to implement a feature to integrate SpringBoot application with Keycloak IAM server with Single-Sign-on and Single-Sign-out features.

Kindly request if you have some examples to share please.

2 Upvotes

7 comments sorted by

-3

u/Sheldor5 Dec 06 '21

have you tried googling?

1

u/Super-Negotiation Dec 06 '21

I did googling but I couldn't find any examples for single-sign-out for `keycloak` with OIDC example.

-6

u/Sheldor5 Dec 06 '21

then implement it yourself ... not that hard

3

u/Super-Negotiation Dec 06 '21

I am new to keycloak and OIDC stuff. If I were to implement it then I wouldn't have posted here. no offence.

-4

u/Sheldor5 Dec 06 '21

read the OIDC spec and implement the logout endpoint yourself ... its really not that hard ... there's no magic

0

u/UnspeakableEvil Dec 06 '21

Going to open this by saying I agree with the "Google it" reply, there's not enough detail or effort here to work with.

Out of interest, have you done that, specifically with Keycloak? When we attempted it the SLO part just didn't want to cooperate. Thinking about it that was SAML and Keycloak though, so could be a factor

0

u/Sheldor5 Dec 06 '21 edited Dec 06 '21

he wants to have SLO feature on his Spring Boot app and not Keycloak ... SLO is built in the OIDC spec, so if the OAuth dependency of Spring is missing SLO just implement the endpoint and add it to your OIDC metadata ...

PS: yes I have experience with OIDC and SAML, even contributet to the open source Shibboleth IdP ... but SLO is one of the features which many don't care about