Merge pull request #19232 from awanlin/topic/resolve-redirect-flow-error

Resolve redirect flow error
This commit is contained in:
Fredrik Adelöw
2023-08-07 11:15:34 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend': patch
---
Updated `frameHandler` to return `undefined` when using the redirect flow instead of returning `postMessageReponse` which was causing errors
@@ -187,6 +187,7 @@ export class OAuthAdapter implements AuthProviderRouteHandlers {
);
}
res.redirect(state.redirectUrl);
return undefined;
}
// post message back to popup if successful
return postMessageResponse(res, appOrigin, responseObj);