|
|
@ -81,6 +81,15 @@ type ( |
|
|
|
CallbackProxyAPI string `ini:"callback_proxy_api"` |
|
|
|
CallbackProxyAPI string `ini:"callback_proxy_api"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GiteaOauthCfg struct { |
|
|
|
|
|
|
|
ClientID string `ini:"client_id"` |
|
|
|
|
|
|
|
ClientSecret string `ini:"client_secret"` |
|
|
|
|
|
|
|
Host string `ini:"host"` |
|
|
|
|
|
|
|
DisplayName string `ini:"display_name"` |
|
|
|
|
|
|
|
CallbackProxy string `ini:"callback_proxy"` |
|
|
|
|
|
|
|
CallbackProxyAPI string `ini:"callback_proxy_api"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
SlackOauthCfg struct { |
|
|
|
SlackOauthCfg struct { |
|
|
|
ClientID string `ini:"client_id"` |
|
|
|
ClientID string `ini:"client_id"` |
|
|
|
ClientSecret string `ini:"client_secret"` |
|
|
|
ClientSecret string `ini:"client_secret"` |
|
|
@ -101,14 +110,6 @@ type ( |
|
|
|
AuthEndpoint string `ini:"auth_endpoint"` |
|
|
|
AuthEndpoint string `ini:"auth_endpoint"` |
|
|
|
AllowDisconnect bool `ini:"allow_disconnect"` |
|
|
|
AllowDisconnect bool `ini:"allow_disconnect"` |
|
|
|
} |
|
|
|
} |
|
|
|
GiteaOauthCfg struct { |
|
|
|
|
|
|
|
ClientID string `ini:"client_id"` |
|
|
|
|
|
|
|
ClientSecret string `ini:"client_secret"` |
|
|
|
|
|
|
|
Host string `ini:"host"` |
|
|
|
|
|
|
|
DisplayName string `ini:"display_name"` |
|
|
|
|
|
|
|
CallbackProxy string `ini:"callback_proxy"` |
|
|
|
|
|
|
|
CallbackProxyAPI string `ini:"callback_proxy_api"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// AppCfg holds values that affect how the application functions
|
|
|
|
// AppCfg holds values that affect how the application functions
|
|
|
|
AppCfg struct { |
|
|
|
AppCfg struct { |
|
|
@ -165,8 +166,8 @@ type ( |
|
|
|
SlackOauth SlackOauthCfg `ini:"oauth.slack"` |
|
|
|
SlackOauth SlackOauthCfg `ini:"oauth.slack"` |
|
|
|
WriteAsOauth WriteAsOauthCfg `ini:"oauth.writeas"` |
|
|
|
WriteAsOauth WriteAsOauthCfg `ini:"oauth.writeas"` |
|
|
|
GitlabOauth GitlabOauthCfg `ini:"oauth.gitlab"` |
|
|
|
GitlabOauth GitlabOauthCfg `ini:"oauth.gitlab"` |
|
|
|
GenericOauth GenericOauthCfg `ini:"oauth.generic"` |
|
|
|
|
|
|
|
GiteaOauth GiteaOauthCfg `ini:"oauth.gitea"` |
|
|
|
GiteaOauth GiteaOauthCfg `ini:"oauth.gitea"` |
|
|
|
|
|
|
|
GenericOauth GenericOauthCfg `ini:"oauth.generic"` |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|