diff --git a/.changeset/rename-for-the-win.md b/.changeset/rename-for-the-win.md new file mode 100644 index 0000000000..3fb50b8be1 --- /dev/null +++ b/.changeset/rename-for-the-win.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-permission-node': patch +--- + +Improve Service-to-service url error diff --git a/plugins/permission-node/src/ServerPermissionClient.test.ts b/plugins/permission-node/src/ServerPermissionClient.test.ts index 75177af328..eb8abefc95 100644 --- a/plugins/permission-node/src/ServerPermissionClient.test.ts +++ b/plugins/permission-node/src/ServerPermissionClient.test.ts @@ -70,7 +70,7 @@ describe('ServerPermissionClient', () => { tokenManager: ServerTokenManager.noop(), }), ).toThrow( - 'Backend-to-backend authentication must be configured before enabling permissions. Read more here https://backstage.io/docs/tutorials/backend-to-backend-auth', + 'Service-to-service authentication must be configured before enabling permissions. Read more here https://backstage.io/docs/auth/service-to-service-auth', ); }); diff --git a/plugins/permission-node/src/ServerPermissionClient.ts b/plugins/permission-node/src/ServerPermissionClient.ts index 664e5a8309..6275fb835e 100644 --- a/plugins/permission-node/src/ServerPermissionClient.ts +++ b/plugins/permission-node/src/ServerPermissionClient.ts @@ -33,7 +33,7 @@ import { /** * A thin wrapper around * {@link @backstage/plugin-permission-common#PermissionClient} that allows all - * backend-to-backend requests. + * service-to-service requests. * @public */ export class ServerPermissionClient implements PermissionEvaluator { @@ -58,7 +58,7 @@ export class ServerPermissionClient implements PermissionEvaluator { (tokenManager as any).isInsecureServerTokenManager ) { throw new Error( - 'Backend-to-backend authentication must be configured before enabling permissions. Read more here https://backstage.io/docs/tutorials/backend-to-backend-auth', + 'Service-to-service authentication must be configured before enabling permissions. Read more here https://backstage.io/docs/auth/service-to-service-auth', ); }