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

After Upgrade, Can't Login #1608

Open
miqrogroove opened this issue Sep 4, 2024 · 5 comments
Open

After Upgrade, Can't Login #1608

miqrogroove opened this issue Sep 4, 2024 · 5 comments

Comments

@miqrogroove
Copy link
Contributor

miqrogroove commented Sep 4, 2024

I completed the schema migration for dev/php8 and got caUtils working. I even attempted a password reset and switching browsers.

Every login attempt forwards back to index.php and the login page again.

If I enter invalid credentials it will give me a "Login was invalid" banner.

When I use correct credentials it just sends me a new cookie and forwards back to the login page.

Possible clue in the app/log files. It shows a successful login immediately followed by a failed login under a different name.

Workaround:

I had to disable Auth Basic in the Apache site for now.

More info:

https://support.collectiveaccess.org/d/301733-providence-htpasswd

I don't know why Providence is reading Auth Basic credentials. This will break all of my sites.

Out of curiosity, I created Auth Basic credentials identical to the CA user. This caused a behavior change where Providence responds with an infinite redirect loop until the browser errors out. Yikes! 😧

@collectiveaccess
Copy link
Owner

We don't support basic auth. Sorry. If there's time we'll look into this at some point, but it's not a configuration we see used often (or ever to now).

@miqrogroove
Copy link
Contributor Author

Could be a documentation issue then. Upgrading 1.7 to 2.0 would require disabling any site-level authentication.

@collectiveaccess
Copy link
Owner

Any support for it in previous versions was coincidental. If it's important to you we'll try to look into it.

@miqrogroove
Copy link
Contributor Author

miqrogroove commented Sep 4, 2024

I suspect it's a conflict with some kind of vendor code in the new branch... something like a REST library that consumes authentication headers in inappropriate ways. Cloud server packages are known to do that as well. For Providence I can work around this. If I find the same problem in Pawtucket, it will be a major challenge because my archive isn't public and requires password login. I might have to set up a proxy server for the 2.0 branch.

@miqrogroove
Copy link
Contributor Author

Here's a workaround specific to Apache and PHP-FPM:

https://webmasters.stackexchange.com/questions/145619/

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