blob: 22db860a468c88f587cc7cf97a91eb0866ccbe1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace OpenIdProviderMvc.Code {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
public class FormsAuthenticationService : IFormsAuthentication {
public string SignedInUsername {
get { return HttpContext.Current.User.Identity.Name; }
}
public void SignIn(string userName, bool createPersistentCookie) {
FormsAuthentication.SetAuthCookie(userName, createPersistentCookie);
}
public void SignOut() {
FormsAuthentication.SignOut();
}
}
}
|