Skip to content

Commit

Permalink
Add configuration option for origin loop (#923)
Browse files Browse the repository at this point in the history
* Add configuration option for origin loop

Depends on PR cloudfoundry/uaa#2932

* Update jobs/uaa/spec

Co-authored-by: Adrian Hölzl <102049638+adrianhoelzl-sap@users.noreply.github.com>

* Update description

Use a more generic description.
This flag should be used later also in /identity-providers GET
to filter this and not return all IdPs

---------

Co-authored-by: Adrian Hölzl <102049638+adrianhoelzl-sap@users.noreply.github.com>
  • Loading branch information
strehle and adrianhoelzl-sap authored Jul 25, 2024
1 parent d4d0143 commit 2e797c7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jobs/uaa/spec
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ properties:
login.checkOriginEnabled:
description: "This flag enables the origin check in SCIM. Otherwise, the assignments of users to an origin are not validated."
default: false
login.allowOriginLoop:
description: "This flag allows to retrieve all origins during login or configuration, e.g. all SAML or OIDC identity providers. Otherwise, only filtered access is possible."
default: true

# Email
login.notifications.url:
Expand Down Expand Up @@ -1408,4 +1411,4 @@ properties:
YkYKBatFEKdBFlAKLBdG+5KzE7sTYesn7EzBISHXFz3DhdK2tg+IF1DeSFVmFl2n
iVxQ1sYjo4kCugHBsWo+MpFH9VBLFzsMlP3eIDuVKe8aPXFKYCGhctZEJdQTKlja
lshe50nayKrT
-----END CERTIFICATE----
-----END CERTIFICATE----
1 change: 1 addition & 0 deletions jobs/uaa/templates/config/uaa.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@
'accountChooserEnabled' => p('login.accountChooserEnabled'),
'aliasEntitiesEnabled' => p('login.aliasEntitiesEnabled'),
'checkOriginEnabled' => p('login.checkOriginEnabled'),
'allowOriginLoop' => p('login.allowOriginLoop'),
'entityBaseURL' => login_entityBaseUrl,
'entityID' => login_entityId,
'prompt' => {
Expand Down
1 change: 1 addition & 0 deletions spec/compare/all-properties-set-uaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ login:
accountChooserEnabled: true
aliasEntitiesEnabled: true
checkOriginEnabled: true
allowOriginLoop: false
entityBaseURL: http://all-properties-set:8888/uaa
entityID: all-properties-set:8888/uaa
prompt:
Expand Down
1 change: 1 addition & 0 deletions spec/compare/bosh-lite-uaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ login:
accountChooserEnabled: false
aliasEntitiesEnabled: false
checkOriginEnabled: false
allowOriginLoop: true
entityBaseURL: https://login.bosh-lite.com
entityID: login.bosh-lite.com
prompt:
Expand Down
1 change: 1 addition & 0 deletions spec/compare/deprecated-properties-still-work-uaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ login:
accountChooserEnabled: false
aliasEntitiesEnabled: false
checkOriginEnabled: false
allowOriginLoop: true
entityBaseURL: http://test.uaa.url
entityID: test.uaa.url
prompt:
Expand Down
1 change: 1 addition & 0 deletions spec/compare/test-defaults-uaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ login:
accountChooserEnabled: false
aliasEntitiesEnabled: false
checkOriginEnabled: false
allowOriginLoop: true
entityBaseURL: http://test.uaa.url
entityID: test.uaa.url
prompt:
Expand Down
1 change: 1 addition & 0 deletions spec/input/all-properties-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ properties:
accountChooserEnabled: true
aliasEntitiesEnabled: true
checkOriginEnabled: true
allowOriginLoop: false
links:
global:
passwd: "https://{zone.subdomain}.myaccountmanager.domain.com/z/{zone.id}/forgot_password"
Expand Down

0 comments on commit 2e797c7

Please sign in to comment.