Update field name

This commit is contained in:
Tomas Dabasinskas 2018-12-19 15:36:45 +02:00
parent e8823f71b0
commit eb517a3791
2 changed files with 33 additions and 33 deletions

View File

@ -15,7 +15,7 @@ type OAuthInfo struct {
TlsClientKey string
TlsClientCa string
TlsSkipVerify bool
BrokenAuthHeaderProvider bool
SendClientCredentialsViaPost bool
}
type OAuther struct {

View File

@ -79,7 +79,7 @@ func NewOAuthService() {
TlsClientKey: sec.Key("tls_client_key").String(),
TlsClientCa: sec.Key("tls_client_ca").String(),
TlsSkipVerify: sec.Key("tls_skip_verify_insecure").MustBool(),
BrokenAuthHeaderProvider: sec.Key("send_client_credentials_via_post").MustBool(),
SendClientCredentialsViaPost: sec.Key("send_client_credentials_via_post").MustBool(),
}
if !info.Enabled {
@ -87,7 +87,7 @@ func NewOAuthService() {
}
// handle the clients that do not properly support Basic auth headers and require passing client_id/client_secret via POST payload
if info.BrokenAuthHeaderProvider {
if info.SendClientCredentialsViaPost {
oauth2.RegisterBrokenAuthHeaderProvider(info.TokenUrl)
}