user_oidc icon indicating copy to clipboard operation
user_oidc copied to clipboard

Allow providing Group Provisioning via `occ user_oidc:provider`

Open mikew opened this issue 1 year ago • 2 comments

Currently it can be set via occ config:app:set, but that's bulky and requires you to know the auto-generated ID of your provider. If it could be set via user_oidc:provider, like most of the other options can be, it would make setting up OIDC Providers much more convenient.

For what it's worth, if people are looking for an automated solution to getting the ID from a given provider name:

PROVIDER_NAME=Authelia
PROVIDER_ID=$(./occ user_oidc:provider --output json "$PROVIDER_NAME" | python -c 'import json; p = json.loads(input()); print(p["id"])')
./occ \
  config:app:set \
  user_oidc \
  "provider-${PROVIDER_ID}-groupProvisioning" \
  --value 1

mikew avatar Feb 13 '24 17:02 mikew

The same holds for the option --bearer-provisioning which should just work like the others!

col-panic avatar Feb 15 '24 07:02 col-panic

I have the same issue. It greatly complicates the automation.

dcrosby avatar Feb 15 '24 21:02 dcrosby