1 | import { XsuaaServiceCredentials } from './environment-accessor-types';
|
2 | import { TokenKey } from './xsuaa-service-types';
|
3 | /**
|
4 | * Deprecated since v1.49.0. Use `fetchVerificationKeys(url: string)` instead. Credentials are ignored.
|
5 | * Fetches verification keys from the XSUAA service for the given credentials.
|
6 | * @param xsuaaCredentials - Credentials of the XSUAA service instance.
|
7 | * @param jku - Value of the jku property in the JWT header. If not provided the old legacy URL xsuaaCredentials.url/token_keys is used as a fallback which will not work for subscriber accounts created after 14th of April 2020.
|
8 | * @returns An array of TokenKeys.
|
9 | */
|
10 | export declare function fetchVerificationKeys(xsuaaCredentials: XsuaaServiceCredentials, jku?: string): Promise<TokenKey[]>;
|
11 | /**
|
12 | * Deprecated since v1.49.0. Use `fetchVerificationKeys(url: string)` instead. Credentials are ignored.
|
13 | * Fetches verification keys from the XSUAA service for the given URL, with the given pair of credentials.
|
14 | * @param url - URL of the XSUAA service instance.
|
15 | * @param clientId - Client ID of the XSUAA service instance.
|
16 | * @param clientSecret - Client secret of the XSUAA service instance.
|
17 | * @returns An array of token keys.
|
18 | */
|
19 | export declare function fetchVerificationKeys(url: string, clientId: string, clientSecret: string): Promise<TokenKey[]>;
|
20 | /**
|
21 | * Fetches verification keys from the XSUAA service for the given URL.
|
22 | * @param url - URL of the XSUAA service instance.
|
23 | * @returns An array of token keys.
|
24 | */
|
25 | export declare function fetchVerificationKeys(url: string): Promise<TokenKey[]>;
|
26 | //# sourceMappingURL=verification-keys.d.ts.map |
\ | No newline at end of file |