Skip to content

Conversation

@NicolasLopes7
Copy link
Contributor

@NicolasLopes7 NicolasLopes7 commented Sep 23, 2024

Description

This pull request introduces a new feature for SAML connections. On the dashboard, users will be able to turn on/off a new flag called disable_additional_identifications. This is responsible for blocking the users to add any new identification other than their saml account. This pull request adds the new saml_connection field on the saml_accounts, and perform a logical check on the <UserProfile /> to conditional render the other sections (and add buttons).

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Sep 23, 2024

🦋 Changeset detected

Latest commit: 884deff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@clerk/clerk-js Patch
@clerk/backend Patch
@clerk/types Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/astro Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch
@clerk/tanstack-start Patch
@clerk/testing Patch
@clerk/elements Patch
@clerk/localizations Patch
@clerk/clerk-react Patch
@clerk/shared Patch
@clerk/themes Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@LauraBeatris LauraBeatris changed the title feat: disable adding additional identifiers when saml connection with flag is active feat(clerk-js,backend,types): Disable adding additional identifiers when SAML connection with flag is active Sep 24, 2024
@LauraBeatris LauraBeatris changed the title feat(clerk-js,backend,types): Disable adding additional identifiers when SAML connection with flag is active feat(clerk-js,backend,types): Disable adding additional identifiers for SAML connection with flag is active Sep 24, 2024
@LauraBeatris LauraBeatris changed the title feat(clerk-js,backend,types): Disable adding additional identifiers for SAML connection with flag is active feat(clerk-js,backend,types): Disable adding additional identifiers for SAML connection with active flag Sep 24, 2024
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch from 2ad2934 to 95cb1ca Compare September 24, 2024 15:02
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch 2 times, most recently from 1f1c0a7 to f559891 Compare September 24, 2024 21:01
@NicolasLopes7 NicolasLopes7 changed the title feat(clerk-js,backend,types): Disable adding additional identifiers for SAML connection with active flag feat(clerk-js,backend,types): Implement "disable additional identifiers" for SAML connection Sep 24, 2024
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch 2 times, most recently from 2245874 to e70b619 Compare September 24, 2024 21:30
@NicolasLopes7 NicolasLopes7 marked this pull request as ready for review September 24, 2024 21:40
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch from a011592 to 3b4e025 Compare September 24, 2024 22:29
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch from 3b4e025 to bd264f3 Compare September 24, 2024 22:30
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch from d53aba1 to 1097858 Compare September 24, 2024 22:49
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch from c350858 to 6129ced Compare September 25, 2024 13:40
@NicolasLopes7 NicolasLopes7 force-pushed the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch from 6129ced to 884deff Compare September 25, 2024 13:43
@NicolasLopes7 NicolasLopes7 enabled auto-merge (squash) September 25, 2024 17:52
@NicolasLopes7 NicolasLopes7 merged commit 4749ed4 into main Sep 25, 2024
@NicolasLopes7 NicolasLopes7 deleted the nicolas/orgs-138-disable-adding-additional-identifieraccount-saml branch September 25, 2024 17:54
wobsoriano pushed a commit that referenced this pull request Feb 8, 2025
NicolasLopes7 added a commit that referenced this pull request Aug 20, 2025
…s additional identifications

- Add `shouldAllowCreation` prop to PasskeySection component to control visibility
- Update SecurityPage to check enterprise account restrictions and pass shouldAllowCreation prop
- Hide entire PasskeySection when user has active enterprise account with disableAdditionalIdentifications flag

This change prevents users from adding passkeys when their enterprise connection explicitly disables additional identification methods, maintaining security policies set by enterprise administrators.

This commit follows a simillar pattern introduced earlier on this PR: #4211
NicolasLopes7 added a commit that referenced this pull request Aug 20, 2025
…s additional identifications

- Add `shouldAllowCreation` prop to PasskeySection component to control visibility
- Update SecurityPage to check enterprise account restrictions and pass shouldAllowCreation prop
- Hide entire PasskeySection when user has active enterprise account with disableAdditionalIdentifications flag

This change prevents users from adding passkeys when their enterprise connection explicitly disables additional identification methods, maintaining security policies set by enterprise administrators.

This commit follows a simillar pattern introduced earlier on this PR: #4211
NicolasLopes7 added a commit that referenced this pull request Aug 20, 2025
…s additional identifications

- Add `shouldAllowCreation` prop to PasskeySection component to control visibility
- Update SecurityPage to check enterprise account restrictions and pass shouldAllowCreation prop
- Hide entire PasskeySection when user has active enterprise account with disableAdditionalIdentifications flag

This change prevents users from adding passkeys when their enterprise connection explicitly disables additional identification methods, maintaining security policies set by enterprise administrators.

This commit follows a simillar pattern introduced earlier on this PR: #4211
NicolasLopes7 added a commit that referenced this pull request Aug 20, 2025
…s additional identifications

- Add `shouldAllowCreation` prop to PasskeySection component to control visibility
- Update SecurityPage to check enterprise account restrictions and pass shouldAllowCreation prop
- Hide entire PasskeySection when user has active enterprise account with disableAdditionalIdentifications flag

This change prevents users from adding passkeys when their enterprise connection explicitly disables additional identification methods, maintaining security policies set by enterprise administrators.

This commit follows a simillar pattern introduced earlier on this PR: #4211
NicolasLopes7 added a commit that referenced this pull request Aug 20, 2025
…s additional identifications

- Add `shouldAllowCreation` prop to PasskeySection component to control visibility
- Update SecurityPage to check enterprise account restrictions and pass shouldAllowCreation prop
- Hide entire PasskeySection when user has active enterprise account with disableAdditionalIdentifications flag

This change prevents users from adding passkeys when their enterprise connection explicitly disables additional identification methods, maintaining security policies set by enterprise administrators.

This commit follows a simillar pattern introduced earlier on this PR: #4211
LauraBeatris pushed a commit that referenced this pull request Aug 20, 2025
…s additional identifications

- Add `shouldAllowCreation` prop to PasskeySection component to control visibility
- Update SecurityPage to check enterprise account restrictions and pass shouldAllowCreation prop
- Hide entire PasskeySection when user has active enterprise account with disableAdditionalIdentifications flag

This change prevents users from adding passkeys when their enterprise connection explicitly disables additional identification methods, maintaining security policies set by enterprise administrators.

This commit follows a simillar pattern introduced earlier on this PR: #4211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants