SameSiteCookieManager Class

Namespace:
Weavy.Web.Owin.CookieManager
Assembly:
Weavy.Web.dll

Cookie Manager implementation that handles SameSite=None introduced by Google. See: https://devblogs.microsoft.com/aspnet/upcoming-samesite-cookie-changes-in-asp-net-and-asp-net-core/

public class SameSiteCookieManager : ICookieManager
Inheritance:
System.Object → SameSiteCookieManager

Constructors

SameSiteCookieManager() Constructor.
SameSiteCookieManager(ICookieManager) Constructor.

Methods

AppendResponseCookie(IOwinContext, string, string, CookieOptions) Appends the requested cookie to System.Web.HttpContextBase.Response.Cookies.
BreaksWithSameSiteNone(string) Decide from the user-agent if the client can handle SameSite=None.
DeleteCookie(IOwinContext, string, CookieOptions) Deletes the requested cookie by appending an expired cookie to System.Web.HttpContextBase.Response.Cookies.
GetRequestCookie(IOwinContext, string) Reads the requested cookie from System.Web.HttpContextBase.Request.Cookies.

Extension Methods

Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.