Skip to content

Commit 2529d2b

Browse files
committed
feat(ui): surface SAML ACS URL in ConfigureSSO Configure step
Pull the enterprise connection from ConfigureSSOContext inside ConfigureStep and render its SAML ACS URL as the single sign-on URL, replacing the placeholder text. Drop the now-unused isLastStep guard from the Select Provider continue button.
1 parent e830214 commit 2529d2b

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const ConfigureSSOCardContent = () => {
6969
isLoading,
7070
createEnterpriseConnection,
7171
} = __internal_useUserEnterpriseConnections({ enabled: true });
72+
7273
// Currently FAPI only supports one enterprise connection per user
7374
const enterpriseConnection = enterpriseConnections?.[0];
7475

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import { descriptors, Flow, Text } from '@/customizables';
1+
import { descriptors, Flow } from '@/customizables';
22

3+
import { useConfigureSSO } from '../ConfigureSSOContext';
34
import { Step } from '../elements/Step';
45
import { useWizard } from '../elements/Wizard';
56

67
export const ConfigureStep = (): JSX.Element => {
78
const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();
9+
const { enterpriseConnection } = useConfigureSSO();
810

911
return (
1012
<Flow.Part part='configureCreateApp'>
@@ -18,9 +20,7 @@ export const ConfigureStep = (): JSX.Element => {
1820
/>
1921

2022
<Step.Body>
21-
<Step.Section>
22-
<Text>UI goes here</Text>
23-
</Step.Section>
23+
<Step.Section>Single sign-on URL: {enterpriseConnection?.samlConnection?.acsUrl}</Step.Section>
2424
</Step.Body>
2525

2626
<Step.Footer>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const PROVIDER_GROUPS: ReadonlyArray<{
4343

4444
export const SelectProviderStep = (): JSX.Element => {
4545
const card = useCardState();
46-
const { goNext, isLastStep } = useWizard();
46+
const { goNext } = useWizard();
4747
const { setProvider, createConnection } = useConfigureSSO();
4848
const [selected, setSelected] = React.useState<ProviderType | null>(null);
4949

@@ -147,7 +147,7 @@ export const SelectProviderStep = (): JSX.Element => {
147147
<Step.Footer.Continue
148148
onClick={handleContinue}
149149
isLoading={card.isLoading}
150-
isDisabled={isLastStep || !selected || card.isLoading}
150+
isDisabled={!selected || card.isLoading}
151151
/>
152152
</Step.Footer>
153153
</Step>

0 commit comments

Comments
 (0)