nextcloud / user_oidc

OIDC connect user backend for Nextcloud
GNU Affero General Public License v3.0
88 stars 35 forks source link

Allow providing Group Provisioning via `occ user_oidc:provider` #791

Open mikew opened 9 months ago

mikew commented 9 months ago

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
col-panic commented 9 months ago

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

dcrosby commented 9 months ago

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