Skip to content

Commit 04a3028

Browse files
committed
Add changeset
1 parent 14bdeb2 commit 04a3028

4 files changed

Lines changed: 20 additions & 10 deletions

File tree

.changeset/public-parts-chew.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@clerk/localizations': patch
3+
'@clerk/clerk-js': patch
4+
'@clerk/shared': patch
5+
'@clerk/ui': patch
6+
---
7+
8+
Add support for custom SAML provider in `<ConfigureSSO />`

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,17 +328,18 @@ export const ConfigureAttributesSubStep = (): JSX.Element => {
328328
const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();
329329

330330
const { provider } = useConfigureSSO();
331-
const { key } = useConfigureStepTranslations();
332331

333332
return (
334333
<>
335334
<Step.Body>
336335
<Step.Section sx={theme => ({ gap: theme.space.$3 })}>
337-
<Heading
338-
as='h3'
339-
textVariant='subtitle'
340-
localizationKey={localizationKeys(key('configureAttributes.title'))}
341-
/>
336+
{provider === 'saml_custom' && (
337+
<Heading
338+
as='h3'
339+
textVariant='subtitle'
340+
localizationKey={localizationKeys('configureSSO.configureStep.samlCustom.configureAttributes.title')}
341+
/>
342+
)}
342343

343344
<Table
344345
sx={theme => ({
@@ -758,7 +759,7 @@ export const SubmitSamlConfigSubStep = (): JSX.Element => {
758759
<Step.Footer.Continue
759760
onClick={handleContinue}
760761
isLoading={card.isLoading}
761-
isDisabled={!canSubmit || !!card.error}
762+
isDisabled={!canSubmit}
762763
/>
763764
</Step.Footer>
764765
</>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export const SelectProviderStep = (): JSX.Element => {
5151
return;
5252
}
5353

54+
setProvider(selected);
55+
5456
const primaryEmailAddress = user?.primaryEmailAddress;
5557
const hasVerifiedPrimaryEmailAddress = primaryEmailAddress?.verification.status === 'verified';
5658

@@ -67,7 +69,6 @@ export const SelectProviderStep = (): JSX.Element => {
6769
}
6870

6971
// Otherwise, set the provider and create the enterprise connection
70-
setProvider(selected);
7172
await createEnterpriseConnection(selected);
7273
void goToStep('configure');
7374
};
@@ -155,7 +156,7 @@ export const SelectProviderStep = (): JSX.Element => {
155156
<Step.Footer.Continue
156157
onClick={handleContinue}
157158
isLoading={card.isLoading}
158-
isDisabled={!selected || !!card.error}
159+
isDisabled={!selected}
159160
/>
160161
</Step.Footer>
161162
</Step>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export const EnterVerificationCodeStep = ({
353353
<Step.Footer.Continue
354354
onClick={() => goNext()}
355355
isLoading={otp.isLoading || card.isLoading}
356-
isDisabled={!isVerified || !!card.error}
356+
isDisabled={!isVerified}
357357
/>
358358
</Step.Footer>
359359
</>

0 commit comments

Comments
 (0)