aboutsummaryrefslogtreecommitdiff
path: root/server/auth/google/google.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/auth/google/google.go')
-rw-r--r--server/auth/google/google.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/auth/google/google.go b/server/auth/google/google.go
index 643ecfe..8c6f53b 100644
--- a/server/auth/google/google.go
+++ b/server/auth/google/google.go
@@ -27,8 +27,10 @@ type Config struct {
whitelist map[string]bool
}
+var _ auth.Provider = (*Config)(nil)
+
// New creates a new Google provider from a configuration.
-func New(c *config.Auth) (auth.Provider, error) {
+func New(c *config.Auth) (*Config, error) {
uw := make(map[string]bool)
for _, u := range c.UsersWhitelist {
uw[u] = true