Skip to content

Add shared configuration interface for authentication providers with generalized configuration list #3856

Closed
1 of 1 issue completed

Description

@coderabbitai

Summary

Based on the discussion in PR #3851, we need to implement a shared configuration interface for authentication providers that uses a generalized configuration list approach.

Background

The current authentication system is moving towards a more modular approach with individual provider packages. The team has discussed two main approaches for provider configuration and decided on the generalized interface approach for better flexibility and custom provider support.

Requirements

  1. Create a generalized ProviderConfiguration interface that all provider configurations implement

  2. Implement a unified AuthConfig class with the following API:

  3. Support for custom providers through the same interface

Proposed API Design

AuthConfig.set(providers: [
  GoogleConfig(...),
  AppleConfig(....),
  EmailConfig(...),
  MyCustomProviderConfig(...),
]);

Benefits

  • Extensibility: Easy to add custom providers
  • Type Safety: Maintained through Dart's type system
  • Flexibility: Users can import and configure only the providers they need
  • Consistency: Single configuration pattern for all providers

References

Acceptance Criteria

  • Create ProviderConfiguration base interface
  • Implement AuthConfig class with providers list parameter
  • Update existing provider configurations to implement the interface
  • Ensure backward compatibility during transition
  • Add documentation and examples
  • Update tests to cover the new configuration system

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    area: authentication
    on Aug 6, 2025
  2. moved this from Inbox 📫 to Planned 🔭 in Serverpod Frameworkson Aug 8, 2025
  3. removed their assignment
    on Aug 11, 2025
  4. moved this from Planned 🔭 to Next Up 🎯 in Serverpod Frameworkson Aug 11, 2025
  5. yashas-hm commented on Aug 19, 2025

    @yashas-hm
    Contributor

    May I work on this?

  6. SandPod commented on Aug 20, 2025

    @SandPod
    Contributor

    @yashas-hm - Appreciate the offer! We’ll handle this one internally since it ties into other work in progress.

  7. self-assigned this
    on Aug 20, 2025
  8. moved this from Next Up 🎯 to In Progress 🔥 in Serverpod Frameworkson Aug 20, 2025
  9. moved this from In Progress 🔥 to Next Up 🎯 in Serverpod Frameworkson Sep 11, 2025
  10. removed their assignment
    on Sep 11, 2025
  11. self-assigned this
    on Sep 30, 2025
  12. moved this from Next Up 🎯 to In Progress 🔥 in Serverpod Frameworkson Sep 30, 2025
  13. self-assigned this
    on Oct 27, 2025
  14. SandPod commented on Oct 27, 2025

    @SandPod
    Contributor

    I'm working on adding our token issuers into this system now.
    Will start with adding server side sessions.

  15. moved this from In Progress 🔥 to Done 🚀 in Serverpod Frameworkson Nov 2, 2025
  16. reopened this on Nov 2, 2025
  17. moved this from Done 🚀 to Inbox 📫 in Serverpod Frameworkson Nov 2, 2025
  18. moved this from Inbox 📫 to Done 🚀 in Serverpod Frameworkson Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area: authentication

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions