harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Update document for config item OIDC Group Filter

Open stonezdj opened this issue 2 years ago • 2 comments

Update document for config item OIDC Group Filter

stonezdj avatar Nov 03 '22 06:11 stonezdj

@stonezdj I am actually looking for this configuration option. How can I set a filter to only allow certain OpenID connect groups?

I am also missing this configuration option from the UI (using v2.6.2):

image

I found the options in the source code, https://github.com/goharbor/harbor/tree/main/src/portal/src/app/base/left-side-nav/config/auth/config-auth.component.html#L738, and it is supposed to be in between oidcClientSecret and oidcGroupClaim.

sjoukedv avatar Nov 18 '22 09:11 sjoukedv

Also no luck with the API

curl --location --request POST '<url>/api/v2.0/configurations' \
--header 'Authorization: Basic <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "oidc_group_filter": "<group>"
}'

sjoukedv avatar Nov 18 '22 09:11 sjoukedv

It will be integrated into Harbor 2.7.0, not 2.6.2

stonezdj avatar Nov 23 '22 03:11 stonezdj