refactor: Migrate OIDC configuration to system settings
This commit is contained in:
@@ -35,7 +35,6 @@ func InitOptionMap() {
|
||||
common.OptionMap["PasswordRegisterEnabled"] = strconv.FormatBool(common.PasswordRegisterEnabled)
|
||||
common.OptionMap["EmailVerificationEnabled"] = strconv.FormatBool(common.EmailVerificationEnabled)
|
||||
common.OptionMap["GitHubOAuthEnabled"] = strconv.FormatBool(common.GitHubOAuthEnabled)
|
||||
common.OptionMap["OIDCEnabled"] = strconv.FormatBool(common.OIDCEnabled)
|
||||
common.OptionMap["LinuxDOOAuthEnabled"] = strconv.FormatBool(common.LinuxDOOAuthEnabled)
|
||||
common.OptionMap["TelegramOAuthEnabled"] = strconv.FormatBool(common.TelegramOAuthEnabled)
|
||||
common.OptionMap["WeChatAuthEnabled"] = strconv.FormatBool(common.WeChatAuthEnabled)
|
||||
@@ -207,8 +206,6 @@ func updateOptionMap(key string, value string) (err error) {
|
||||
common.EmailVerificationEnabled = boolValue
|
||||
case "GitHubOAuthEnabled":
|
||||
common.GitHubOAuthEnabled = boolValue
|
||||
case "OIDCEnabled":
|
||||
common.OIDCEnabled = boolValue
|
||||
case "LinuxDOOAuthEnabled":
|
||||
common.LinuxDOOAuthEnabled = boolValue
|
||||
case "WeChatAuthEnabled":
|
||||
@@ -307,18 +304,6 @@ func updateOptionMap(key string, value string) (err error) {
|
||||
common.GitHubClientId = value
|
||||
case "GitHubClientSecret":
|
||||
common.GitHubClientSecret = value
|
||||
case "OIDCClientId":
|
||||
common.OIDCClientId = value
|
||||
case "OIDCClientSecret":
|
||||
common.OIDCClientSecret = value
|
||||
case "OIDCWellKnown":
|
||||
common.OIDCWellKnown = value
|
||||
case "OIDCAuthorizationEndpoint":
|
||||
common.OIDCAuthorizationEndpoint = value
|
||||
case "OIDCTokenEndpoint":
|
||||
common.OIDCTokenEndpoint = value
|
||||
case "OIDCUserInfoEndpoint":
|
||||
common.OIDCUserInfoEndpoint = value
|
||||
case "LinuxDOClientId":
|
||||
common.LinuxDOClientId = value
|
||||
case "LinuxDOClientSecret":
|
||||
|
||||
Reference in New Issue
Block a user