Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump alpine from 3.16.2 to 3.17.2 #142

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
19b3aab
Revert "fix: check for no serviceAccountFilePath and no email (#2679)"
sagikazarmark Oct 4, 2022
261adee
fix(connector/google): make admin email optional for default creds
sagikazarmark Oct 4, 2022
2027413
Merge pull request #2696 from dexidp/backport-2694
sagikazarmark Oct 4, 2022
24401fd
build(deps): bump golang from 1.19.1-alpine3.16 to 1.19.2-alpine3.16
dependabot[bot] Oct 5, 2022
8e2bce3
Merge pull request #2698 from dexidp/backport-go-update
sagikazarmark Oct 5, 2022
829444d
fix(connector/google): only initialize admin service if necessary
sagikazarmark Oct 5, 2022
9063c79
Merge pull request #2702 from dexidp/backport-2700
sagikazarmark Oct 6, 2022
ccbc86e
fix: Update gomplate version to 3.11.3 fix CVE-2022-27665
nabokihms Oct 10, 2022
54c9e82
Merge pull request #2706 from flant/backport-cve-2022-27665
sagikazarmark Oct 11, 2022
01a4c7e
build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0 (#2708)
dependabot[bot] Oct 12, 2022
0666cbd
Add new connector for Cloudfoundry
Apr 10, 2018
61b0445
update cf connector to use 'authorization_endpoint' from /v2/info
Oct 4, 2018
faa9f4a
Added support for CF resources pagination
daniellavoie Apr 4, 2019
d31ae3f
cf: add org to groups claims
Nov 7, 2019
8bce756
cf: add org guid to groups claims
Nov 18, 2019
e5780cd
add unit test and api call to `audited_spaces` and `managed_spaces`
Oct 7, 2019
6d6c640
append role to space guids
Nov 4, 2019
fad2e8d
add cf org:space:role group claim to token
Nov 25, 2019
addb884
fix lint errors
Jan 13, 2020
c0fea31
run golangcli-lint
Mar 5, 2021
3cef9dc
fix sanity check errors
Dec 1, 2021
9ffe6d7
rename connector;make types private;
Oct 5, 2022
e81d9df
add cloudfoundry to connector list in readme
Oct 5, 2022
faa102c
add client crendential grant type
Nov 10, 2021
570c27e
Fix issues in existing client credentials change
kellyma2 Dec 3, 2021
895f3b2
Fix tests in TestServerSupportedGrants for client credentials
Aug 2, 2022
ac3d07f
allow configuring CAs/skip verify for OIDC
vito Aug 14, 2018
eb3dbfc
Fix io/ioutil deprecation error
Aug 2, 2022
3eff26c
refactor newHTTPClient func
Oct 8, 2022
67d9142
remove unused HostedDomains
Oct 8, 2022
d3054c5
Merge remote-tracking branch 'origin/pr/client-credentials-grant-sync'
Oct 31, 2022
ecc759d
Merge remote-tracking branch 'origin/pr/oidc-CA-configure-sync'
Oct 31, 2022
d40dc20
upstream dex release: v2.35.3
Oct 31, 2022
6822f9a
build(deps): bump alpine from 3.16.2 to 3.17.2
dependabot[bot] Feb 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add cf org:space:role group claim to token
Signed-off-by: Joshua Winters <jwinters@pivotal.io>
Co-authored-by: Rui Yang <ryang@pivotal.io>
  • Loading branch information
2 people authored and CI Bot committed Oct 31, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit fad2e8dc6cb28989744e1a2dadfb7e88624d34bd
1 change: 1 addition & 0 deletions connector/cf/cf.go
Original file line number Diff line number Diff line change
@@ -291,6 +291,7 @@ func getGroupsClaims(orgs []Org, spaces []Space) []string {
for orgName, spaces := range orgSpaces {
for _, space := range spaces {
groupsClaims[fmt.Sprintf("%s:%s", orgName, space.Name)] = true
groupsClaims[fmt.Sprintf("%s:%s:%s", orgName, space.Name, space.Role)] = true
}
}

32 changes: 19 additions & 13 deletions connector/cf/cf_test.go
Original file line number Diff line number Diff line change
@@ -48,25 +48,31 @@ func TestHandleCallback(t *testing.T) {
identity, err := cfConn.HandleCallback(connector.Scopes{Groups: true}, req)
expectEqual(t, err, nil)

expectEqual(t, len(identity.Groups), 18)
expectEqual(t, len(identity.Groups), 24)
expectEqual(t, identity.Groups[0], "some-org-guid-1")
expectEqual(t, identity.Groups[1], "some-org-guid-2")
expectEqual(t, identity.Groups[2], "some-org-guid-3")
expectEqual(t, identity.Groups[3], "some-org-guid-4")
expectEqual(t, identity.Groups[4], "some-org-name-1")
expectEqual(t, identity.Groups[5], "some-org-name-1:some-space-name-1")
expectEqual(t, identity.Groups[6], "some-org-name-2")
expectEqual(t, identity.Groups[7], "some-org-name-2:some-space-name-2")
expectEqual(t, identity.Groups[8], "some-org-name-3")
expectEqual(t, identity.Groups[9], "some-org-name-4")
expectEqual(t, identity.Groups[10], "some-space-guid-1")
expectEqual(t, identity.Groups[11], "some-space-guid-1:auditor")
expectEqual(t, identity.Groups[12], "some-space-guid-1:developer")
expectEqual(t, identity.Groups[13], "some-space-guid-1:manager")
expectEqual(t, identity.Groups[14], "some-space-guid-2")
expectEqual(t, identity.Groups[15], "some-space-guid-2:auditor")
expectEqual(t, identity.Groups[16], "some-space-guid-2:developer")
expectEqual(t, identity.Groups[17], "some-space-guid-2:manager")
expectEqual(t, identity.Groups[6], "some-org-name-1:some-space-name-1:auditor")
expectEqual(t, identity.Groups[7], "some-org-name-1:some-space-name-1:developer")
expectEqual(t, identity.Groups[8], "some-org-name-1:some-space-name-1:manager")
expectEqual(t, identity.Groups[9], "some-org-name-2")
expectEqual(t, identity.Groups[10], "some-org-name-2:some-space-name-2")
expectEqual(t, identity.Groups[11], "some-org-name-2:some-space-name-2:auditor")
expectEqual(t, identity.Groups[12], "some-org-name-2:some-space-name-2:developer")
expectEqual(t, identity.Groups[13], "some-org-name-2:some-space-name-2:manager")
expectEqual(t, identity.Groups[14], "some-org-name-3")
expectEqual(t, identity.Groups[15], "some-org-name-4")
expectEqual(t, identity.Groups[16], "some-space-guid-1")
expectEqual(t, identity.Groups[17], "some-space-guid-1:auditor")
expectEqual(t, identity.Groups[18], "some-space-guid-1:developer")
expectEqual(t, identity.Groups[19], "some-space-guid-1:manager")
expectEqual(t, identity.Groups[20], "some-space-guid-2")
expectEqual(t, identity.Groups[21], "some-space-guid-2:auditor")
expectEqual(t, identity.Groups[22], "some-space-guid-2:developer")
expectEqual(t, identity.Groups[23], "some-space-guid-2:manager")
})

t.Run("CallbackWithoutGroupsScope", func(t *testing.T) {