outpost: fix API calls being made with basic

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-13 20:50:45 +02:00
parent 6821679fbc
commit 7798a046db
1 changed files with 1 additions and 1 deletions

View File

@ -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)