mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 08:09:59 +01:00
Merge pull request #14009 from reasonerjt/tokenreview-rm-header-1.10
Remove raw token from header in token review reuqest - 1.10.x
This commit is contained in:
commit
3cb5c32f42
@ -26,7 +26,6 @@ func TokenReview(rawToken string, authProxyConfig *models.HTTPAuthProxy) (k8s_ap
|
|||||||
GroupVersion: &schema.GroupVersion{},
|
GroupVersion: &schema.GroupVersion{},
|
||||||
NegotiatedSerializer: serializer.DirectCodecFactory{CodecFactory: scheme.Codecs},
|
NegotiatedSerializer: serializer.DirectCodecFactory{CodecFactory: scheme.Codecs},
|
||||||
},
|
},
|
||||||
BearerToken: rawToken,
|
|
||||||
TLSClientConfig: getTLSConfig(authProxyConfig),
|
TLSClientConfig: getTLSConfig(authProxyConfig),
|
||||||
}
|
}
|
||||||
authClient, err := rest.RESTClientFor(authClientCfg)
|
authClient, err := rest.RESTClientFor(authClientCfg)
|
||||||
|
Loading…
Reference in New Issue
Block a user