From 1d6b3a0bb406d0fb95fac411347aa4aedc60451c Mon Sep 17 00:00:00 2001 From: Trey Hayden <33755714+vbhayden@users.noreply.github.com> Date: Wed, 7 Feb 2024 14:23:46 -0500 Subject: [PATCH] adding jwt awareness to UI ping --- src/main/server/skyRepo.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/server/skyRepo.js b/src/main/server/skyRepo.js index e28a0531e..23e5b4d43 100644 --- a/src/main/server/skyRepo.js +++ b/src/main/server/skyRepo.js @@ -10071,6 +10071,7 @@ const pingWithTime = function () { return JSON.stringify({ ping: 'pong', time: new Date().getTime(), + ssoViaP1: this.ctx.req.p1 ? true : null, ssoPublicKey: this.ctx.req.eim ? this.ctx.req.eim.ids[0].ppk.toPk().toPem() : undefined, ssoAdditionalPublicKeys: this.ctx.req.eim && this.ctx.req.eim.ids.length ? this.ctx.req.eim.ids.slice(1).map((identity) => identity.ppk.toPk().toPem()) : undefined, ssoLogin: this.ctx.req.oidc ? (process.env.CASS_OIDC_BASE_URL || 'http://localhost/') + 'api/login' : undefined, @@ -10119,6 +10120,11 @@ const pingWithTime = function () { * required: true * description: The current number of milliseconds since the Unix epoch, for ensuring signature sheet signing can sign time-nonced signatures that will not be time-desynchronized with the server. * example: 1674857764808 + * ssoViaP1: + * type: bool + * required: false + * description: A flag indicating that the user logged in through a Platform One JWT. + * example: true * ssoPublicKey: * type: string * required: false