Commit iniziale
This commit is contained in:
43
node_modules/@azure/keyvault-common/dist/browser/parseWWWAuthenticate.d.ts
generated
vendored
Normal file
43
node_modules/@azure/keyvault-common/dist/browser/parseWWWAuthenticate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Parameters parsed out of the WWW-Authenticate header value by the parseWWWAuthenticate function.
|
||||
*/
|
||||
export interface WWWAuthenticate {
|
||||
/**
|
||||
* The authorization parameter, if present.
|
||||
*/
|
||||
authorization?: string;
|
||||
/**
|
||||
* The authorization_url parameter, if present.
|
||||
*/
|
||||
authorization_url?: string;
|
||||
/**
|
||||
* The resource parameter, if present.
|
||||
*/
|
||||
resource?: string;
|
||||
/**
|
||||
* The scope parameter, if present.
|
||||
*/
|
||||
scope?: string;
|
||||
/**
|
||||
* The tenantId parameter, if present.
|
||||
*/
|
||||
tenantId?: string;
|
||||
/**
|
||||
* The claims parameter, if present.
|
||||
*/
|
||||
claims?: string;
|
||||
/**
|
||||
* The error parameter, if present.
|
||||
*/
|
||||
error?: string;
|
||||
}
|
||||
/**
|
||||
* Parses an WWW-Authenticate response header.
|
||||
* This transforms a string value like:
|
||||
* `Bearer authorization="https://some.url/tenantId", resource="https://some.url"`
|
||||
* into an object like:
|
||||
* `{ authorization: "https://some.url/tenantId", resource: "https://some.url" }`
|
||||
* @param headerValue - String value in the WWW-Authenticate header
|
||||
*/
|
||||
export declare function parseWWWAuthenticateHeader(headerValue: string): WWWAuthenticate;
|
||||
//# sourceMappingURL=parseWWWAuthenticate.d.ts.map
|
||||
Reference in New Issue
Block a user