mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auth: Add TOML tags back to OAuthInfo (#78734)
Add TOML tags back to OAuthInfo
This commit is contained in:
parent
4f899e3576
commit
98c767abd3
@ -44,37 +44,37 @@ type SocialService struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OAuthInfo struct {
|
type OAuthInfo struct {
|
||||||
ApiUrl string `mapstructure:"api_url"`
|
ApiUrl string `mapstructure:"api_url" toml:"api_url"`
|
||||||
AuthUrl string `mapstructure:"auth_url"`
|
AuthUrl string `mapstructure:"auth_url" toml:"auth_url"`
|
||||||
AuthStyle string `mapstructure:"auth_style"`
|
AuthStyle string `mapstructure:"auth_style" toml:"auth_style"`
|
||||||
ClientId string `mapstructure:"client_id"`
|
ClientId string `mapstructure:"client_id" toml:"client_id"`
|
||||||
ClientSecret string `mapstructure:"client_secret"`
|
ClientSecret string `mapstructure:"client_secret" toml:"-"`
|
||||||
EmailAttributeName string `mapstructure:"email_attribute_name"`
|
EmailAttributeName string `mapstructure:"email_attribute_name" toml:"email_attribute_name"`
|
||||||
EmailAttributePath string `mapstructure:"email_attribute_path"`
|
EmailAttributePath string `mapstructure:"email_attribute_path" toml:"email_attribute_path"`
|
||||||
EmptyScopes bool `mapstructure:"empty_scopes"`
|
EmptyScopes bool `mapstructure:"empty_scopes" toml:"empty_scopes"`
|
||||||
GroupsAttributePath string `mapstructure:"groups_attribute_path"`
|
GroupsAttributePath string `mapstructure:"groups_attribute_path" toml:"groups_attribute_path"`
|
||||||
HostedDomain string `mapstructure:"hosted_domain"`
|
HostedDomain string `mapstructure:"hosted_domain" toml:"hosted_domain"`
|
||||||
Icon string `mapstructure:"icon"`
|
Icon string `mapstructure:"icon" toml:"icon"`
|
||||||
Name string `mapstructure:"name"`
|
Name string `mapstructure:"name" toml:"name"`
|
||||||
RoleAttributePath string `mapstructure:"role_attribute_path"`
|
RoleAttributePath string `mapstructure:"role_attribute_path" toml:"role_attribute_path"`
|
||||||
TeamIdsAttributePath string `mapstructure:"team_ids_attribute_path"`
|
TeamIdsAttributePath string `mapstructure:"team_ids_attribute_path" toml:"team_ids_attribute_path"`
|
||||||
TeamsUrl string `mapstructure:"teams_url"`
|
TeamsUrl string `mapstructure:"teams_url" toml:"teams_url"`
|
||||||
TlsClientCa string `mapstructure:"tls_client_ca"`
|
TlsClientCa string `mapstructure:"tls_client_ca" toml:"tls_client_ca"`
|
||||||
TlsClientCert string `mapstructure:"tls_client_cert"`
|
TlsClientCert string `mapstructure:"tls_client_cert" toml:"tls_client_cert"`
|
||||||
TlsClientKey string `mapstructure:"tls_client_key"`
|
TlsClientKey string `mapstructure:"tls_client_key" toml:"tls_client_key"`
|
||||||
TokenUrl string `mapstructure:"token_url"`
|
TokenUrl string `mapstructure:"token_url" toml:"token_url"`
|
||||||
AllowedDomains []string `mapstructure:"allowed_domains"`
|
AllowedDomains []string `mapstructure:"allowed_domains" toml:"allowed_domains"`
|
||||||
AllowedGroups []string `mapstructure:"allowed_groups"`
|
AllowedGroups []string `mapstructure:"allowed_groups" toml:"allowed_groups"`
|
||||||
Scopes []string `mapstructure:"scopes"`
|
Scopes []string `mapstructure:"scopes" toml:"scopes"`
|
||||||
AllowAssignGrafanaAdmin bool `mapstructure:"allow_assign_grafana_admin"`
|
AllowAssignGrafanaAdmin bool `mapstructure:"allow_assign_grafana_admin" toml:"allow_assign_grafana_admin"`
|
||||||
AllowSignup bool `mapstructure:"allow_sign_up"`
|
AllowSignup bool `mapstructure:"allow_sign_up" toml:"allow_sign_up"`
|
||||||
AutoLogin bool `mapstructure:"auto_login"`
|
AutoLogin bool `mapstructure:"auto_login" toml:"auto_login"`
|
||||||
Enabled bool `mapstructure:"enabled"`
|
Enabled bool `mapstructure:"enabled" toml:"enabled"`
|
||||||
RoleAttributeStrict bool `mapstructure:"role_attribute_strict"`
|
RoleAttributeStrict bool `mapstructure:"role_attribute_strict" toml:"role_attribute_strict"`
|
||||||
TlsSkipVerify bool `mapstructure:"tls_skip_verify_insecure"`
|
TlsSkipVerify bool `mapstructure:"tls_skip_verify_insecure" toml:"tls_skip_verify_insecure"`
|
||||||
UsePKCE bool `mapstructure:"use_pkce"`
|
UsePKCE bool `mapstructure:"use_pkce" toml:"use_pkce"`
|
||||||
UseRefreshToken bool `mapstructure:"use_refresh_token"`
|
UseRefreshToken bool `mapstructure:"use_refresh_token" toml:"use_refresh_token"`
|
||||||
Extra map[string]string `mapstructure:",remain"`
|
Extra map[string]string `mapstructure:",remain" toml:"extra,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func ProvideService(cfg *setting.Cfg,
|
func ProvideService(cfg *setting.Cfg,
|
||||||
|
Loading…
Reference in New Issue
Block a user