-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes on OIDC to support multiple issuers
- Loading branch information
Showing
11 changed files
with
98 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,17 +153,19 @@ func TestGetOIDCMiddleware(t *testing.T) { | |
Endpoint: server.URL, | ||
Verify: false, | ||
}, | ||
OIDCEnable: true, | ||
OIDCSubject: "[email protected]", | ||
OIDCValidIssuers: []string{server.URL}, | ||
OIDCGroups: []string{"group1", "group2"}, | ||
} | ||
minIOAdminClient, _ := utils.MakeMinIOAdminClient(&cfg) | ||
issuer := server.URL | ||
subject := "[email protected]" | ||
groups := []string{"group1", "group2"} | ||
|
||
oidcConfig := &oidc.Config{ | ||
InsecureSkipSignatureCheck: true, | ||
SkipClientIDCheck: true, | ||
} | ||
middleware := getOIDCMiddleware(kubeClientset, minIOAdminClient, issuer, subject, groups, oidcConfig) | ||
middleware := getOIDCMiddleware(kubeClientset, minIOAdminClient, &cfg, oidcConfig) | ||
if middleware == nil { | ||
t.Errorf("expected middleware to be non-nil") | ||
} | ||
|
@@ -176,11 +178,11 @@ func TestGetOIDCMiddleware(t *testing.T) { | |
{ | ||
name: "invalid-token", | ||
token: "invalid-token", | ||
code: http.StatusUnauthorized, | ||
code: http.StatusBadRequest, | ||
}, | ||
{ | ||
name: "valid-token", | ||
token: GetToken(issuer, subject), | ||
token: GetToken(issuer, cfg.OIDCSubject), | ||
code: http.StatusOK, | ||
}, | ||
} | ||
|
Submodule ui
updated
4 files
+0 −1 | public/callback.html | |
+4 −5 | src/components/AppDrawer.vue | |
+26 −93 | src/views/Juno.vue | |
+0 −1 | src/views/Login.vue |