ERR_FAILED when logging in
When logging in using OAuth, I am redirected to an error page similar to the following:
```
This site can’t be reached
The webpage at http://localhost:4567/auth/keycloak/callback?state=8a24a6ae1c767bd2f16d923e429410f11b2dc3921a0d2881bb5ea98e0464e9de43ed97818a46c1ec72f1442fe082cb9f3785bc21bbc9c7c9ec3a998ac8edaee4&session_state=8fce7142-db92-432f-8100-83abcb3119c5&iss=https%3A%2F%2Fauth.projectydev.patmos.dev%2Frealms%2Fdefault&code=fab73536-7064-4d38-ba02-311312b0cee9.8fce7142-db92-432f-8100-83abcb3119c5.4a645039-bde6-45d3-8aeb-dd47ca78a1f0 might be temporarily down or it may have moved permanently to a new web address.
ERR_FAILED
```
Specifically, this is the user flow that's occurring:
1. Click the login button
2. Click the button for Keycloak under alternative logins
3. Redirect to Keycloak
4. Enter credentials in Keycloak
5. Redirect to error page show above
6. Type localhost:4567/login in the URL bar
7. Click the button for Keycloak under alternative logins
8. Keycloak immediately redirects and I'm now logged in to NodeBB
I've tried three different OAuth plugins (this one, nodebb-plugin-fusionauth-oidc, and a fork of nodebb-plugin-sso-oauth), and the same thing happens in all of them. I've tried adding console logs to the beginning of every function in library.js in my form of nodebb-plugin-sso-oauth, and none of the console logs are showing when the error page appears. Nothing else is logged for the error page either.
关闭于 2025-02-14 2 条评论