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 });