Szerkesztés

Megosztás a következőn keresztül:


ClaimsAuthenticationManager.Authenticate(String, ClaimsPrincipal) Method

Definition

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.

public:
 virtual System::Security::Claims::ClaimsPrincipal ^ Authenticate(System::String ^ resourceName, System::Security::Claims::ClaimsPrincipal ^ incomingPrincipal);
public virtual System.Security.Claims.ClaimsPrincipal Authenticate (string resourceName, System.Security.Claims.ClaimsPrincipal incomingPrincipal);
abstract member Authenticate : string * System.Security.Claims.ClaimsPrincipal -> System.Security.Claims.ClaimsPrincipal
override this.Authenticate : string * System.Security.Claims.ClaimsPrincipal -> System.Security.Claims.ClaimsPrincipal
Public Overridable Function Authenticate (resourceName As String, incomingPrincipal As ClaimsPrincipal) As ClaimsPrincipal

Parameters

resourceName
String

The address of the resource that is being requested.

incomingPrincipal
ClaimsPrincipal

The claims principal that represents the authenticated user that is attempting to access the resource.

Returns

A claims principal that contains any modifications necessary for the RP application. The default implementation returns the incoming claims principal unmodified.

Remarks

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.

Applies to