summaryrefslogtreecommitdiffstats
path: root/utils/config.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-07-22 15:32:39 -0400
committerJoramWilander <jwawilander@gmail.com>2015-07-22 15:32:39 -0400
commit56a0a7d1e1fbd9405559a9c6e32962155d9cc562 (patch)
tree512a3d4c6fae6225ce9a1716b94c70f59b5bdcfb /utils/config.go
parent41bbbbf4462205348c978a2cce5162f73e35f6b7 (diff)
downloadchat-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.go11
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
+}