Freigeben über


TeamFoundationOAuthService.GetIdentityFromToken Method

GetIdentityFromToken is used to retrieve the identity the supplied token is associated with. If the token is not a valid token null will be returned.

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

Syntax

'Declaration
Public Function GetIdentityFromToken ( _
    requestContext As TeamFoundationRequestContext, _
    token As OAuthToken _
) As Identity
public Identity GetIdentityFromToken(
    TeamFoundationRequestContext requestContext,
    OAuthToken token
)
public:
Identity^ GetIdentityFromToken(
    TeamFoundationRequestContext^ requestContext, 
    OAuthToken^ token
)
member GetIdentityFromToken : 
        requestContext:TeamFoundationRequestContext * 
        token:OAuthToken -> Identity
public function GetIdentityFromToken(
    requestContext : TeamFoundationRequestContext, 
    token : OAuthToken
) : Identity

Parameters

Return Value

Type: Microsoft.VisualStudio.Services.Identity.Identity
The Identity associated with the supplied token.

.NET Framework Security

See Also

Reference

TeamFoundationOAuthService Class

Microsoft.TeamFoundation.Framework.Server Namespace