Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow providing Group Provisioning via occ user_oidc:provider #791

Open
mikew opened this issue Feb 13, 2024 · 2 comments
Open

Allow providing Group Provisioning via occ user_oidc:provider #791

mikew opened this issue Feb 13, 2024 · 2 comments

Comments

@mikew
Copy link

mikew commented Feb 13, 2024

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
Copy link

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

@dcrosby
Copy link

dcrosby commented Feb 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants