From cb316fc8e04ba2786c73d6fc9f07e1d29ca97c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Madureira?= Date: Tue, 11 Feb 2025 14:39:32 +0000 Subject: [PATCH] Added missing changeset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Madureira --- .changeset/new-dryers-cough.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/new-dryers-cough.md diff --git a/.changeset/new-dryers-cough.md b/.changeset/new-dryers-cough.md new file mode 100644 index 0000000000..9f62ac1ee5 --- /dev/null +++ b/.changeset/new-dryers-cough.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-auth-node': minor +--- + +Fixed a potential issue when using the Backstage's `PassportOAuthAuthenticatorHelper` to implement a custom OAuth Authenticator. The issue occurs during the start stage of the authorization process when the custom `passport.Strategy` calls the `error()` to propagate an error message. Because the `error` function wasn't being set Backstage would throw a `this.error is not a function` error thus hiding the original cause.