nextcloud/user_oidc

Allow providing Group Provisioning via `occ user_oidc:provider`

mikew opened this issue · 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

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

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