Repository navigation
feat(auth2): Add AuthSuccess model - #3712
Conversation
📝 WalkthroughWalkthroughThe changes introduce a new Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant EmailAccountEndpoint
participant AuthSessions
participant Database
Client->>EmailAccountEndpoint: login(email, password)
EmailAccountEndpoint->>AuthSessions: createSession(authUserId, ...)
AuthSessions->>Database: Store session
Database-->>AuthSessions: Session stored
AuthSessions-->>EmailAccountEndpoint: AuthSuccess(sessionKey, authUserId, scopeNames)
EmailAccountEndpoint-->>Client: AuthSuccess(sessionKey, authUserId, scopeNames)
sequenceDiagram
participant Client
participant EmailAccountEndpoint
Client->>EmailAccountEndpoint: finishRegistration(accountRequestId, verificationCode)
EmailAccountEndpoint-->>Client: AuthSuccess(sessionKey, authUserId, scopeNames)
Client->>EmailAccountEndpoint: finishPasswordReset(passwordResetRequestId, verificationCode, newPassword)
EmailAccountEndpoint-->>Client: AuthSuccess(sessionKey, authUserId, scopeNames)
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (8)
🔇 Additional comments (23)
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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
To be returned from a successful login, instead of just the `String` `sessionKey` This additionally contains the `authUserId` and `scopes`. This will be used in the client "session manager" for `serverpod_auth_session`.
eddf5a1 to
b02ea95
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
To be returned from a successful login, instead of just the
StringsessionKeyThis additionally contains the
authUserIdandscopes.This will be used in the client "session manager" for
serverpod_auth_session, where it will be really useful to have the auth user ID and scopes available for a logged-in user. (In #3721)Summary by CodeRabbit
New Features
Bug Fixes
Tests
Documentation