Skip to content

feat: wire multi-IdP auth trio (Adapter/Factory/Strategy) - #2

Merged
dariemcarlosdev merged 1 commit into
masterfrom
feat/auth-trio
Jul 18, 2026
Merged

dariemcarlosdev merged 1 commit into
masterfrom
feat/auth-trio

Conversation

@dariemcarlosdev

Copy link
Copy Markdown
Owner

feat: wire multi-IdP auth trio (Adapter/Factory/Strategy)

Copilot AI review requested due to automatic review settings July 18, 2026 20:35
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@dariemcarlosdev, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 51 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8033e9e2-0f0a-4299-b706-e51358f8990f

📥 Commits

Reviewing files that changed from the base of the PR and between 474db4f and 4079317.

📒 Files selected for processing (9)
  • Controllers/AccountController.cs
  • Controllers/HomeController.cs
  • Program.cs
  • Services/Auth0UserProfileService.cs
  • Services/CognitoUserProfileService.cs
  • Services/EntraUserProfileService.cs
  • Services/IUserProfileService.cs
  • Services/IdentityBridgeClaimsTransformation.cs
  • Services/UserProfileServiceFactory.cs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/auth-trio

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dariemcarlosdev

Copy link
Copy Markdown
Owner Author

PR Summary: Multi-IdP Auth Implementation (Adapter/Factory/Strategy)
This PR implements a flexible authentication architecture to support multiple Identity Providers (IdPs) using a combination of design patterns:

Strategy Pattern (IUserProfileService): Defines a common interface for fetching user profiles, allowing the system to switch between different provider-specific implementations at runtime.
Adapter Pattern (Auth0/Cognito/EntraUserProfileService): These services act as adapters, wrapping the specific APIs/responses of different IdPs (Auth0, AWS Cognito, and Azure Entra ID) to conform to the IUserProfileService interface.
Factory Pattern (UserProfileServiceFactory): Encapsulates the instantiation logic, determining which specific IUserProfileService implementation to provide based on the user's authentication context (e.g., the idp claim).

Key Changes:

Introduced IUserProfileService interface.
Implemented specific services for Auth0, Cognito, and Entra ID.
Added UserProfileServiceFactory for dynamic service resolution.
Integrated these services into the IdentityBridgeClaimsTransformation and AccountController to unify user profile handling.

@dariemcarlosdev
dariemcarlosdev merged commit b3d018b into master Jul 18, 2026
2 checks passed
@dariemcarlosdev
dariemcarlosdev deleted the feat/auth-trio branch July 18, 2026 20:37
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.

1 participant