Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Add access request enabled check in backend redirect#62472

Merged
gabtorre merged 8 commits into
mainfrom
gabe/fix-oatuh-redirect-access-request
May 7, 2024
Merged

Add access request enabled check in backend redirect#62472
gabtorre merged 8 commits into
mainfrom
gabe/fix-oatuh-redirect-access-request

Conversation

@gabtorre

@gabtorre gabtorre commented May 6, 2024

Copy link
Copy Markdown
Contributor

Updates the OAuth redirect logic based on access request settings.

Currently, users without the sign-out token are redirected to OAuth login and can't make access requests.

Adjusted the OAuth middleware to prevent redirects to the sign-in page when access requests are enabled.

Test plan

Updated middleware tests to handle scenarios where access requests are either enabled or disabled.

@cla-bot cla-bot Bot added the cla-signed label May 6, 2024
@gabtorre gabtorre marked this pull request as ready for review May 7, 2024 02:38

@pjlast pjlast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This seems to be a better place for the check than the front-end, and handles the front-end check as well.

@gabtorre gabtorre merged commit 99f49a4 into main May 7, 2024
@gabtorre gabtorre deleted the gabe/fix-oatuh-redirect-access-request branch May 7, 2024 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants