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

Schema forced after successful backend sign-in #1051

Open
goldmont opened this issue Feb 9, 2024 · 1 comment
Open

Schema forced after successful backend sign-in #1051

goldmont opened this issue Feb 9, 2024 · 1 comment

Comments

@goldmont
Copy link

goldmont commented Feb 9, 2024

Winter CMS Build

dev-develop

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

No response

Issue description

Hi,

Apparently WinterCMS forces schema and port after a successful backend sign-in ignoring app.url value despite cms.linkPolicy is set to force. In the browser network tab I see that the sign-in request is sent correctly to the app.url but then the backend responds with a 302 Redirect cutting off my custom port. Thus the backend becomes unreachable and I have to enter manually the port in the browser url bar. Then I can navigate with no problem. I think that there is some problem with this line inside the Auth controller.

Steps to replicate

  1. Specify a custom port in app.url. E.g.: https://example.com:10443
  2. Sign-in into the backend.

Workaround

Enter manually the custom port in the browser url bar after a successful sign-in.

@goldmont goldmont changed the title Schema forced after successful backend login Schema forced after successful backend sign-in Feb 9, 2024
@LukeTowers
Copy link
Member

@goldmont are you able to throw a dd() on that line to see if the generated redirect response includes the port or not? If it doesn't then we should fix that.

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

No branches or pull requests

3 participants