diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-07-17 09:47:25 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-07-22 08:47:52 -0400 |
commit | 03528b9619747b8bd184b852497dcf14ee1e0081 (patch) | |
tree | 361486039b57bc141f33a3c843b7a22360062bcf /utils | |
parent | 712f9a0b8c13f2d97a26b9030f215161f9b09511 (diff) | |
download | chat-03528b9619747b8bd184b852497dcf14ee1e0081.tar.gz chat-03528b9619747b8bd184b852497dcf14ee1e0081.tar.bz2 chat-03528b9619747b8bd184b852497dcf14ee1e0081.zip |
made oauth architecture more generalized
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/utils/config.go b/utils/config.go index 163c912bf..b90337b7e 100644 --- a/utils/config.go +++ b/utils/config.go @@ -32,11 +32,13 @@ type ServiceSettings struct { StorageDirectory string } -type SSOSettings struct { - AllowGitLabSSO bool - GitLabSecret string - GitLabId string - GitLabUrl string +type SSOSetting struct { + Allow bool + Secret string + Id string + AuthEndpoint string + TokenEndpoint string + UserApiEndpoint string } type SqlSettings struct { @@ -116,7 +118,7 @@ type Config struct { EmailSettings EmailSettings PrivacySettings PrivacySettings TeamSettings TeamSettings - SSOSettings SSOSettings + SSOSettings map[string]SSOSetting } func (o *Config) ToJson() string { |