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 TeamFoundationIdentity
public TeamFoundationIdentity GetIdentityFromToken(
    TeamFoundationRequestContext requestContext,
    OAuthToken token
)
public:
TeamFoundationIdentity^ GetIdentityFromToken(
    TeamFoundationRequestContext^ requestContext, 
    OAuthToken^ token
)
member GetIdentityFromToken : 
        requestContext:TeamFoundationRequestContext * 
        token:OAuthToken -> TeamFoundationIdentity
public function GetIdentityFromToken(
    requestContext : TeamFoundationRequestContext, 
    token : OAuthToken
) : TeamFoundationIdentity

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationIdentity
The Identity associated with the supplied token.

.NET Framework Security

See Also

Reference

TeamFoundationOAuthService Class

Microsoft.TeamFoundation.Framework.Server Namespace