Skip to content

Commit

Permalink
Ensure oidc clients with defaultClientScopes declare 'basic' scope
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdarimont committed Jun 25, 2024
1 parent 90be702 commit b0e049c
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/stage/dev/realms/acme-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ clients:
# this secret would be individual for each customer
secret: "$(env:ACME_CLIENT_EXAMPLES_CLIENT_SECRET:-secret)"
defaultClientScopes:
- "basic"
- "email"
- "profile"
- "roles"
Expand Down
2 changes: 2 additions & 0 deletions config/stage/dev/realms/acme-apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "roles"
- "profile"
Expand Down Expand Up @@ -158,6 +159,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
optionalClientScopes:
- "phone"
Expand Down
9 changes: 9 additions & 0 deletions config/stage/dev/realms/acme-client-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -41,6 +42,7 @@ clients:
directAccessGrantsEnabled: true
serviceAccountsEnabled: false
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down Expand Up @@ -70,6 +72,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -89,6 +92,7 @@ clients:
serviceAccountsEnabled: false
secret: "$(env:ACME_CLIENT_EXAMPLES_CLIENT_SECRET:-secret)"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down Expand Up @@ -126,6 +130,7 @@ clients:
serviceAccountsEnabled: true
secret: "$(env:ACME_CLIENT_EXAMPLES_CLIENT_SECRET:-secret)"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -148,6 +153,7 @@ clients:
# Claimed URL
- "https://mobile.acme.test/*"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -170,6 +176,7 @@ clients:
redirectUris:
- "http://localhost/*"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -194,6 +201,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down Expand Up @@ -288,6 +296,7 @@ clients:
serviceAccountsEnabled: true
secret: "$(env:ACME_CLIENT_EXAMPLES_CLIENT_SECRET:-secret)"
defaultClientScopes:
- "basic"
- "email"
- "profile"
- "roles"
Expand Down
1 change: 1 addition & 0 deletions config/stage/dev/realms/acme-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "roles"
- "profile"
Expand Down
13 changes: 13 additions & 0 deletions config/stage/dev/realms/acme-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "roles"
- "profile"
Expand Down Expand Up @@ -246,6 +247,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
optionalClientScopes:
- "phone"
Expand Down Expand Up @@ -278,6 +280,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
optionalClientScopes:
- "phone"
Expand All @@ -303,6 +306,7 @@ clients:
redirectUris:
- "acme://app/callback/*"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -325,6 +329,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -350,6 +355,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
- "roles"
Expand All @@ -373,6 +379,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -391,6 +398,7 @@ clients:
serviceAccountsEnabled: true
secret: "$(env:ACME_APPS_INTERNAL_IDP_BROKER_SECRET:-secret)"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down Expand Up @@ -419,6 +427,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -437,6 +446,7 @@ clients:
serviceAccountsEnabled: true
secret: "$(env:ACME_APPS_DEMO_SERVICE_SECRET:-secret)"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down Expand Up @@ -464,6 +474,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down Expand Up @@ -492,6 +503,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -513,6 +525,7 @@ clients:
"jwt.credential.certificate": "MIIFLzCCAxegAwIBAgIUDYnNAzTFZ6FNHbRn4evtZFluiuAwDQYJKoZIhvcNAQELBQAwJzElMCMGA1UEAwwcYWNtZS1zZXJ2aWNlLWNsaWVudC1qd3QtYXV0aDAeFw0yMjA0MTAxMTU5MjdaFw0yMzA0MTAxMTU5MjdaMCcxJTAjBgNVBAMMHGFjbWUtc2VydmljZS1jbGllbnQtand0LWF1dGgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCu91jwgkO/ZJoeIzclL+x7oBxsgjxGDLdCYs4QKEhitB8FFOobxtA67Yh48Bprd9Qji9IHvdxVLPa+SkgMvF/5MhDKUW/wLBpDL0sgvLT56FV9gl/hqtUvVKVNTQuEBk0QpTJH4uSg5jNIZARVcOnPRvBtQ0vpQ/1FsEJkSLXq7OAUQTgguXltR+/u2hH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UhBsm75GMAy5vA6Pn+TSp8MeWJMAXJwcY/3ESyodfn29m0mGiHwef/ByQcK/8M9fRFIvIsKF/NPziWHiIV3QXB2qDIZF595/De4siUtaSW6H9ywZpVfTBoc/AEHKY4QZ1Pr8xj+YRQar7qmuVsSug6RWgXplZWOn9vx25FPwAXcOv9z/gP7zA8IYMiEUZ0MKFLetQ6ietCNPlvqgFC59+hjsh/MyNTePitxNPN1+MYUb7Xr/Ul+BREnNCVJM/ZCEbIhsVKMiCk="
"token.endpoint.auth.signing.alg": "RS256"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down
3 changes: 3 additions & 0 deletions config/stage/dev/realms/acme-ldap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down Expand Up @@ -88,6 +89,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand All @@ -108,6 +110,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down
2 changes: 2 additions & 0 deletions config/stage/dev/realms/acme-ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ clients:
secret: acme-ops-grafana-secret
fullScopeAllowed: false
defaultClientScopes:
- "basic"
- "email"
rootUrl: "https://ops.acme.test:3000/grafana"
baseUrl: "/"
adminUrl: ""
Expand Down
2 changes: 2 additions & 0 deletions config/stage/dev/realms/acme-passwordless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "roles"
- "profile"
Expand Down Expand Up @@ -107,6 +108,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down
1 change: 1 addition & 0 deletions config/stage/dev/realms/acme-stepup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "roles"
- "profile"
Expand Down
1 change: 1 addition & 0 deletions config/stage/dev/realms/company-apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "roles"
- "profile"
Expand Down
1 change: 1 addition & 0 deletions config/stage/dev/realms/company-users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ clients:
webOrigins:
- "+"
defaultClientScopes:
- "basic"
- "email"
- "profile"
optionalClientScopes:
Expand Down

0 comments on commit b0e049c

Please sign in to comment.