make IdentityClient.listPublicKeys private

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-02-08 11:25:13 +01:00
parent 143ada0056
commit 6bc86fcf2d
4 changed files with 8 additions and 7 deletions
@@ -83,7 +83,7 @@ describe('IdentityClient', () => {
it('should use the correct endpoint', async () => {
await factory.issueToken({ claims: { sub: 'foo' } });
const keys = await factory.listPublicKeys();
const response = await client.listPublicKeys();
const response = await (client as any).listPublicKeys();
expect(response).toEqual(keys);
});
@@ -257,7 +257,7 @@ describe('IdentityClient', () => {
});
it('should use the correct endpoint', async () => {
const response = await client.listPublicKeys();
const response = await (client as any).listPublicKeys();
expect(response).toEqual(defaultServiceResponse);
});
});
@@ -125,7 +125,7 @@ export class IdentityClient {
/**
* Lists public part of keys used to sign Backstage Identity tokens
*/
async listPublicKeys(): Promise<{
private async listPublicKeys(): Promise<{
keys: JSONWebKey[];
}> {
const url = `${await this.discovery.getBaseUrl(