hardcode CLI name for cid-cli in device auth flow
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user