Authelia OIDC configuration for Harbor #22366
sy6sy2
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It was a pain for me to have Authelia and Harbor working together correctly. This is why I want to share my working configuration and also have feedback from other users in the same situation.
If you don't want the full story, go back at the end of this post to see my working configuration.
I am not an OIDC expert so correct me if I'm wrong somewhere.
Since the beginning I had this warning message in harbor:
With debug log level I was able to obtain the JWT send by Authelia and I was able to decode it, and, in fact,
preferred_username
andgroups
fields are not present in the token.It seems to be the default behavior of Authelia, and, after some internet research, it seems that the classic way to do for a client is to use the
/userinfo
endpoint to obtain these fields. But Harbor seems to expect them in the Id token.So we need to explicitly ask Authelia to add these fields in the ID token, and it seems to work.
You will find bellow my current configuration for Harbor v2.13.1 and Authelia v4.39.7.
Authelia partial config:
Harbor OIDC config:

Beta Was this translation helpful? Give feedback.
All reactions