Skip to content

Decouple the ASP.NET Core/OWIN integration options from the authentication scheme options#2478

Merged
kevinchalet merged 1 commit into
openiddict:devfrom
kevinchalet:authentication_options
Jun 1, 2026
Merged

Decouple the ASP.NET Core/OWIN integration options from the authentication scheme options#2478
kevinchalet merged 1 commit into
openiddict:devfrom
kevinchalet:authentication_options

Conversation

@kevinchalet

@kevinchalet kevinchalet commented Jun 1, 2026

Copy link
Copy Markdown
Member

OpenIddict doesn't use named options for its own options, except for the 3 authentication handlers (due to the fact the authentication options in ASP.NET Core are always named). Unfortunately, the current implementation of the ASP.NET Core integrations is suboptimal as you end with 2 instances of OpenIddictClientAspNetCoreOptions/OpenIddictServerAspNetCoreOptions/OpenIddictValidationAspNetCoreOptions: one with a non-empty name - used by ASP.NET Core's authentication stack - and one with an empty one, used by OpenIddict itself.

To fix that, this PR removes the AuthenticationSchemeOptions inheritance so that OpenIddictClientAspNetCoreOptions/OpenIddictServerAspNetCoreOptions/OpenIddictValidationAspNetCoreOptions are no longer used by ASP.NET Core. A similar approach (but slightly different) was used for OWIN/Katana.

@kevinchalet kevinchalet added this to the 8.0.0-preview.1 milestone Jun 1, 2026
@kevinchalet kevinchalet self-assigned this Jun 1, 2026
@kevinchalet
kevinchalet merged commit fff7694 into openiddict:dev Jun 1, 2026
6 checks passed
@kevinchalet
kevinchalet deleted the authentication_options branch June 1, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant