Partager via


ClaimsProvider Class

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class ClaimsProvider _
    Implements IIdentityProvider
public class ClaimsProvider : IIdentityProvider
public ref class ClaimsProvider : IIdentityProvider
type ClaimsProvider =  
    class 
        interface IIdentityProvider 
    end
public class ClaimsProvider implements IIdentityProvider

The ClaimsProvider type exposes the following members.

Constructors

  Name Description
Public method ClaimsProvider

Top

Properties

  Name Description
Public property AvailableIdentityAttributes
Public property IsSyncable

Top

Methods

  Name Description
Public method CreateDescriptor(TeamFoundationRequestContext, IIdentity) Create Descriptor from IIdentity instance provided by ASP.NET for authenticated user (through web request's HttpContext.User.Identity property).
Public method CreateDescriptor(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 method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetIdentity Get the identity from the ASP.NET identity source
Public method GetPossibleIdentityTypes
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ServiceStart
Public method SupportedIdentityTypes Get 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 method SyncMembers
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TrySyncIdentity

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.Services.Identity Namespace