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 to /login and back from a project page #923

Merged
merged 2 commits into from
Mar 28, 2016

Conversation

smashwilson
Copy link
Member

If you visit a project page directly without an active session in your browser (by clicking on a build badge in a README, for example), you'll get a 401 and an unstyled page saying nothing but "Not Authorized." I've changed middleware.project to instead redirect you to /login, give you a chance to authenticate, then redirect you back.

If you already are authenticated and don't have access to the project, the old behavior is preserved.

@knownasilya knownasilya merged commit fa3cd43 into Strider-CD:master Mar 28, 2016
@smashwilson smashwilson deleted the redirect-back-to-repo branch March 28, 2016 13:34
@knownasilya
Copy link
Member

@smashwilson would you like to be added as a contributor?

@smashwilson
Copy link
Member Author

Oh hey! Sure, why not, although my participation may be somewhat burst-y.

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

Successfully merging this pull request may close these issues.

2 participants