AntiForgeryConfig.UniqueClaimTypeIdentifier Property

If claims-based authorization is in use, gets or sets the claim type from the identity that is used to uniquely identify the user.

Namespace:  System.Web.Helpers
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Shared Property UniqueClaimTypeIdentifier As String 
    Get 
    Set
'Usage
Dim value As String 

value = AntiForgeryConfig.UniqueClaimTypeIdentifier 

AntiForgeryConfig.UniqueClaimTypeIdentifier = value
public static string UniqueClaimTypeIdentifier { get; set; }
public:
static property String^ UniqueClaimTypeIdentifier {
    String^ get ();
    void set (String^ value);
}
static member UniqueClaimTypeIdentifier : string with get, set
static function get UniqueClaimTypeIdentifier () : String 
static function set UniqueClaimTypeIdentifier (value : String)

Property Value

Type: System.String
The claim type.

Remarks

If this property is set, all claims-based identities must return unique values for this claim type.

If claims-based authorization is in use and this property has not been set, the anti-forgery system will automatically look for claim types http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier and http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider.

See Also

Reference

AntiForgeryConfig Class

System.Web.Helpers Namespace