From 36370f8f2a9993902b6d27c9c778917862a4d037 Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Sat, 3 Feb 2018 11:53:42 +0000 Subject: [PATCH] No need to configure issuer --- connector/google/google.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/connector/google/google.go b/connector/google/google.go index e0cb4999..d69bb83e 100644 --- a/connector/google/google.go +++ b/connector/google/google.go @@ -15,9 +15,12 @@ import ( "github.com/dexidp/dex/connector" ) +const ( + issuerURL = "https://accounts.google.com" +) + // Config holds configuration options for OpenID Connect logins. type Config struct { - Issuer string `json:"issuer"` ClientID string `json:"clientID"` ClientSecret string `json:"clientSecret"` RedirectURI string `json:"redirectURI"` @@ -34,7 +37,7 @@ type Config struct { func (c *Config) Open(id string, logger logrus.FieldLogger) (conn connector.Connector, err error) { ctx, cancel := context.WithCancel(context.Background()) - provider, err := oidc.NewProvider(ctx, c.Issuer) + provider, err := oidc.NewProvider(ctx, issuerURL) if err != nil { cancel() return nil, fmt.Errorf("failed to get provider: %v", err)