C# Class Thinktecture.IdentityModel.Claims.ExtendedServiceAuthorizationManager

This class extends the WIF service authorization manager to support the T:Thinktecture.IdentityModel.Claims.ExtendedClaimsAuthorizationManager
Inheritance: IdentityModelServiceAuthorizationManager
Mostrar archivo Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method Description
CheckAccess ( System.ServiceModel.OperationContext operationContext, Message &message ) : bool

Checks authorization for the given operation context when access to a message is required.

Protected Methods

Method Description
CheckMessage ( Message &message, System.ServiceModel.OperationContext operationContext, IClaimsPrincipal principal ) : bool

This method checks if a ExtendedClaimsAuthorizationManager is registered. If yes, it gets called to get a chance to inspect or modify message content.

GetCustomPrincipal ( System.ServiceModel.OperationContext operationContext, IClaimsPrincipal principal ) : IClaimsPrincipal

This method checks if a ExtendedClaimsAuthorizationManager is registered. If yes it gets called for an opportunity to supply a custom IClaimsPrincipal implementation

Private Methods

Method Description
CheckClaimsAuthorizationManager ( System.ServiceModel.OperationContext operationContext ) : bool
GetFederatedServiceCredentials ( ) : FederatedServiceCredentials
GetPrincipal ( System.ServiceModel.OperationContext operationContext ) : IClaimsPrincipal
SetPrincipal ( System.ServiceModel.OperationContext operationContext, IClaimsPrincipal principal ) : void
SetSecurityContext ( System.ServiceModel.OperationContext operationContext ) : void

Method Details

CheckAccess() public method

Checks authorization for the given operation context when access to a message is required.
public CheckAccess ( System.ServiceModel.OperationContext operationContext, Message &message ) : bool
operationContext System.ServiceModel.OperationContext The .
message Message The to be examined to determine authorization.
return bool

CheckMessage() protected method

This method checks if a ExtendedClaimsAuthorizationManager is registered. If yes, it gets called to get a chance to inspect or modify message content.
protected CheckMessage ( Message &message, System.ServiceModel.OperationContext operationContext, IClaimsPrincipal principal ) : bool
message Message The message.
operationContext System.ServiceModel.OperationContext The operation context.
principal IClaimsPrincipal The principal.
return bool

GetCustomPrincipal() protected method

This method checks if a ExtendedClaimsAuthorizationManager is registered. If yes it gets called for an opportunity to supply a custom IClaimsPrincipal implementation
protected GetCustomPrincipal ( System.ServiceModel.OperationContext operationContext, IClaimsPrincipal principal ) : IClaimsPrincipal
operationContext System.ServiceModel.OperationContext The operation context.
principal IClaimsPrincipal The principal.
return IClaimsPrincipal