providers/proxy: fix client credential flows not using http interceptor
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
6cc363bc5d
commit
b6c120f555
|
@ -36,7 +36,7 @@ func (a *Application) attemptBasicAuth(username, password string) *Claims {
|
|||
return nil
|
||||
}
|
||||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
res, err := a.httpClient.Do(req)
|
||||
res, err := a.publicHostHTTPClient.Do(req)
|
||||
if err != nil || res.StatusCode > 200 {
|
||||
b, err := io.ReadAll(res.Body)
|
||||
if err != nil {
|
||||
|
|
|
@ -39,7 +39,7 @@ func (a *Application) attemptBearerAuth(token string) *TokenIntrospectionRespons
|
|||
return nil
|
||||
}
|
||||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||
res, err := a.httpClient.Do(req)
|
||||
res, err := a.publicHostHTTPClient.Do(req)
|
||||
if err != nil || res.StatusCode > 200 {
|
||||
a.log.WithError(err).Warning("failed to send introspection request")
|
||||
return nil
|
||||
|
|
Reference in New Issue