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
|
return nil
|
||||||
}
|
}
|
||||||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
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 {
|
if err != nil || res.StatusCode > 200 {
|
||||||
b, err := io.ReadAll(res.Body)
|
b, err := io.ReadAll(res.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -39,7 +39,7 @@ func (a *Application) attemptBearerAuth(token string) *TokenIntrospectionRespons
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
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 {
|
if err != nil || res.StatusCode > 200 {
|
||||||
a.log.WithError(err).Warning("failed to send introspection request")
|
a.log.WithError(err).Warning("failed to send introspection request")
|
||||||
return nil
|
return nil
|
||||||
|
|
Reference in New Issue