#69 - Properly delete Twitter state cookie.
This commit is contained in:
parent
2e65a40555
commit
3e88f44552
|
|
@ -104,7 +104,13 @@ namespace Microsoft.AspNet.Security.Twitter
|
||||||
ClaimsIdentity.DefaultRoleClaimType);
|
ClaimsIdentity.DefaultRoleClaimType);
|
||||||
context.Properties = requestToken.Properties;
|
context.Properties = requestToken.Properties;
|
||||||
|
|
||||||
Response.Cookies.Delete(StateCookie);
|
var cookieOptions = new CookieOptions
|
||||||
|
{
|
||||||
|
HttpOnly = true,
|
||||||
|
Secure = Request.IsSecure
|
||||||
|
};
|
||||||
|
|
||||||
|
Response.Cookies.Delete(StateCookie, cookieOptions);
|
||||||
|
|
||||||
await Options.Notifications.Authenticated(context);
|
await Options.Notifications.Authenticated(context);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue