Skip to content

Commit ac70562

Browse files
Redirect to end_session_endpoint
for idp_initiated logons if it is defined
1 parent cc0458a commit ac70562

File tree

1 file changed

+8
-1
lines changed
  • deps/rabbitmq_management/priv/www/js/oidc-oauth

1 file changed

+8
-1
lines changed

deps/rabbitmq_management/priv/www/js/oidc-oauth/helper.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,9 @@ export function oauth_initialize(authSettings) {
214214
if (resource_server) {
215215
oauth.sp_initiated = resource_server.sp_initiated
216216
oauth.authority = resource_server.oauth_provider_url
217+
if (resource_server.end_session_endpoint != "") {
218+
oauth.end_session_endpoint = resource_server.end_session_endpoint
219+
}
217220
if (!resource_server.sp_initiated) return oauth;
218221
else oauth_initialize_user_manager(resource_server)
219222
}
@@ -311,7 +314,11 @@ export function oauth_initiateLogout() {
311314
})
312315

313316
} else {
314-
go_to_authority()
317+
if (oauth.end_session_endpoint != null) {
318+
location.href = oauth.end_session_endpoint
319+
}else {
320+
go_to_authority()
321+
}
315322
}
316323
}
317324

0 commit comments

Comments
 (0)