#32 - Port comment and flow cleanup from Katana.

This commit is contained in:
Chris Ross 2014-09-12 14:42:55 -07:00
parent 55f8b9d41d
commit 07b3fe2135
4 changed files with 6 additions and 6 deletions

View File

@ -210,7 +210,7 @@ namespace Microsoft.AspNet.Security.Cookies
Context, Context,
Options.CookieName, Options.CookieName,
cookieValue, cookieValue,
cookieOptions); signInContext.CookieOptions);
var signedInContext = new CookieResponseSignedInContext( var signedInContext = new CookieResponseSignedInContext(
Context, Context,
@ -238,7 +238,7 @@ namespace Microsoft.AspNet.Security.Cookies
Options.CookieManager.DeleteCookie( Options.CookieManager.DeleteCookie(
Context, Context,
Options.CookieName, Options.CookieName,
cookieOptions); context.CookieOptions);
} }
else if (_shouldRenew) else if (_shouldRenew)
{ {

View File

@ -95,10 +95,10 @@ namespace Microsoft.AspNet.Security.Cookies
} }
/// <summary> /// <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> /// </summary>
/// <param name="context">Contains information about the event</param> /// <param name="context">Contains information about the event</param>
public void ApplyRedirect(CookieApplyRedirectContext context) public virtual void ApplyRedirect(CookieApplyRedirectContext context)
{ {
OnApplyRedirect.Invoke(context); OnApplyRedirect.Invoke(context);
} }

View File

@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Security.Cookies
/// <summary> /// <summary>
/// The options for creating the outgoing cookie. /// 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> /// </summary>
public CookieOptions CookieOptions public CookieOptions CookieOptions
{ {

View File

@ -39,7 +39,7 @@ namespace Microsoft.AspNet.Security.Cookies
void ApplyRedirect(CookieApplyRedirectContext context); void ApplyRedirect(CookieApplyRedirectContext context);
/// <summary> /// <summary>
/// /// Called during the sign-out flow to augment the cookie cleanup process.
/// </summary> /// </summary>
/// <param name="context">Contains information about the login session as well as information about the authentication cookie.</param> /// <param name="context">Contains information about the login session as well as information about the authentication cookie.</param>
void ResponseSignOut(CookieResponseSignOutContext context); void ResponseSignOut(CookieResponseSignOutContext context);