diff --git a/outpost/pkg/ak/api.go b/outpost/pkg/ak/api.go index 2cb94517a..88dd96306 100644 --- a/outpost/pkg/ak/api.go +++ b/outpost/pkg/ak/api.go @@ -44,7 +44,7 @@ func NewAPIController(pbURL url.URL, token string) *APIController { transport.Transport = SetUserAgent(getTLSTransport(), fmt.Sprintf("authentik-proxy@%s", pkg.VERSION)) // create the transport - auth := httptransport.BasicAuth("", token) + auth := httptransport.BearerToken(token) // create the API client, with the transport apiClient := client.New(transport, strfmt.Default)