From badcc0ac2c17fffeb289f617b0770e3d3cada15c Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 6 Apr 2023 13:28:24 +0200 Subject: [PATCH] oidc: set application_type to native to skip elaborate web redirect URIs --- src/oidc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/oidc.js b/src/oidc.js index 240322e16..975bc612d 100644 --- a/src/oidc.js +++ b/src/oidc.js @@ -249,6 +249,7 @@ class CloudronAdapter { const tmp = { client_id: id, client_secret: client.secret, + application_type: 'native', // default is web but we want more flexible redirectUris and this is only used in https://github.com/panva/node-oidc-provider/blob/03c9bc513860e68ee7be84f99bfc9dc930b224e8/lib/helpers/client_schema.js#L536 redirect_uris: client.loginRedirectUri.split(',').map(s => s.trim()), id_token_signed_response_alg: client.tokenSignatureAlgorithm || 'RS256' };