C# Class Dev2.Security.ClientAuthorizationService

Inheritance: Dev2.Services.Security.AuthorizationServiceBase
Mostra file Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
ClientAuthorizationService ( ISecurityService securityService, bool isLocalConnection ) : System
GetResourcePermissions ( System.Guid resourceId ) : Permissions
IsAuthorized ( System.Security.Claims.AuthorizationContext context, string resource ) : bool
IsAuthorized ( IAuthorizationRequest request ) : bool

Protected Methods

Method Description
GetGroupPermissions ( IPrincipal principal, string resource ) : IEnumerable
OnDisposed ( ) : void

Method Details

ClientAuthorizationService() public method

public ClientAuthorizationService ( ISecurityService securityService, bool isLocalConnection ) : System
securityService ISecurityService
isLocalConnection bool
return System

GetGroupPermissions() protected method

protected GetGroupPermissions ( IPrincipal principal, string resource ) : IEnumerable
principal IPrincipal
resource string
return IEnumerable

GetResourcePermissions() public method

public GetResourcePermissions ( System.Guid resourceId ) : Permissions
resourceId System.Guid
return Permissions

IsAuthorized() public method

public IsAuthorized ( System.Security.Claims.AuthorizationContext context, string resource ) : bool
context System.Security.Claims.AuthorizationContext
resource string
return bool

IsAuthorized() public method

public IsAuthorized ( IAuthorizationRequest request ) : bool
request IAuthorizationRequest
return bool

OnDisposed() protected method

protected OnDisposed ( ) : void
return void