File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
deps/rabbitmq_management/priv/www/js/oidc-oauth Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments