#32 - Port comment and flow cleanup from Katana.
This commit is contained in:
parent
55f8b9d41d
commit
07b3fe2135
|
|
@ -210,7 +210,7 @@ namespace Microsoft.AspNet.Security.Cookies
|
|||
Context,
|
||||
Options.CookieName,
|
||||
cookieValue,
|
||||
cookieOptions);
|
||||
signInContext.CookieOptions);
|
||||
|
||||
var signedInContext = new CookieResponseSignedInContext(
|
||||
Context,
|
||||
|
|
@ -238,7 +238,7 @@ namespace Microsoft.AspNet.Security.Cookies
|
|||
Options.CookieManager.DeleteCookie(
|
||||
Context,
|
||||
Options.CookieName,
|
||||
cookieOptions);
|
||||
context.CookieOptions);
|
||||
}
|
||||
else if (_shouldRenew)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -95,10 +95,10 @@ namespace Microsoft.AspNet.Security.Cookies
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when a Challenge, SignIn, or SignOut causes a redirect in the cookie middleware
|
||||
/// Implements the interface method by invoking the related delegate method
|
||||
/// </summary>
|
||||
/// <param name="context">Contains information about the event</param>
|
||||
public void ApplyRedirect(CookieApplyRedirectContext context)
|
||||
public virtual void ApplyRedirect(CookieApplyRedirectContext context)
|
||||
{
|
||||
OnApplyRedirect.Invoke(context);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Security.Cookies
|
|||
|
||||
/// <summary>
|
||||
/// The options for creating the outgoing cookie.
|
||||
/// May be replace or altered during the ResponseSignIn call.
|
||||
/// May be replace or altered during the ResponseSignOut call.
|
||||
/// </summary>
|
||||
public CookieOptions CookieOptions
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ namespace Microsoft.AspNet.Security.Cookies
|
|||
void ApplyRedirect(CookieApplyRedirectContext context);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Called during the sign-out flow to augment the cookie cleanup process.
|
||||
/// </summary>
|
||||
/// <param name="context">Contains information about the login session as well as information about the authentication cookie.</param>
|
||||
void ResponseSignOut(CookieResponseSignOutContext context);
|
||||
|
|
|
|||
Loading…
Reference in New Issue