Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect Unauthenticated Users to LoginPage instead of Blank Page #38

Open
dorbeus opened this issue Aug 29, 2023 · 1 comment
Open

Comments

@dorbeus
Copy link

dorbeus commented Aug 29, 2023

Description:

Currently, when a user is not logged in and tries to use a direct file link, they are presented with a blank page. This behavior might be confusing for users.

Expected Behavior:

When a user is not authenticated, they should be automatically redirected to the LoginPage to provide a clearer user experience.

Steps to Reproduce:

  1. Ensure you're not logged in or authenticated.
  2. Use a direct file link
  3. Observe the blank page displayed.

Suggested Solution:

Modify the route handling logic to check for user authentication and if the user is not authenticated, redirect to the LoginPage, and then to the linked file.

@pfeuffer
Copy link
Member

pfeuffer commented Sep 4, 2023

Hi @dorbeus , thanks for your report. The thing is: I cannot reproduce your issue with a normal SCM-Manager setup. As you expect, I get a login page when I try to open the file link in an anonymous browser session. I also tried this with different anonymous access options.
So the questions are: What versions of SCM-Manager and plugin do you use? Do you have any further plugins installed? Do you have other settings that might be of interest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants