From 61edb857042f9006404baf2616632a2e2116030d Mon Sep 17 00:00:00 2001 From: Fabio Torchetti Date: Mon, 27 Jun 2022 10:07:59 -0500 Subject: [PATCH] Naming chnage; fix release size Signed-off-by: Fabio Torchetti --- .changeset/plenty-clouds-guess.md | 2 +- plugins/auth-backend/src/service/router.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.changeset/plenty-clouds-guess.md b/.changeset/plenty-clouds-guess.md index 9ef7d00463..cc56bd604d 100644 --- a/.changeset/plenty-clouds-guess.md +++ b/.changeset/plenty-clouds-guess.md @@ -1,5 +1,5 @@ --- -'@backstage/plugin-auth-backend': minor +'@backstage/plugin-auth-backend': patch --- Added an option for the auth backend router to select the algorithm for the JWT token signing keys diff --git a/plugins/auth-backend/src/service/router.ts b/plugins/auth-backend/src/service/router.ts index ecd7f725a6..2232eeaa81 100644 --- a/plugins/auth-backend/src/service/router.ts +++ b/plugins/auth-backend/src/service/router.ts @@ -44,7 +44,7 @@ export interface RouterOptions { config: Config; discovery: PluginEndpointDiscovery; tokenManager: TokenManager; - tokenKeyAlgorithm?: string; + tokenFactoryAlgorithm?: string; providerFactories?: ProviderFactories; } @@ -57,7 +57,7 @@ export async function createRouter( discovery, database, tokenManager, - tokenKeyAlgorithm, + tokenFactoryAlgorithm, providerFactories, } = options; const router = Router(); @@ -73,7 +73,7 @@ export async function createRouter( keyStore, keyDurationSeconds, logger: logger.child({ component: 'token-factory' }), - algorithm: tokenKeyAlgorithm, + algorithm: tokenFactoryAlgorithm, }); const catalogApi = new CatalogClient({ discoveryApi: discovery });