feat: event tenant domain#129
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis PR refactors the authentication and tenant identification system, renaming route parameters from Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant OAuthController
participant AuthenticateAction
participant OAuthStateDTO
participant Helper1 as eventRedirectResponse
participant Helper2 as basePanelRedirectResponse
participant Redirect
Client->>OAuthController: POST /callback
OAuthController->>OAuthController: getAuthenticate()
alt state.tenant is null
OAuthController->>Helper2: basePanelRedirectResponse(state)
Helper2->>Redirect: redirect()->intended(panelUrl)
Redirect-->>Client: Redirect to panel
else state.panel is 'event'
OAuthController->>Helper1: eventRedirectResponse(state)
Helper1->>Helper1: Fetch Tenant by slug
Helper1->>Helper1: Derive baseUri
Helper1->>Redirect: redirect to participant-dashboard
Redirect-->>Client: Redirect to dashboard
else Normal flow
OAuthController->>AuthenticateAction: handle()
AuthenticateAction->>AuthenticateAction: logout(), login(), setFilamentUser()
AuthenticateAction->>AuthenticateAction: Create/update provider with avatar, username
OAuthController->>Redirect: redirect()->to($redirectUri)
Redirect-->>Client: Redirect to intended URL
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (26)
Comment |
Summary by CodeRabbit
New Features
Improvements
Tests
✏️ Tip: You can customize this high-level summary in your review settings.