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
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ func New(c *config.Auth) auth.Provider {
Endpoint: google.Endpoint,
Scopes: []string{googleapi.UserinfoEmailScope, googleapi.UserinfoProfileScope},
},
domain: c.ProviderOpts["domain"].(string),
domain: c.ProviderOpts["domain"],
}
}
......
......@@ -24,7 +24,7 @@ type Auth struct {
OauthClientSecret string `mapstructure:"oauth_client_secret"`
OauthCallbackURL string `mapstructure:"oauth_callback_url"`
Provider string `mapstructure:"provider"`
ProviderOpts map[string]interface{} `mapstructure:"provider_opts"`
ProviderOpts map[string]string `mapstructure:"provider_opts"`
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