Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jmprieur opened this issue Jun 23, 2020 · 1 comment
Closed

Comments

@jmprieur
Copy link
Collaborator

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)
        {
@jennyf19
Copy link
Collaborator

Included in 0.2.0-preview release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants