diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-07-22 15:32:39 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-07-22 15:32:39 -0400 |
commit | 56a0a7d1e1fbd9405559a9c6e32962155d9cc562 (patch) | |
tree | 512a3d4c6fae6225ce9a1716b94c70f59b5bdcfb /utils/config.go | |
parent | 41bbbbf4462205348c978a2cce5162f73e35f6b7 (diff) | |
download | chat-56a0a7d1e1fbd9405559a9c6e32962155d9cc562.tar.gz chat-56a0a7d1e1fbd9405559a9c6e32962155d9cc562.tar.bz2 chat-56a0a7d1e1fbd9405559a9c6e32962155d9cc562.zip |
only show gitlab signup/login links if gitlab oauth is turned on
Diffstat (limited to 'utils/config.go')
-rw-r--r-- | utils/config.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index b90337b7e..6a428a5c1 100644 --- a/utils/config.go +++ b/utils/config.go @@ -253,3 +253,14 @@ func IsS3Configured() bool { return true } + +func GetAllowedAuthServices() []string { + authServices := []string{} + for name, service := range Cfg.SSOSettings { + if service.Allow { + authServices = append(authServices, name) + } + } + + return authServices +} |