mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
Related to: #24688 Changes: - Added two new dependencies: `jsonwebtoken` and `@azure/msal-node` - Added a new hook: `entra-sso`. A hook that replaces the default authentication mechanism with Microsoft Entra SSO. - Added a new action: signup-sso-user-or-redirect. This action finds or creates user records for authenticated SSO users and attaches the user record to the user's session. - updated the is-logged-in policy to check if an SSO user's token is still valid. - Added a link to the account page to the app's header navigation.
31 lines
634 B
JavaScript
31 lines
634 B
JavaScript
module.exports = {
|
|
|
|
|
|
friendlyName: 'View account overview',
|
|
|
|
|
|
description: 'Display "Account Overview" page.',
|
|
|
|
|
|
exits: {
|
|
|
|
success: {
|
|
viewTemplatePath: 'pages/account/account-overview',
|
|
}
|
|
|
|
},
|
|
|
|
|
|
fn: async function () {
|
|
|
|
// If billing features are enabled, include our configured Stripe.js
|
|
// public key in the view locals. Otherwise, leave it as undefined.
|
|
return {
|
|
replaceBuiltInAuthWithEntra: (sails.config.custom.entraClientSecret !== undefined),
|
|
stripePublishableKey: sails.config.custom.enableBillingFeatures? sails.config.custom.stripePublishableKey : undefined,
|
|
};
|
|
|
|
}
|
|
|
|
|
|
};
|