Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2026-07-09

* Added
* Env variable `OWNCLOUD_OPENID_CONNECT` for the `openid-connect` app config key
[#492](https://github.com/owncloud-docker/base/issues/492)

## 2026-07-08

* Added
Expand Down
2 changes: 2 additions & 0 deletions ENVIRONMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@
Maximum number of concurrent UploadPart operations allowed during the multipart upload (see [documentation](https://doc.owncloud.com/server/latest/admin_manual/configuration/files/external_storage/s3_compatible_object_storage_as_primary.html)).
- `OWNCLOUD_OBJECTSTORE_AVAILABLE_STORAGE=` \
Indicates available storage size in the objectstore in bytes (see [documentation](https://doc.owncloud.com/server/latest/admin_manual/configuration/files/external_storage/s3_compatible_object_storage_as_primary.html)).
- `OWNCLOUD_OPENID_CONNECT=` \
OpenID Connect (`openid-connect`) app configuration as a JSON-encoded object, e.g. `{"provider-url":"https://idp.example.net","client-id":"...","client-secret":"...","loginButtonName":"OpenID Connect"}`. Supports the full nested structure (`provider-params`, `auto-provision`, ...) (see [documentation](https://doc.owncloud.com/server/latest/admin_manual/configuration/server/config_apps_sample_php_parameters.html#app-openid-connect-oidc)).
- `OWNCLOUD_OPENSSL_CONFIG=` \
Path to a custom `openssl.cnf` file, e.g. when using a custom PKI or CA in the container (see [documentation](https://doc.owncloud.com/server/latest/admin_manual/configuration/server/config_sample_php_parameters.html#define-the-default-cipher-for-encrypting-files)).
- `OWNCLOUD_OPERATION_MODE=` \
Expand Down
13 changes: 13 additions & 0 deletions v24.04/overlay/etc/templates/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,19 @@ function getConfigFromEnv() {
$config['customclient_ios'] = getenv('OWNCLOUD_CUSTOMCLIENT_IOS');
}

// app: openidconnect
// 'openid-connect' is a deeply nested associative array (provider-url,
// client-id/secret, scopes, provider-params, auto-provision, ...) that the
// flat env-var idioms cannot represent, so it is passed as a JSON-encoded
// object, e.g.:
// OWNCLOUD_OPENID_CONNECT='{"provider-url":"https://idp.example.net","client-id":"...","client-secret":"...","loginButtonName":"OpenID Connect"}'
if (getenv('OWNCLOUD_OPENID_CONNECT') != '') {
$openIdConnect = json_decode(getenv('OWNCLOUD_OPENID_CONNECT'), true);
if (is_array($openIdConnect)) {
$config['openid-connect'] = $openIdConnect;
}
}

// app: user_ldap
if (getenv('OWNCLOUD_LDAP_IGNORE_NAMING_RULES') != '') {
$config['ldapIgnoreNamingRules'] = getenv('OWNCLOUD_LDAP_IGNORE_NAMING_RULES') === 'true';
Expand Down