in sample/app/server/app.js [66:82]
function serveContentForUser(template, req, res, decodedClaims) {
let gcipClaims = decodedClaims.gcip || null;
res.set('Content-Type', 'text/html');
res.end(template({
sub: decodedClaims.sub,
email: decodedClaims.email,
emailVerifed: !!(gcipClaims && gcipClaims.email_verified),
photoURL: gcipClaims && gcipClaims.picture,
displayName: (gcipClaims && gcipClaims.name) || 'N/A',
tenandId: (gcipClaims && gcipClaims.firebase && gcipClaims.firebase.tenant) || 'N/A',
gcipClaims: JSON.stringify(gcipClaims, null, 2),
iapClaims: JSON.stringify(decodedClaims, null, 2),
signoutURL: '?gcp-iap-mode=GCIP_SIGNOUT',
switchTenantURL: '?gcp-iap-mode=CLEAR_LOGIN_COOKIE',
sessionRefreshURL: '?gcp-iap-mode=SESSION_REFRESHER',
}));
}