Commit eb517a37 by Tomas Dabasinskas

Update field name

parent e8823f71
...@@ -15,7 +15,7 @@ type OAuthInfo struct { ...@@ -15,7 +15,7 @@ type OAuthInfo struct {
TlsClientKey string TlsClientKey string
TlsClientCa string TlsClientCa string
TlsSkipVerify bool TlsSkipVerify bool
BrokenAuthHeaderProvider bool SendClientCredentialsViaPost bool
} }
type OAuther struct { type OAuther struct {
......
...@@ -79,7 +79,7 @@ func NewOAuthService() { ...@@ -79,7 +79,7 @@ func NewOAuthService() {
TlsClientKey: sec.Key("tls_client_key").String(), TlsClientKey: sec.Key("tls_client_key").String(),
TlsClientCa: sec.Key("tls_client_ca").String(), TlsClientCa: sec.Key("tls_client_ca").String(),
TlsSkipVerify: sec.Key("tls_skip_verify_insecure").MustBool(), 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 { if !info.Enabled {
...@@ -87,7 +87,7 @@ func NewOAuthService() { ...@@ -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 // 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) oauth2.RegisterBrokenAuthHeaderProvider(info.TokenUrl)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment