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
20 changes: 9 additions & 11 deletions connector/cf/cf.go
Original file line number Diff line number Diff line change
@@ -192,38 +192,36 @@ func (c *cfConnector) LoginURL(scopes connector.Scopes, callbackURL, state strin
}

func fetchRoleSpaces(baseURL, path, role string, client *http.Client) ([]Space, error) {
var spaces []Space

resources, err := fetchResources(baseURL, path, client)
if err != nil {
return nil, fmt.Errorf("failed to fetch resources: %v", err)
}

for _, resource := range resources {
spaces = append(spaces, Space{
spaces := make([]Space, len(resources))
for i, resource := range resources {
spaces[i] = Space{
Name: resource.Entity.Name,
GUID: resource.Metadata.GUID,
OrgGUID: resource.Entity.OrganizationGUID,
Role: role,
})
}
}

return spaces, nil
}

func fetchOrgs(baseURL, path string, client *http.Client) ([]Org, error) {
var orgs []Org

resources, err := fetchResources(baseURL, path, client)
if err != nil {
return nil, fmt.Errorf("failed to fetch resources: %v", err)
}

for _, resource := range resources {
orgs = append(orgs, Org{
orgs := make([]Org, len(resources))
for i, resource := range resources {
orgs[i] = Org{
Name: resource.Entity.Name,
GUID: resource.Metadata.GUID,
})
}
}

return orgs, nil
@@ -293,7 +291,7 @@ func getGroupsClaims(orgs []Org, spaces []Space) []string {
}
}

var groups []string
groups := make([]string, 0, len(groupsClaims))
for group := range groupsClaims {
groups = append(groups, group)
}