Skip to content

KEYCLOAK-15156 backchannel logout offline session handling - #7333

Merged
pedroigor merged 1 commit into
keycloak:masterfrom
bosch-io:KEYCLOAK-15156-backchannel-logout-offline-session-handling
Aug 13, 2020
Merged

pedroigor merged 1 commit into
keycloak:masterfrom
bosch-io:KEYCLOAK-15156-backchannel-logout-offline-session-handling

Conversation

@benjamin37

Copy link
Copy Markdown
Contributor

Hi,

this PR is a followup of #7272 to be also able to logout offline session via the backchannel logout.

Accoding the the OIDC specification:

Refresh tokens issued without the offline_access property to a session being logged out SHOULD be revoked. Refresh tokens issued with the offline_access property normally SHOULD NOT be revoked. NOTE: An open issue for the specification is whether to define an additional optional parameter in the logout token, probably as a value in the event-specific parameters JSON object, that explicitly signals that offline_access refresh tokens are also to be revoked.

We added a new value in the event json of the offline token that Keycloak respects. If revoke_offline_access is set, offline sessions will also be revoked in the backchannel logout request. Furthermore we added a setting in the client to send this event to the RP when a backchannel logout is performed. Sadly the OIDC specification does not provide a standard name of this parameter.

Kind regards
Benjamin

@pedroigor pedroigor added kind/enhancement Categorizes a PR related to an enhancement area/oidc OpenID Connect / OAuth 2.0 — tokens, endpoints, scopes, DCR, PAR, DPoP impact/low labels Aug 13, 2020
@pedroigor
pedroigor merged commit fdcfa6e into keycloak:master Aug 13, 2020
@benjamin37
benjamin37 deleted the KEYCLOAK-15156-backchannel-logout-offline-session-handling branch August 13, 2020 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/oidc OpenID Connect / OAuth 2.0 — tokens, endpoints, scopes, DCR, PAR, DPoP kind/enhancement Categorizes a PR related to an enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants