wangzhibo
2026-05-09 53418655c061ac26f66058253f39200aced1ab1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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