Skip to content

Commit 466529c

Browse files
committed
fix: logout problems in combination of Proxy and keycloak
1 parent 4660e5e commit 466529c

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,17 @@ There are the following default users:
166166
|all |all |**auditor, reviewer, publisher, editor, author, registred** |
167167
|none |none | |
168168

169+
### Login & Logout in combination with Secvisogram
170+
171+
Some explantion on the logoutUrl configured in `.well-known/appspecific/de.bsi.secvisogram.json` for Secvisogram
172+
173+
```
174+
"logoutUrl": "/oauth2/sign_out?rd=http://localhost/realms/csaf/protocol/openid-connect/logout?post_logout_redirect_uri=http%3A%2F%2Flocalhost&client_id=secvisogram",
175+
```
176+
177+
`/oauth2/sign_out` is the logout URI from the OAUTH-Proxy. This will invalidate the session on the proxy. Then a redirect to Keycloak (`http://localhost/realms/csaf/protocol/openid-connect/logout?post_logout_redirect_uri=http%3A%2F%2Flocalhost&client_id=secvisogram`) is necessary to log out the session on keyloak. Then there is a redirect back to Secvisogram (`localhost`).
178+
179+
When changes hostnames this has to adopted.
169180

170181
### build and execute tests
171182

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"loginAvailable": true,
3-
"loginUrl": "/oauth2/sign_in?rd=http%3A%2F%2Flocalhost%3A9000",
4-
"logoutUrl": "/oauth2/sign_out?rd=http%3A%2F%2Flocalhost%3A9000",
3+
"loginUrl": "/oauth2/sign_in?rd=http%3A%2F%2Flocalhost",
4+
"logoutUrl": "/oauth2/sign_out?rd=http://localhost/realms/csaf/protocol/openid-connect/logout?post_logout_redirect_uri=http%3A%2F%2Flocalhost&client_id=secvisogram",
55
"userInfoUrl": "/oauth2/userinfo",
66
"validatorUrl": "/validate"
77
}

keycloak/csaf-realm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"registrationAllowed": false,
4343
"verifyEmail": false,
4444
"attributes" : {
45-
"frontendUrl": "http://localhost:9000/"
45+
"frontendUrl": "http://localhost/"
4646
},
4747
"roles": {
4848
"client": {

0 commit comments

Comments
 (0)