@@ -171,7 +171,7 @@ var _ = Describe("OIDC", func() {
|
||||
"issuer": oidcServer.URL,
|
||||
"clientID": "kubesphere",
|
||||
"clientSecret": "c53e80ab92d48ab12f4e7f1f6976d1bdc996e0d7",
|
||||
"redirectURL": "https://console.kubesphere.io/oauth/redirect/oidc",
|
||||
"redirectURL": "https://ks-console.kubesphere-system.svc/oauth/redirect/oidc",
|
||||
"insecureSkipVerify": true,
|
||||
}
|
||||
factory := oidcProviderFactory{}
|
||||
@@ -181,7 +181,7 @@ var _ = Describe("OIDC", func() {
|
||||
"issuer": oidcServer.URL,
|
||||
"clientID": "kubesphere",
|
||||
"clientSecret": "c53e80ab92d48ab12f4e7f1f6976d1bdc996e0d7",
|
||||
"redirectURL": "https://console.kubesphere.io/oauth/redirect/oidc",
|
||||
"redirectURL": "https://ks-console.kubesphere-system.svc/oauth/redirect/oidc",
|
||||
"insecureSkipVerify": true,
|
||||
"endpoint": oauth.DynamicOptions{
|
||||
"authURL": fmt.Sprintf("%s/authorize", oidcServer.URL),
|
||||
@@ -194,7 +194,7 @@ var _ = Describe("OIDC", func() {
|
||||
Expect(config).Should(Equal(expected))
|
||||
})
|
||||
It("should login successfully", func() {
|
||||
url, _ := url.Parse("https://console.kubesphere.io/oauth/redirect/oidc?code=00000")
|
||||
url, _ := url.Parse("https://ks-console.kubesphere-system.svc/oauth/redirect/oidc?code=00000")
|
||||
req := &http.Request{URL: url}
|
||||
identity, err := provider.IdentityExchangeCallback(req)
|
||||
Expect(err).Should(BeNil())
|
||||
|
||||
Reference in New Issue
Block a user