Skip to content

Commit b1e02ac

Browse files
White-list fakeportal on the logout's uaa
1 parent 2755c53 commit b1e02ac

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export function oauth_initiateLogout() {
315315

316316
} else {
317317
if (oauth.oauth_end_session_endpoint != null) {
318-
location.href = oauth.oauth_end_session_endpoint
318+
location.href = oauth.oauth_end_session_endpoint
319319
}else {
320320
go_to_authority()
321321
}

selenium/fakeportal/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ app.get('/', function(req, res){
3434
app.get('/favicon.ico', (req, res) => res.status(204));
3535

3636
app.get('/logout', function(req, res) {
37-
const redirectUrl = uaa_url + '/logout.do'
37+
const redirectUrl = uaa_url + '/logout.do?client_id=' + client_id + "&redirect=https://fakeportal:3000"
3838
console.debug("Received /logout request -> redirect to " + redirectUrl)
3939
res.redirect(redirectUrl);
4040
})
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#management.oauth_provider_url = ${FAKEPORTAL_URL}
21

3-
#auth_oauth2.end_session_endpoint = ${FAKEPORTAL_URL}/logout
2+
auth_oauth2.end_session_endpoint = ${FAKEPORTAL_URL}/logout
43
auth_oauth2.issuer = ${FAKEPORTAL_URL}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
management.oauth_initiated_logon_type = idp_initiated
22

3-
#auth_oauth2.end_session_endpoint = ${FAKEPORTAL_URL}/logout

selenium/test/oauth/uaa/uaa.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ logout:
1818
parameter:
1919
disable: false
2020
whitelist:
21-
${RABBITMQ_SCHEME}://${RABBITMQ_HOST}/*
21+
${RABBITMQ_SCHEME}://${RABBITMQ_HOST}/*
22+
${FAKEPORTAL_URL}/*
2223
login:
2324
serviceProviderKey: |
2425
-----BEGIN RSA PRIVATE KEY-----

0 commit comments

Comments
 (0)