SPClaimsAuthenticationManager.Authenticate method

Confirms the security context of the user on whose behalf the code is running.

Namespace:  Microsoft.SharePoint.IdentityModel
Assembly:  Microsoft.SharePoint.IdentityModel (in Microsoft.SharePoint.IdentityModel.dll)

public override IClaimsPrincipal Authenticate(
	string resourceName,
	IClaimsPrincipal incomingPrincipal
)

Parameters

resourceName
Type: System.String

The address to which the request was sent.

incomingPrincipal
Type: IClaimsPrincipal

The credentials presented by the client, in the form of a SecurityToken, to access a resource at resourceName.

Return value

Type: IClaimsPrincipal
The principal given to the method.

ExceptionCondition
ArgumentNullException

incomingPrincipal is null .

This override checks the incoming principal to return the correct principal. If the user is authenticated, this override calls the Authenticate() method of the base class to get the principal specified by incomingPrincipal; otherwise, this override returns the anonymous principal.

Show: