goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
24.23k stars 4.77k forks source link

Not able to call the harbor endpoint when we integrate it with keycloak #21102

Open shaiksaif279 opened 3 weeks ago

shaiksaif279 commented 3 weeks ago

Hi @wy65701436 . https://github.com/goharbor/harbor/issues/21063

  1. Followed the document in the above-mentioned, but wasn't able to call the harbor by passing the keycloak token as well.
  2. Not able to login to harbor vm with keycloak credentials, but with the same keycloak credentials, we can login to harbor UI.

Harbor end point: https://{{domain}}/harbor/api/v2.0/projects.

Error we are getting in the logs: image.

please provide an alternate solution or any changes need to be done while configuring the keycloak in harbor.

All the keycloak configuration screenshots are attached in this issue. https://github.com/goharbor/harbor/issues/21063

Thanks Saif

shaiksaif279 commented 1 week ago

Hi @stonezdj ,

Not been able to find a solution , I would greatly appreciate it if you could look into this matter and provide guidance or a solution.

Thank you for your time and assistance. I look forward to your response.

Thanks Saif