We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d844487 commit 21b69d3Copy full SHA for 21b69d3
internal/oauth2/request.go
@@ -164,12 +164,12 @@ func (r *Request) AuthenticateClient(
164
r.Form.Set("client_assertion", clientAssertion)
165
case TLSClientAuthMethod, SelfSignedTLSAuthMethod:
166
r.Form.Set("client_id", cconfig.ClientID)
167
- endpoint = mtlsEndpoint
+ }
168
169
- if tr, ok := hc.Transport.(*http.Transport); ok {
170
- if len(tr.TLSClientConfig.Certificates) > 0 {
171
- r.Cert, _ = x509.ParseCertificate(tr.TLSClientConfig.Certificates[0].Certificate[0])
172
- }
+ if tr, ok := hc.Transport.(*http.Transport); ok {
+ if len(tr.TLSClientConfig.Certificates) > 0 {
+ r.Cert, _ = x509.ParseCertificate(tr.TLSClientConfig.Certificates[0].Certificate[0])
+ endpoint = mtlsEndpoint
173
}
174
175
0 commit comments