Skip to content

[Feature Request] Cookie options should be settable in AddMicrosoftWebApp ย #237

Closed

Description

Is your feature request related to a problem? Please describe.
Cookie options should be settable. For this, AddMicrosoftWebApp should have a overload with an action to configure the CookieAuthenticationOptions

Describe the solution you'd like

The most complex override could be something like the following (note configureCookieAuthenticationOptions which is an Action<CookieAuthenticationOptions>)

 public static AuthenticationBuilder AddMicrosoftWebApp(
            this AuthenticationBuilder builder,
            Action<OpenIdConnectOptions> configureOpenIdConnectOptions,
            Action<MicrosoftIdentityOptions> configureMicrosoftIdentityOptions,
            Action<CookieAuthenticationOptions> configureCookieAuthenticationOptions,
            string openIdConnectScheme = OpenIdConnectDefaults.AuthenticationScheme,
            string cookieScheme = CookieAuthenticationDefaults.AuthenticationScheme,
            bool subscribeToOpenIdConnectMiddlewareDiagnosticsEvents = false)
        {

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions