oidc: set application_type to native to skip elaborate web redirect URIs

This commit is contained in:
Johannes Zellner
2023-04-06 13:28:24 +02:00
parent de72400706
commit badcc0ac2c
+1
View File
@@ -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'
};