C# Class Dev2.Services.Security.AuthorizationServiceBase

Inheritance: System.DisposableObject, IAuthorizationService
Datei anzeigen Open project: Warewolf-ESB/Warewolf

Public Properties

Property Type Description
AreAdministratorsMembersOfWarewolfAdministrators Func

Protected Properties

Property Type Description
_securityService ISecurityService

Public Methods

Method Description
DumpPermissionsOnError ( IPrincipal principal ) : void
FindGroup ( SecurityIdentifier searchSid ) : string
GetPermissions ( IPrincipal user ) : List
GetResourcePermissions ( System.Guid resourceId ) : Permissions
IsAuthorized ( System.Security.Claims.AuthorizationContext context, string resource ) : bool
IsAuthorized ( IAuthorizationRequest request ) : bool
IsAuthorized ( IPrincipal principal, System.Security.Claims.AuthorizationContext context, string resource ) : bool
JsonPermissions ( ) : string
Remove ( System.Guid resourceId ) : void

Protected Methods

Method Description
AuthorizationServiceBase ( ISecurityService securityService, bool isLocalConnection ) : System
GetGroupPermissions ( IPrincipal principal, string resource ) : IEnumerable
IsAuthorizedToConnect ( IPrincipal principal ) : bool
IsInRole ( IPrincipal principal, WindowsGroupPermission p ) : bool
OnPermissionsModified ( PermissionsModifiedEventArgs e ) : void
RaisePermissionsChanged ( ) : void

Private Methods

Method Description
DoFallBackCheck ( IPrincipal principal ) : bool
FilterAdminGroupForRemote ( List groupPermissions ) : void
GetGroupPermissions ( IPrincipal principal ) : IEnumerable
IsAuthorized ( System.Security.Claims.AuthorizationContext context, Func getGroupPermissions ) : bool

Method Details

AuthorizationServiceBase() protected method

protected AuthorizationServiceBase ( ISecurityService securityService, bool isLocalConnection ) : System
securityService ISecurityService
isLocalConnection bool
return System

DumpPermissionsOnError() public method

public DumpPermissionsOnError ( IPrincipal principal ) : void
principal IPrincipal
return void

FindGroup() public static method

public static FindGroup ( SecurityIdentifier searchSid ) : string
searchSid SecurityIdentifier
return string

GetGroupPermissions() protected method

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

GetPermissions() public method

public GetPermissions ( IPrincipal user ) : List
user IPrincipal
return List

GetResourcePermissions() public method

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

IsAuthorized() public abstract method

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

IsAuthorized() public abstract method

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

IsAuthorized() public method

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

IsAuthorizedToConnect() protected method

protected IsAuthorizedToConnect ( IPrincipal principal ) : bool
principal IPrincipal
return bool

IsInRole() protected method

protected IsInRole ( IPrincipal principal, WindowsGroupPermission p ) : bool
principal IPrincipal
p WindowsGroupPermission
return bool

JsonPermissions() public method

public JsonPermissions ( ) : string
return string

OnPermissionsModified() protected method

protected OnPermissionsModified ( PermissionsModifiedEventArgs e ) : void
e PermissionsModifiedEventArgs
return void

RaisePermissionsChanged() protected method

protected RaisePermissionsChanged ( ) : void
return void

Remove() public method

public Remove ( System.Guid resourceId ) : void
resourceId System.Guid
return void

Property Details

AreAdministratorsMembersOfWarewolfAdministrators public_oe property

public Func AreAdministratorsMembersOfWarewolfAdministrators
return Func

_securityService protected_oe property

protected ISecurityService _securityService
return ISecurityService