Partager via


TeamFoundationOAuthService.CreateToken Method

Include Protected Members
Include Inherited Members

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method CreateToken(TeamFoundationRequestContext, OAuthToken) CreateAccessToken from a sourceToken allows the caller to take an existing authorization or refresh token and create an access token. Note: If the input token is an authorization token the return tokens will have an initial accesstoken as array index [0], and a refresh token in array index [1]. If an access token is given it will be returned in array index [0].
Public method CreateToken(TeamFoundationRequestContext, Identity, String, OAuthTokenType, String) CreateToken will create a new access token for the identity specified. It will be saved with the identity with the description that was supplied.

Top

See Also

Reference

TeamFoundationOAuthService Class

Microsoft.TeamFoundation.Framework.Server Namespace