ClaimsAuthenticationManager.Authenticate Method (String, ClaimsPrincipal)
When overridden in a derived class, returns a ClaimsPrincipal object consistent with the requirements of the RP application. The default implementation does not modify the incoming ClaimsPrincipal.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
abstract Authenticate : resourceName:string * incomingPrincipal:ClaimsPrincipal -> ClaimsPrincipal override Authenticate : resourceName:string * incomingPrincipal:ClaimsPrincipal -> ClaimsPrincipal
Parameters
- resourceName
-
Type:
System.String
The address of the resource that is being requested.
- incomingPrincipal
-
Type:
System.Security.Claims.ClaimsPrincipal
The claims principal that represents the authenticated user that is attempting to access the resource.
Return Value
Type: System.Security.Claims.ClaimsPrincipalA claims principal that contains any modifications necessary for the RP application. The default implementation returns the incoming claims principal unmodified.
The Authenticate method is called from the request processing pipeline You can override this method in a derived class to filter, modify, or inject claims into the claims principal according to the policy of your RP application. Depending on the requirements of the RP application, you can even return a custom implementation of ClaimsPrincipal.
Available since 4.5