Skip to content

Commit 148b273

Browse files
committed
chore(react): add support for organization SSO in BaseSignIn component
1 parent 716d910 commit 148b273

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/react/src/components/presentation/SignIn/BaseSignIn.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,13 @@ const BaseSignIn: FC<BaseSignInProps> = props => {
334334
);
335335
};
336336

337+
/**
338+
* `T3JnYW5pemF0aW9uQXV0aGVudGljYXRvcjpTU08` - OrganizationSSO
339+
* Currently, `App-Native Authentication` doesn't support organization SSO.
340+
* Tracker: TODO: Create `product-is` issue for this.
341+
*/
342+
const HIDDEN_AUTHENTICATORS: string[] = ['T3JnYW5pemF0aW9uQXV0aGVudGljYXRvcjpTU08'];
343+
337344
/**
338345
* Internal component that consumes FlowContext and renders the sign-in UI.
339346
*/
@@ -1128,7 +1135,9 @@ const BaseSignInContent: FC<BaseSignInProps> = ({
11281135
(auth.idp === 'LOCAL' && auth.metadata?.params && auth.metadata.params.length > 0),
11291136
);
11301137

1131-
const optionAuthenticators = availableAuthenticators.filter(auth => !userPromptAuthenticators.includes(auth));
1138+
const optionAuthenticators = availableAuthenticators
1139+
.filter(auth => !userPromptAuthenticators.includes(auth))
1140+
.filter(authenticator => !HIDDEN_AUTHENTICATORS.includes(authenticator.authenticatorId));
11321141

11331142
return (
11341143
<Card className={cx(containerClasses, styles.card)} variant={variant}>

0 commit comments

Comments
 (0)