Skip to content

Deprecate pendingSSO, missingMFA fields #1651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kakulukian
Copy link
Member

This pull request updates the UserInfo interface in packages/hub/src/lib/oauth-handle-redirect.ts to improve how security restrictions are represented. It introduces a new securityRestrictions field and marks two existing fields as deprecated.

Updates to the UserInfo interface:

  • Added a new securityRestrictions field to represent various security restrictions ("mfa", "sso", "ip", "token-policy") in a unified way.
  • Deprecated the pendingSSO field, recommending the use of securityRestrictions with "sso" instead.
  • Deprecated the missingMFA field, recommending the use of securityRestrictions with "mfa" instead.

@Kakulukian Kakulukian requested a review from coyotte508 as a code owner July 24, 2025 14:44
Copy link
Member

@coyotte508 coyotte508 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that there is auth0 and nextauth to update probably 😬

(I think we don't care that much about auth0, given the painful submission process, but nextauth is here: nextauthjs/next-auth#12884)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants