The application menu link to add
The updated list of application menu links
Add multiple application menu links
The application menu links to add
The updated list of application menu links
Get the application name
The application name
Get the profile configuration
The profile configuration
Set all application menu links
The application menu links to set
The updated list of application menu links
Set the application name
The application name to set
The result of the operation
Set the main links
The main links to set
The result of the operation
Set the profile configuration
The profile configuration to set
The result of the operation
// Simple example
const successSimple = await globalHeaderClient.accessMenu.setProfile({ active: true, loginUrl: '/login', logoutUrl: '/logout' });
// Example with IdP profile token (active: true must be provided in the same call)
const successWithToken = await globalHeaderClient.accessMenu.setProfile({
active: true, // Required: must be provided together with idpProfileToken in the same call
loginUrl: 'https://login.url.be',
logoutUrl: 'https://logout.url.be',
switchCapacityUrl: 'https://switchcapacity.url.be',
idpProfileToken: '1Tr1SZkt43VprVxRL8MvfDLpxJ8uAMy'
});
// Complex example with manual IDP data and multiple identities
const successComplex = await globalHeaderClient.accessMenu.setProfile({
active: true,
loginUrl: 'https://login.url.be',
logoutUrl: 'https://logout.url.be',
switchCapacityUrl: 'https://switchcapacity.url.be',
idpData: {
user: {
firstName: 'John',
name: 'Doe',
},
activeIdentity: {
capacity: 'BUR',
loginHint: 'active-identity-login-hint',
},
identities: [
{
capacity: 'BUR',
onBehalfOf: {
type: 'organisation',
name: 'ABC Company',
identifier: 'BE04564566556',
},
loginHint: 'identity1-login-hint',
},
{
capacity: 'EA',
onBehalfOf: {
type: 'organisation',
name: 'Company XYZ',
identifier: 'BE04987987987',
},
mandateGiver: {
type: 'person',
firstName: 'Alice',
name: 'Johnson',
identifier: 'BE01234567890',
},
loginHint: 'identity2-login-hint',
},
],
},
});
Set the visibility of the access menu
The visibility to set
The result of the operation
Add an application menu link