Skip to content
Snippets Groups Projects
Commit 8a048f0c authored by Niall Sheridan's avatar Niall Sheridan
Browse files

Just make ProviderOpts a map[string]string.

I have no idea why I made it a map[string]interface{} and it's a pain to deal
with.
parent 8920c2af
Branches
Tags
No related merge requests found
...@@ -35,7 +35,7 @@ func New(c *config.Auth) auth.Provider { ...@@ -35,7 +35,7 @@ func New(c *config.Auth) auth.Provider {
Endpoint: google.Endpoint, Endpoint: google.Endpoint,
Scopes: []string{googleapi.UserinfoEmailScope, googleapi.UserinfoProfileScope}, Scopes: []string{googleapi.UserinfoEmailScope, googleapi.UserinfoProfileScope},
}, },
domain: c.ProviderOpts["domain"].(string), domain: c.ProviderOpts["domain"],
} }
} }
......
...@@ -24,7 +24,7 @@ type Auth struct { ...@@ -24,7 +24,7 @@ type Auth struct {
OauthClientSecret string `mapstructure:"oauth_client_secret"` OauthClientSecret string `mapstructure:"oauth_client_secret"`
OauthCallbackURL string `mapstructure:"oauth_callback_url"` OauthCallbackURL string `mapstructure:"oauth_callback_url"`
Provider string `mapstructure:"provider"` Provider string `mapstructure:"provider"`
ProviderOpts map[string]interface{} `mapstructure:"provider_opts"` ProviderOpts map[string]string `mapstructure:"provider_opts"`
JWTSigningKey string `mapstructure:"jwt_signing_key"` JWTSigningKey string `mapstructure:"jwt_signing_key"`
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment