Skip to content

Commit

Permalink
Logout URI (#16)
Browse files Browse the repository at this point in the history
* Add logout URL based on LEAF_DOMAIN

* Make every site use env var for logout URL
  • Loading branch information
ivan-c committed Feb 5, 2025
1 parent 376e644 commit 4f1c3ff
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dev/alive/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"InactivityTimeoutMinutes": 20,
"Logout": {
"Enabled": true,
"URI": "https://www.github.com"
"URI": "LEAF_LOGOUT_URI"
},
"SAML2": {
"Headers": {
Expand Down
2 changes: 2 additions & 0 deletions dev/common-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ services:
- internal

coreapi:
environment:
LEAF_LOGOUT_URI: https://${LEAF_DOMAIN}/oauth2/sign_out
image: ghcr.io/uwcirg/leaf-api:${LEAF_API_IMAGE_TAG:-latest}
build:
context: ../src/leaf/src/server
Expand Down
2 changes: 1 addition & 1 deletion dev/gateway/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"InactivityTimeoutMinutes": 20,
"Logout": {
"Enabled": true,
"URI": "https://www.github.com"
"URI": "LEAF_LOGOUT_URI"
},
"SAML2": {
"Headers": {
Expand Down
2 changes: 1 addition & 1 deletion dev/hymtruth/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"InactivityTimeoutMinutes": 20,
"Logout": {
"Enabled": true,
"URI": "https://www.github.com"
"URI": "LEAF_LOGOUT_URI"
},
"SAML2": {
"Headers": {
Expand Down
2 changes: 1 addition & 1 deletion dev/mash/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"InactivityTimeoutMinutes": 20,
"Logout": {
"Enabled": true,
"URI": "https://www.github.com"
"URI": "LEAF_LOGOUT_URI"
},
"SAML2": {
"Headers": {
Expand Down
2 changes: 1 addition & 1 deletion dev/mstudy/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"InactivityTimeoutMinutes": 20,
"Logout": {
"Enabled": true,
"URI": "https://www.github.com"
"URI": "LEAF_LOGOUT_URI"
},
"SAML2": {
"Headers": {
Expand Down
2 changes: 1 addition & 1 deletion dev/radar/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"InactivityTimeoutMinutes": 20,
"Logout": {
"Enabled": true,
"URI": "https://www.github.com"
"URI": "LEAF_LOGOUT_URI"
},
"SAML2": {
"Headers": {
Expand Down

0 comments on commit 4f1c3ff

Please sign in to comment.