Skip to content

Commit

Permalink
remove unused HostedDomains
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Yang <[email protected]>
  • Loading branch information
Rui Yang authored and CI Bot committed Oct 31, 2022
1 parent 3eff26c commit 67d9142
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions connector/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ type Config struct {

Scopes []string `json:"scopes"` // defaults to "profile" and "email"

// Optional list of whitelisted domains when using Google
// If this field is nonempty, only users from a listed domain will be allowed to log in
HostedDomains []string `json:"hostedDomains"`

// Certificates for SSL validation
RootCAs []string `json:"rootCAs"`

Expand Down Expand Up @@ -170,7 +166,6 @@ func (c *Config) Open(id string, logger log.Logger) (conn connector.Connector, e
logger: logger,
cancel: cancel,
httpClient: httpClient,
hostedDomains: c.HostedDomains,
insecureSkipEmailVerified: c.InsecureSkipEmailVerified,
insecureEnableGroups: c.InsecureEnableGroups,
acrValues: c.AcrValues,
Expand Down Expand Up @@ -198,7 +193,6 @@ type oidcConnector struct {
cancel context.CancelFunc
logger log.Logger
httpClient *http.Client
hostedDomains []string
insecureSkipEmailVerified bool
insecureEnableGroups bool
acrValues []string
Expand Down

0 comments on commit 67d9142

Please sign in to comment.