diff --git a/dashboard/src/views/oidc.html b/dashboard/src/views/oidc.html
index 7e7a9233b..b60e46e88 100644
--- a/dashboard/src/views/oidc.html
+++ b/dashboard/src/views/oidc.html
@@ -27,8 +27,8 @@
-
-
+
+
@@ -74,8 +74,8 @@
-
-
+
+
diff --git a/src/oidc.js b/src/oidc.js
index 61f396dc3..240322e16 100644
--- a/src/oidc.js
+++ b/src/oidc.js
@@ -249,7 +249,7 @@ class CloudronAdapter {
const tmp = {
client_id: id,
client_secret: client.secret,
- redirect_uris: [ client.loginRedirectUri ],
+ redirect_uris: client.loginRedirectUri.split(',').map(s => s.trim()),
id_token_signed_response_alg: client.tokenSignatureAlgorithm || 'RS256'
};