Skip to content

Redesign authentication builder and dependency injection - #6

Merged
hifeamin merged 2 commits into
mainfrom
feature/2-authentication-builder-and-di
Nov 21, 2026
Merged

hifeamin merged 2 commits into
mainfrom
feature/2-authentication-builder-and-di

Conversation

@hifeamin

Copy link
Copy Markdown
Collaborator

Summary

  • Refactor the authentication builder to keep core Identity registration focused and move optional feature registration into dedicated extensions.
  • Add composable configuration binding and Action<TOptions> callbacks for JWT, verification, forgot-password, refresh-token, and external-login options.
  • Keep JWT options isolated to the selected authentication scheme.
  • Preserve consumer-provided service registrations and prevent duplicate external provider registrations.
  • Validate feature options on startup and report missing verification dependencies with actionable guidance.
  • Update the sample configuration and README to demonstrate the new configuration model.
  • Ignore generated SQLite runtime database files.

Tests

  • Added coverage for configuration binding and code overrides, JWT scheme isolation, multiple external providers, optional feature registration, startup dependency validation, and preserving consumer-provided services.
  • No GitHub Actions workflow runs or commit status checks were available for this branch at the time this PR was created. Build/test execution should be confirmed before merge.

Scope

No database schema or migration changes and no new package dependencies.

@hifeamin
hifeamin merged commit 27db4a6 into main Nov 21, 2026
3 checks passed
@hifeamin
hifeamin deleted the feature/2-authentication-builder-and-di branch November 21, 2026 01:03
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