From f20cf77c003affbf54a7821f46efca5067bea296 Mon Sep 17 00:00:00 2001 From: Willy Kloucek <34452982+wkloucek@users.noreply.github.com> Date: Thu, 5 May 2022 14:39:29 +0000 Subject: [PATCH] commit 6e4dc0a9ebe97a0e16d3ea0db05e0e737576fc18 Merge: bfc978c40 558155886 Author: Willy Kloucek <34452982+wkloucek@users.noreply.github.com> Date: Thu May 5 16:36:12 2022 +0200 Merge pull request #3699 from wkloucek/idp-config-fix idp: configure clients in the idp configuration instead of the templated file --- extensions/_includes/adoc/idp_configvars.adoc | 12 ----- extensions/_includes/idp-config-example.yaml | 49 ++++++++++++++++++- extensions/_includes/idp_configvars.md | 2 - grpc_apis/ocis/messages/accounts/v0/grpc.md | 2 +- grpc_apis/ocis/messages/search/v0/grpc.md | 2 +- grpc_apis/ocis/messages/settings/v0/grpc.md | 2 +- grpc_apis/ocis/messages/store/v0/grpc.md | 2 +- grpc_apis/ocis/messages/thumbnails/v0/grpc.md | 2 +- grpc_apis/ocis/services/accounts/v0/grpc.md | 2 +- grpc_apis/ocis/services/search/v0/grpc.md | 2 +- grpc_apis/ocis/services/settings/v0/grpc.md | 2 +- grpc_apis/ocis/services/store/v0/grpc.md | 2 +- grpc_apis/ocis/services/thumbnails/v0/grpc.md | 2 +- 13 files changed, 57 insertions(+), 26 deletions(-) diff --git a/extensions/_includes/adoc/idp_configvars.adoc b/extensions/_includes/adoc/idp_configvars.adoc index 3918c272da7..aa308b0e7f8 100644 --- a/extensions/_includes/adoc/idp_configvars.adoc +++ b/extensions/_includes/adoc/idp_configvars.adoc @@ -202,18 +202,6 @@ | true | -| -`IDP_IDENTIFIER_CLIENT_PATH` -| string -| ~/.ocis/idp -| - -| -`IDP_IDENTIFIER_REGISTRATION_CONF` -| string -| ~/.ocis/idp/identifier-registration.yaml -| - | `IDP_IDENTIFIER_SCOPES_CONF` | string diff --git a/extensions/_includes/idp-config-example.yaml b/extensions/_includes/idp-config-example.yaml index 633cb63aaca..1800abd7650 100644 --- a/extensions/_includes/idp-config-example.yaml +++ b/extensions/_includes/idp-config-example.yaml @@ -40,8 +40,6 @@ idp: encrypt_secret_file: "" listen: "" identifier_client_disabled: true - identifier_client_path: ~/.ocis/idp - identifier_registration_conf: ~/.ocis/idp/identifier-registration.yaml identifier_scopes_conf: "" identifierdefaultbannerlogo: "" identifierdefaultsigninpagetext: "" @@ -57,6 +55,53 @@ idp: id_token_duration_seconds: 3600 refresh_token_duration_seconds: 94608000 dynamic_client_secret_duration_seconds: 0 +clients: +- id: web + name: ownCloud Web app + trusted: true + secret: "" + redirect_uris: + - '{{OCIS_URL}}/' + - '{{OCIS_URL}}/oidc-callback.html' + - '{{OCIS_URL}}/oidc-silent-redirect.html' + origins: + - '{{OCIS_URL}}' + application_type: "" +- id: ocis-explorer.js + name: oCIS Graph Explorer + trusted: true + secret: "" + redirect_uris: + - '{{OCIS_URL}}/graph-explorer/' + origins: + - '{{OCIS_URL}}' + application_type: "" +- id: xdXOt13JKxym1B1QcEncf2XDkLAexMBFwiT9j6EfhhHFJhs2KM9jbjTmf8JBXE69 + name: ownCloud desktop app + trusted: false + secret: UBntmLjC2yYCeHwsyj73Uwo9TAaecAetRwMw0xYcvNL9yRdLSUi0hUAHfvCHFeFh + redirect_uris: + - http://127.0.0.1 + - http://localhost + origins: [] + application_type: native +- id: e4rAsNUSIUs0lF4nbv9FmCeUkTlV9GdgTLDH1b5uie7syb90SzEVrbN7HIpmWJeD + name: ownCloud Android app + trusted: false + secret: dInFYGV33xKzhbRmpqQltYNdfLdJIfJ9L5ISoKhNoT9qZftpdWSP71VrpGR9pmoD + redirect_uris: + - oc://android.owncloud.com + origins: [] + application_type: native +- id: mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1 + name: ownCloud iOS app + trusted: false + secret: KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx + redirect_uris: + - oc://ios.owncloud.com + - oc.ios://ios.owncloud.com + origins: [] + application_type: native ldap: uri: ldaps://localhost:9235 cacert: ~/.ocis/idm/ldap.crt diff --git a/extensions/_includes/idp_configvars.md b/extensions/_includes/idp_configvars.md index 3463cf8b1ab..a3954415617 100644 --- a/extensions/_includes/idp_configvars.md +++ b/extensions/_includes/idp_configvars.md @@ -33,8 +33,6 @@ | IDP_ALLOW_DYNAMIC_CLIENT_REGISTRATION | bool | false | | | IDP_ENCRYPTION_SECRET | string | | | | IDP_DISABLE_IDENTIFIER_WEBAPP | bool | true | | -| IDP_IDENTIFIER_CLIENT_PATH | string | ~/.ocis/idp | | -| IDP_IDENTIFIER_REGISTRATION_CONF | string | ~/.ocis/idp/identifier-registration.yaml | | | IDP_IDENTIFIER_SCOPES_CONF | string | | | | IDP_SIGNING_KID | string | | | | IDP_SIGNING_METHOD | string | PS256 | | diff --git a/grpc_apis/ocis/messages/accounts/v0/grpc.md b/grpc_apis/ocis/messages/accounts/v0/grpc.md index bc207c8beba..b768025a0ef 100644 --- a/grpc_apis/ocis/messages/accounts/v0/grpc.md +++ b/grpc_apis/ocis/messages/accounts/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.accounts.v0" url: /grpc_apis/ocis_messages_accounts_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/search/v0/grpc.md b/grpc_apis/ocis/messages/search/v0/grpc.md index fb70e9b3c6b..468d28fac12 100644 --- a/grpc_apis/ocis/messages/search/v0/grpc.md +++ b/grpc_apis/ocis/messages/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.search.v0" url: /grpc_apis/ocis_messages_search_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/settings/v0/grpc.md b/grpc_apis/ocis/messages/settings/v0/grpc.md index 09b05f0480a..2bc46e2077e 100644 --- a/grpc_apis/ocis/messages/settings/v0/grpc.md +++ b/grpc_apis/ocis/messages/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.settings.v0" url: /grpc_apis/ocis_messages_settings_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/store/v0/grpc.md b/grpc_apis/ocis/messages/store/v0/grpc.md index f67975952c7..75b7465b523 100644 --- a/grpc_apis/ocis/messages/store/v0/grpc.md +++ b/grpc_apis/ocis/messages/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.store.v0" url: /grpc_apis/ocis_messages_store_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md index 76867119aa5..f9b440f0ce2 100644 --- a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.thumbnails.v0" url: /grpc_apis/ocis_messages_thumbnails_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/accounts/v0/grpc.md b/grpc_apis/ocis/services/accounts/v0/grpc.md index 0b09b0696e3..a7c4159dd80 100644 --- a/grpc_apis/ocis/services/accounts/v0/grpc.md +++ b/grpc_apis/ocis/services/accounts/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.accounts.v0" url: /grpc_apis/ocis_services_accounts_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/search/v0/grpc.md b/grpc_apis/ocis/services/search/v0/grpc.md index 92caccef735..acc3568d357 100644 --- a/grpc_apis/ocis/services/search/v0/grpc.md +++ b/grpc_apis/ocis/services/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.search.v0" url: /grpc_apis/ocis_services_search_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/settings/v0/grpc.md b/grpc_apis/ocis/services/settings/v0/grpc.md index f2de22f1915..4e9e68d672c 100644 --- a/grpc_apis/ocis/services/settings/v0/grpc.md +++ b/grpc_apis/ocis/services/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.settings.v0" url: /grpc_apis/ocis_services_settings_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/store/v0/grpc.md b/grpc_apis/ocis/services/store/v0/grpc.md index 4bc42229f23..276c74ccbd5 100644 --- a/grpc_apis/ocis/services/store/v0/grpc.md +++ b/grpc_apis/ocis/services/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.store.v0" url: /grpc_apis/ocis_services_store_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/thumbnails/v0/grpc.md b/grpc_apis/ocis/services/thumbnails/v0/grpc.md index c5f1d648d1a..fd2fc84ad18 100644 --- a/grpc_apis/ocis/services/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/services/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.thumbnails.v0" url: /grpc_apis/ocis_services_thumbnails_v0 -date: 2022-05-05T14:17:35Z +date: 2022-05-05T14:38:18Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis ---