Skip to content

Commit 9ed38b6

Browse files
committed
Add provider
1 parent c3df67a commit 9ed38b6

7 files changed

Lines changed: 19 additions & 4 deletions

File tree

packages/localizations/src/en-US.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ export const enUS: LocalizationResource = {
242242
groupLabel: 'SAML',
243243
okta: 'Okta Workforce',
244244
customSaml: 'Custom SAML Provider',
245+
google: 'Google Workspace',
245246
},
246247
warning: 'Once a provider is selected you cannot change again until the configuration is over',
247248
},
@@ -387,7 +388,7 @@ export const enUS: LocalizationResource = {
387388
step2: 'Select <bold>Add Expression</bold> for each row below, then enter the matching name and value:',
388389
attributeMappingTable: {
389390
columns: {
390-
name: 'Name',
391+
name: 'Attribute name',
391392
expression: 'Expression',
392393
},
393394
rows: {

packages/shared/src/types/localization.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,7 @@ export type __internal_LocalizationResource = {
13081308
groupLabel: LocalizationValue;
13091309
okta: LocalizationValue;
13101310
customSaml: LocalizationValue;
1311+
google: LocalizationValue;
13111312
};
13121313
warning: LocalizationValue;
13131314
};

packages/ui/src/components/ConfigureSSO/steps/ConfigureStep/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { useConfigureSSO } from '../../ConfigureSSOContext';
66
import { Step } from '../../elements/Step';
77
import { Wizard } from '../../elements/Wizard';
88
import type { ProviderType } from '../../types';
9-
import { SamlCustomConfigureSteps } from './saml/SamlCustomConfigureSteps';
10-
import { SamlOktaConfigureSteps } from './saml/SamlOktaConfigureSteps';
9+
import { SamlCustomConfigureSteps, SamlGoogleConfigureSteps, SamlOktaConfigureSteps } from './saml';
1110

1211
const STEPS_BY_PROVIDER: Record<ProviderType, () => JSX.Element> = {
1312
saml_custom: SamlCustomConfigureSteps,
1413
saml_okta: SamlOktaConfigureSteps,
14+
saml_google: SamlGoogleConfigureSteps,
1515
};
1616

1717
export const ConfigureStep = (): JSX.Element | null => {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { type JSX } from 'react';
2+
3+
export const SamlGoogleConfigureSteps = (): JSX.Element => {
4+
return <div>SamlGoogleConfigureSteps</div>;
5+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { SamlCustomConfigureSteps } from './SamlCustomConfigureSteps';
2+
export { SamlGoogleConfigureSteps } from './SamlGoogleConfigureSteps';
3+
export { SamlOktaConfigureSteps } from './SamlOktaConfigureSteps';

packages/ui/src/components/ConfigureSSO/steps/SelectProviderStep.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ const PROVIDER_GROUPS: ReadonlyArray<{
4747
label: localizationKeys('configureSSO.selectProviderStep.saml.customSaml'),
4848
iconId: 'saml',
4949
},
50+
{
51+
id: 'saml_google',
52+
label: localizationKeys('configureSSO.selectProviderStep.saml.google'),
53+
iconId: 'google',
54+
},
5055
],
5156
},
5257
];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export type ProviderType = 'saml_okta' | 'saml_custom';
1+
export type ProviderType = 'saml_okta' | 'saml_custom' | 'saml_google';
22

33
export type WizardStepId = 'select-provider' | 'verify-domain' | 'configure' | 'test' | 'confirmation';

0 commit comments

Comments
 (0)