outpost: fix API calls being made with basic
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
6821679fbc
commit
7798a046db
|
@ -44,7 +44,7 @@ func NewAPIController(pbURL url.URL, token string) *APIController {
|
||||||
transport.Transport = SetUserAgent(getTLSTransport(), fmt.Sprintf("authentik-proxy@%s", pkg.VERSION))
|
transport.Transport = SetUserAgent(getTLSTransport(), fmt.Sprintf("authentik-proxy@%s", pkg.VERSION))
|
||||||
|
|
||||||
// create the transport
|
// create the transport
|
||||||
auth := httptransport.BasicAuth("", token)
|
auth := httptransport.BearerToken(token)
|
||||||
|
|
||||||
// create the API client, with the transport
|
// create the API client, with the transport
|
||||||
apiClient := client.New(transport, strfmt.Default)
|
apiClient := client.New(transport, strfmt.Default)
|
||||||
|
|
Reference in New Issue