goharbor-client
goharbor-client copied to clipboard
feat: Add customer auth func
Signed-off-by: lengrongfu [email protected]
Add a method NewRESTClientWithAuthFunc
to initialize Client
through a custom authentication function;
Our Harbor
uses OIDC
authentication, cannot use basic auth
, and needs to use Auth token
.
@elenz97 Hi, is there any problem about this PR?
Hey @lengrongfu, thanks for your contribution. Just a small nitpick on the godoc :+1:
Hi, is there any problem about this PR? @elenz97