Share via


TeamFoundationOAuthService.CreateToken, méthode (TeamFoundationRequestContext, Identity, String, OAuthTokenType, String)

CreateToken crée un nouveau jeton d'accès pour l'identité spécifiée. Il sera stocké avec l'identité avec la description fournie.

Espace de noms :  Microsoft.TeamFoundation.Framework.Server
Assembly :  Microsoft.TeamFoundation.Framework.Server (dans Microsoft.TeamFoundation.Framework.Server.dll)

Syntaxe

'Déclaration
Public Function CreateToken ( _
    requestContext As TeamFoundationRequestContext, _
    identity As Identity, _
    clientId As String, _
    tokenType As OAuthTokenType, _
    redirectUri As String _
) As OAuthToken
public OAuthToken CreateToken(
    TeamFoundationRequestContext requestContext,
    Identity identity,
    string clientId,
    OAuthTokenType tokenType,
    string redirectUri
)

Paramètres

  • clientId
    Type : System.String
    Cela définit pour lequel il génère l'application le jeton.
  • redirectUri
    Type : System.String
    Uri de redirection associé au jeton.

Valeur de retour

Type : Microsoft.TeamFoundation.Framework.Server.OAuthToken
retourne OAuthToken ;

Sécurité .NET Framework

Voir aussi

Référence

TeamFoundationOAuthService Classe

CreateToken, surcharge

Microsoft.TeamFoundation.Framework.Server, espace de noms