Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed mentions of CookieAuthentication class from README.md

  • Loading branch information...
commit 4a9d409031df68430aec7339a424196a93effed3 1 parent 5a490cc
@mehrdada mehrdada authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 README.md
View
7 README.md
@@ -50,10 +50,11 @@ In code, you need to add a `using` directive:
using AppHarbor.Web.Security;
and instead of using `FormsAuthentication` class (and its `SetAuthCookie`
-and `SignOut` methods), you should use [`CookieAuthentication`](https://github.com/appharbor/AppHarbor.Web.Security/blob/master/AppHarbor.Web.Security/CookieAuthentication.cs):
+and `SignOut` methods), you should use an instance of [`CookieAuthenticator`](https://github.com/appharbor/AppHarbor.Web.Security/blob/master/AppHarbor.Web.Security/CookieAuthenticator.cs) class:
- CookieAuthentication.SetAuthCookie(userName, rememberMe);
- CookieAuthentication.SignOut();
+ IAuthenticator authenticator = new CookieAuthenticator(); // or grab one from your IoC container
+ authenticator.SetCookie(userName, rememberMe);
+ authenticator.SignOut();
# How It Works #
Please sign in to comment.
Something went wrong with that request. Please try again.