Permalink
Cannot retrieve contributors at this time
25 lines (25 sloc)
957 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/@azure/ms-rest-js/es/lib/credentials/tokenCredentials.d.ts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { WebResourceLike } from "../webResource"; | |
import { ServiceClientCredentials } from "./serviceClientCredentials"; | |
/** | |
* A credentials object that uses a token string and a authorzation scheme to authenticate. | |
*/ | |
export declare class TokenCredentials implements ServiceClientCredentials { | |
token: string; | |
authorizationScheme: string; | |
/** | |
* Creates a new TokenCredentials object. | |
* | |
* @constructor | |
* @param {string} token The token. | |
* @param {string} [authorizationScheme] The authorization scheme. | |
*/ | |
constructor(token: string, authorizationScheme?: string); | |
/** | |
* Signs a request with the Authentication header. | |
* | |
* @param {WebResourceLike} webResource The WebResourceLike to be signed. | |
* @return {Promise<WebResourceLike>} The signed request object. | |
*/ | |
signRequest(webResource: WebResourceLike): Promise<WebResourceLike>; | |
} | |
//# sourceMappingURL=tokenCredentials.d.ts.map |