hardcode CLI name for cid-cli in device auth flow

This commit is contained in:
Johannes Zellner
2026-03-18 14:37:15 +01:00
parent 1ca62dd38e
commit ba0bb62fa3

View File

@@ -742,9 +742,14 @@ async function start() {
});
},
userCodeConfirmSource: async function (ctx, form, client, deviceInfo, userCode) {
let clientName = ctx.oidc.client.clientName || ctx.oidc.client.clientId;
// only special case the cli to avoid dumping the internal cid
if (clientName === oidcClients.ID_CLI) clientName = 'CLI';
ctx.body = ejs.render(TEMPLATE_DEVICE_CONFIRM, {
name: await branding.getCloudronName(),
clientName: ctx.oidc.client.clientName || ctx.oidc.client.clientId,
clientName,
userCode,
form
});