This documentation is archived and is not being maintained.

ClaimsProvider Class

Visual Studio 2013

System.Object
  Microsoft.VisualStudio.Services.Identity.ClaimsProvider

Namespace:  Microsoft.VisualStudio.Services.Identity
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

public class ClaimsProvider : IIdentityProvider

The ClaimsProvider type exposes the following members.

  NameDescription
Public methodCreateDescriptor(TeamFoundationRequestContext, IIdentity)Create Descriptor from IIdentity instance provided by ASP.NET for authenticated user (through web request's HttpContext.User.Identity property).
Public methodCreateDescriptor(TeamFoundationRequestContext, String)A provider MAY implement CreateDescriptor if they support resolving an identities generalized display name to a descriptor. This allows TFS to take a display name for an unknown user and resolve it using the provider to a fully qualified identity. NOTE: You should return NULL if you can't resolve the display name to a unqiue user.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetIdentityGet the identity from the ASP.NET identity source
Public methodGetPossibleIdentityTypes
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodServiceStart
Public methodSupportedIdentityTypesGet the fully qualified .NET class type for the Identity type(s) that this store supplies. This is the class that implements IIdentity. An example is "System.Security.Principal.WindowsIdentity".
Public methodSyncMembers
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTrySyncIdentity
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: