diff --git a/src/proxyauth.js b/src/proxyauth.js index 94b2ec7a9..078a70b60 100644 --- a/src/proxyauth.js +++ b/src/proxyauth.js @@ -142,7 +142,8 @@ async function login(req, res, next) { }); } - res.redirect(302, `https://${dashboardFqdn}/openid/auth?client_id=${appId}&scope=openid profile email&response_type=code&redirect_uri=https://${app.fqdn}/callback`); + const proxyAuthClientId = `${app.id}-proxyauth`; + res.redirect(302, `https://${dashboardFqdn}/openid/auth?client_id=${proxyAuthClientId}&scope=openid profile email&response_type=code&redirect_uri=https://${app.fqdn}/callback`); } async function callback(req, res, next) {