Skip to content

Commit 190d1c3

Browse files
committed
Improve attribute statement mapping per provider
1 parent efc34b4 commit 190d1c3

4 files changed

Lines changed: 205 additions & 176 deletions

File tree

packages/localizations/src/en-US.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,17 @@ export const enUS: LocalizationResource = {
368368
},
369369
samlOkta: {
370370
headerTitle: 'Configure Okta Workforce',
371+
attributeMapping: {
372+
columns: {
373+
name: 'Name',
374+
value: 'Value',
375+
},
376+
rows: {
377+
email: { name: 'mail', value: 'user.profile.mail' },
378+
firstName: { name: 'firstName', value: 'user.profile.firstName' },
379+
lastName: { name: 'lastName', value: 'user.profile.lastName' },
380+
},
381+
},
371382
spFields: {
372383
acsUrl: {
373384
label: 'Single sign-on URL',
@@ -464,6 +475,18 @@ export const enUS: LocalizationResource = {
464475
},
465476
samlCustom: {
466477
headerTitle: 'Configure your identity provider (IdP)',
478+
attributeMapping: {
479+
columns: {
480+
userProfile: 'Identity Provider User Profile',
481+
attributeName: 'Attribute Name',
482+
},
483+
rows: {
484+
id: { userProfile: 'Unique identifier representing a user', attributeName: 'id' },
485+
email: { userProfile: 'User’s email address', attributeName: 'email' },
486+
firstName: { userProfile: 'User’s first name', attributeName: 'firstName' },
487+
lastName: { userProfile: 'User’s last name', attributeName: 'lastName' },
488+
},
489+
},
467490
spFields: {
468491
acsUrl: {
469492
label: 'Assertion consumer service (ACS) URL',

packages/shared/src/types/localization.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,17 @@ export type __internal_LocalizationResource = {
14271427
};
14281428
samlOkta: {
14291429
headerTitle: LocalizationValue;
1430+
attributeMapping: {
1431+
columns: {
1432+
name: LocalizationValue;
1433+
value: LocalizationValue;
1434+
};
1435+
rows: {
1436+
email: { name: LocalizationValue; value: LocalizationValue };
1437+
firstName: { name: LocalizationValue; value: LocalizationValue };
1438+
lastName: { name: LocalizationValue; value: LocalizationValue };
1439+
};
1440+
};
14301441
spFields: {
14311442
acsUrl: {
14321443
label: LocalizationValue;
@@ -1519,6 +1530,18 @@ export type __internal_LocalizationResource = {
15191530
};
15201531
samlCustom: {
15211532
headerTitle: LocalizationValue;
1533+
attributeMapping: {
1534+
columns: {
1535+
userProfile: LocalizationValue;
1536+
attributeName: LocalizationValue;
1537+
};
1538+
rows: {
1539+
id: { userProfile: LocalizationValue; attributeName: LocalizationValue };
1540+
email: { userProfile: LocalizationValue; attributeName: LocalizationValue };
1541+
firstName: { userProfile: LocalizationValue; attributeName: LocalizationValue };
1542+
lastName: { userProfile: LocalizationValue; attributeName: LocalizationValue };
1543+
};
1544+
};
15221545
spFields: {
15231546
acsUrl: {
15241547
label: LocalizationValue;

packages/ui/src/components/ConfigureSSO/deriveInitialStep.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ export const deriveInitialStep = (
1212
): WizardStepId => {
1313
const { isDomainTakenByOtherOrg, hasSuccessfulTestRun } = options;
1414

15-
if (!enterpriseConnection) {
16-
return 'select-provider';
17-
}
18-
15+
// Go to the verify domain step in order to display warning
1916
if (isDomainTakenByOtherOrg) {
2017
return 'verify-domain';
2118
}
2219

20+
// If no initial connection, go to the select provider step
21+
if (!enterpriseConnection) {
22+
return 'select-provider';
23+
}
24+
2325
// Connection is enabled, go to the confirmation step
2426
const isEnabled = enterpriseConnection?.active;
2527
if (isEnabled) {

0 commit comments

Comments
 (0)