File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,17 @@ package provider
3
3
import (
4
4
"context"
5
5
"errors"
6
-
7
6
"github.com/coreos/go-oidc"
7
+
8
8
"golang.org/x/oauth2"
9
9
)
10
10
11
11
// OIDC provider
12
12
type OIDC struct {
13
- IssuerURL string `long:"issuer-url" env:"ISSUER_URL" description:"Issuer URL"`
14
- ClientID string `long:"client-id" env:"CLIENT_ID" description:"Client ID"`
15
- ClientSecret string `long:"client-secret" env:"CLIENT_SECRET" description:"Client Secret" json:"-"`
13
+ IssuerURL string `long:"issuer-url" env:"ISSUER_URL" description:"Issuer URL"`
14
+ IssuerURLInternal string `long:"issuer-url-internal" env:"ISSUER_URL_INTERNAL" description:"Issuer URL for in cluster validation"`
15
+ ClientID string `long:"client-id" env:"CLIENT_ID" description:"Client ID"`
16
+ ClientSecret string `long:"client-secret" env:"CLIENT_SECRET" description:"Client Secret" json:"-"`
16
17
17
18
OAuthProvider
18
19
@@ -36,7 +37,7 @@ func (o *OIDC) Setup() error {
36
37
o .ctx = context .Background ()
37
38
38
39
// Try to initiate provider
39
- o .provider , err = oidc .NewProvider (o .ctx , o .IssuerURL )
40
+ o .provider , err = oidc .NewProvider (o .ctx , o .IssuerURLInternal )
40
41
if err != nil {
41
42
return err
42
43
}
You can’t perform that action at this time.
0 commit comments