TeamFoundationOAuthService.CreateToken 方法 (TeamFoundationRequestContext, TeamFoundationIdentity, String, OAuthTokenType, String)

CreateToken将创建指定标识的新访问令牌。它将保存与提供的声明的标识。

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Public Function CreateToken ( _
    requestContext As TeamFoundationRequestContext, _
    identity As TeamFoundationIdentity, _
    clientId As String, _
    tokenType As OAuthTokenType, _
    redirectUri As String _
) As OAuthToken
public OAuthToken CreateToken(
    TeamFoundationRequestContext requestContext,
    TeamFoundationIdentity identity,
    string clientId,
    OAuthTokenType tokenType,
    string redirectUri
)

参数

  • clientId
    类型:System.String
    应用程序标记生成的用于定义。

返回值

类型:Microsoft.TeamFoundation.Framework.Server.OAuthToken

.NET Framework 安全性

请参见

参考

TeamFoundationOAuthService 类

CreateToken 重载

Microsoft.TeamFoundation.Framework.Server 命名空间