This documentation is archived and is not being maintained.
TeamFoundationOAuthService Class
Visual Studio 2013
A service that is used to register OAuth client applications and issue OAuth delegation tokens
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))] [TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))] [TeamFoundationServiceDependency(typeof(IdentityService))] [TeamFoundationServiceDependency(typeof(TeamFoundationSecurityService))] public ref class TeamFoundationOAuthService : ITeamFoundationService
The TeamFoundationOAuthService type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | 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]. |
![]() | 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. |
![]() | DeleteApplication | Delete the application specified by the given clientId. |
![]() | DeleteToken | DeleteToken will remove a token from the store. This will revoke any privileges this token was granted. |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetApplication | Retrieve a registered application with the given clientId. |
![]() | GetApplications | Retrieve the applications that have the given clientIds |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetIdentityFromToken | 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. |
![]() | GetToken | GetToken is used to retrieve the details associated with a token. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | QueryApplications | Query all registed applications including an optional identity filter (to return only applications registered by a given user) |
![]() | QueryAuthorizedApplications | Get the list of applications that have outstanding token grants for a particular identity |
![]() | QueryRelatedTokens | Retrieve the set of tokens which were sourced from the given token (e.g. Access + Refresh tokens sourced from a given Auth token, Access token sourced from a given Refresh token) |
![]() | QueryTokens | QueryTokens is used to retrieve the set of access tokens associated with a given identity within the given host. |
![]() | RegisterApplication | Register an application that has the given properties |
![]() | RevokeApplication | Revokes any tokens associated with the given application for the user |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UpdateApplication | Update the given application. |
| Name | Description | |
|---|---|---|
![]() ![]() | ITeamFoundationService::ServiceEnd | Implementation of ITeamFoundationService.ServiceEnd |
![]() ![]() | ITeamFoundationService::ServiceStart | Implementation of ITeamFoundationService.ServiceStart |
Show:
