ClaimsAuthenticationManager.Authenticate Method (String, ClaimsPrincipal)

.NET Framework (current version)
 

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.

Namespace:   System.Security.Claims
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public virtual ClaimsPrincipal Authenticate(
	string resourceName,
	ClaimsPrincipal incomingPrincipal
)

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.ClaimsPrincipal

A 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.

.NET Framework
Available since 4.5
Return to top
Show: