diff --git a/src/oidc.js b/src/oidc.js index cb6149b7a..4b5f5fc5c 100644 --- a/src/oidc.js +++ b/src/oidc.js @@ -274,7 +274,7 @@ class CloudronAdapter { if (!client) return null; const tmp = {}; - tmp.application_type = client.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#L53 + tmp.application_type = client.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 tmp.client_id = id; tmp.client_secret = client.secret; tmp.id_token_signed_response_alg = client.tokenSignatureAlgorithm || 'RS256'; diff --git a/src/oidc_templates/interaction.ejs b/src/oidc_templates/interaction.ejs index 6700b76d3..781e2e201 100644 --- a/src/oidc_templates/interaction.ejs +++ b/src/oidc_templates/interaction.ejs @@ -50,6 +50,11 @@ +<% if (hasAccess) { -%> +
+ +
+<% } else { -%>
@@ -57,28 +62,27 @@

-<% if (hasAccess) { -%> -

Authorize <%= name %>

-<% } else { -%>

You do not have access to <%= name %>

-<% } -%>

-<% if (hasAccess) { -%> -
- -
-<% } else { -%> Continue -<% } -%>
+<% } -%> + +