-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
social signed-in user assumed as confirmed user (#10239) #10240
Conversation
WalkthroughThis pull request modifies two aspects of the identity handling. In the social sign-in callback, a new variable is introduced to extract the user's name from their claims and initialize the user object with both the full name and lockout settings. In the user confirmation process, the method now checks for associated logins in addition to verifying email or phone confirmation, thereby updating the control flow for confirming a user. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant IdentityController
participant UserObject
Client->>IdentityController: SocialSignInCallback(info)
IdentityController->>IdentityController: Extract 'name' from info.Principal claims
IdentityController->>UserObject: Instantiate user (FullName = name, LockoutEnabled = true)
IdentityController->>Client: Return response
sequenceDiagram
participant Caller
participant AppUserConfirmation
participant UserManager
participant User
Caller->>AppUserConfirmation: Request confirmation check
AppUserConfirmation->>UserManager: Call GetLoginsAsync(user)
UserManager-->>AppUserConfirmation: Return logins list
AppUserConfirmation->>AppUserConfirmation: Evaluate email/phone confirmation OR logins present
AppUserConfirmation->>Caller: Return boolean result
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
closes #10239
Summary by CodeRabbit