Skip to content

Add securitySchemes and security requirements for endpoints created by MapIdentityApis #57806

@mikekistler

Description

@mikekistler

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

An application that uses the new MapIdentityApis extension method in .NET 8 is adding ASP.NET Identity as an AuthN/AuthZ scheme in their application. But this auth scheme is not reflected in OpenAPI documented generated by the (new) built-in ASP.NET OpenAPI document generation feature. Some users will want to see this information reflected in the OpenAPI doc for their application.

Describe the solution you'd like

The MapIdentityApis extension method should either automatically add the appropriate security schemes and security requirements metadata or provide a simple means to add this optionally.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-identityIncludes: Identity and providersenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-identity-apis

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions