-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API calls in OIDC mode #8033
Comments
@chusAlvarez In that case you need to use the OIDC token to call the REST API. |
The interchanged OIDC token is not available in the login procces, nor can be read after this. But seems that the failure in connect with the admin user was mine (mispelled password). So API is still accesible, but only for admin user |
Sorry, solved, seems I was triying to access to API functios restricted to admin (http://harbor.hades.k8s.dev.spotahome.net/api/users ) So this was the reason it launch an "unauthorized" message. When I tried to read projects, it works, listiing only the ones availables for my user |
Is there any example for this? How to get the OIDC token? |
Hi, I've been able to use https://github.com/goharbor/harbor/wiki/Harbor-FAQs#api to generate a Bearer token. However when trying to authenticate using that bearer token get the error:
If authenticating through OIDC, are users meant to generate API tokens from Harbor or from the upstream OIDC server? |
Same question, If authenticating through OIDC, are users meant to generate API tokens from Harbor or from the upstream OIDC server? +1 @reasonerjt |
I have configure harbor version v1.8.0 with v1.1.0 harbor-helm configuration.
I have successfully configure OIDC auth mode.
I have successfully configure OIDC users against github (using a dex proxy)
I can login and make pulls and push with the OIDC user.
Problem is, when I try to use API REST calls with an OIDC user the response is every time wrong:
I found in the core service these errors:
When I checked the code found the oidc auth mode is indeed still not implemented:
https://github.com/goharbor/harbor/tree/master/src/core/auth
As the admin user can't also make API calls, this means API is disabled in OIDC mode? Or am I missing something?=> Admin user seems to be the only available for the APIThe text was updated successfully, but these errors were encountered: