45 references to Roles
System.Web (36)
Security\RoleManagerModule.cs (23)
68
if (
Roles
.Enabled) {
82
if (!
Roles
.Enabled) {
100
if (
Roles
.CacheRolesInCookie)
102
if (context.User.Identity.IsAuthenticated && (!
Roles
.CookieRequireSSL || context.Request.IsSecureConnection))
107
HttpCookie cookie = context.Request.Cookies[
Roles
.CookieName];
113
Roles
.DeleteCookie();
116
if (!String.IsNullOrEmpty(
Roles
.CookiePath) &&
Roles
.CookiePath != "/") {
117
cookie.Path =
Roles
.CookiePath;
120
cookie.Domain =
Roles
.Domain;
129
if (context.Request.Cookies[
Roles
.CookieName] != null)
130
Roles
.DeleteCookie();
162
if (!
Roles
.Enabled || !
Roles
.CacheRolesInCookie || context.Response.HeadersWritten)
167
if (
Roles
.CookieRequireSSL && !context.Request.IsSecureConnection)
169
if (context.Request.Cookies[
Roles
.CookieName] != null)
170
Roles
.DeleteCookie();
178
Roles
.DeleteCookie();
180
HttpCookie cookie = new HttpCookie(
Roles
.CookieName, s);
182
cookie.Path =
Roles
.CookiePath;
183
cookie.Domain =
Roles
.Domain;
184
if (
Roles
.CreatePersistentCookie)
186
cookie.Secure =
Roles
.CookieRequireSSL;
Security\RolePrincipal.cs (13)
47
_ProviderName =
Roles
.Provider.Name;
71
if (
Roles
.Providers[providerName] == null)
90
if (
Roles
.Providers[_ProviderName] == null)
107
byte[] bTicket = CookieProtectionHelper.Decode(
Roles
.CookieProtectionValue, encryptedTicket, Purpose.RolePrincipal_Ticket);
162
_ExpireDate = DateTime.UtcNow.AddMinutes(
Roles
.CookieTimeout);
167
_ProviderName =
Roles
.Provider.Name;
221
public String CookiePath { get { return
Roles
.CookiePath;}} //
236
if (!
Roles
.Enabled)
242
if (_Roles.Count >
Roles
.MaxCachedResults)
269
return CookieProtectionHelper.Encode(
Roles
.CookieProtectionValue, buf, Purpose.RolePrincipal_Ticket);
276
if (!
Roles
.CookieSlidingExpiration)
303
roles =
Roles
.Providers[_ProviderName].GetRolesForUser(Identity.Name);
334
string[] roles =
Roles
.Providers[_ProviderName].GetRolesForUser(Identity.Name);
System.Web.Extensions (7)
ApplicationServices\RoleService.cs (3)
47
if (!
Roles
.Enabled) {
53
string providerName =
Roles
.Provider.Name;
57
RoleProvider provider =
Roles
.Providers[providerName];
ClientServices\ClientRolePrincipal.cs (1)
22
return System.Web.Security.
Roles
.IsUserInRole(_Identity.Name, role);
Security\RoleService.cs (2)
18
return
Roles
.GetRolesForUser();
28
return
Roles
.IsUserInRole(role);
UI\RoleServiceManager.cs (1)
117
string[] roles =
Roles
.GetRolesForUser();
System.Workflow.Activities (2)
Role\WebWorkflowRole.cs (2)
87
return System.Web.Security.
Roles
.Provider;
89
RoleProvider rp =
Roles
.Providers[this.RoleProvider];