Skip to content

SameSite=None is always set on OpenIdConnect nonce cookie regardless if request is insecure #386

@lyubomirr

Description

@lyubomirr

Recently, I've upgraded the Microosft.Owin.Security.OpenIdConnect package in order to accomodate the new samesite changes. The problem I have is that the nonce cookie SameSite mode is always set to None, even on http. This makes the browser ignore the cookie.
Can you elaborate why the implementation is like that? Is it possible for insecure requests to set the SameSite mode Lax for example, or export an option in the OpenIdConnectAuthenticationOptions to choose the mode, or maybe even a delegate which dynamically choses your SameSite mode?
Im open to contribute if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions