22 lines
792 B
Bash
Executable File
22 lines
792 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euox pipefail
|
|
|
|
echo "Installing and configuring OIDC apps for testing..."
|
|
|
|
# Enable the OIDC Identity Provider app
|
|
php /var/www/html/occ app:install oidc || true
|
|
php /var/www/html/occ app:enable oidc
|
|
|
|
# Enable the user_oidc app (OIDC client for bearer token validation)
|
|
php /var/www/html/occ app:install user_oidc || true
|
|
php /var/www/html/occ app:enable user_oidc
|
|
|
|
# Configure OIDC Identity Provider with dynamic client registration enabled
|
|
php /var/www/html/occ config:app:set oidc dynamic_client_registration --value='true'
|
|
|
|
# Configure user_oidc to validate bearer tokens from the OIDC Identity Provider
|
|
php /var/www/html/occ config:system:set user_oidc oidc_provider_bearer_validation --value=true --type=boolean
|
|
|
|
echo "OIDC apps installed and configured successfully"
|