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

Fix sail port #68

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

raphaelcangucu
Copy link

@raphaelcangucu raphaelcangucu commented Jun 6, 2023

Just a small fix to work behind a Laravel Sail environment.

The SAIL always start the internal PHP server at port 80, and sometimes we run the SAIL on a different port, in my case it was to have 2 envs running in my machine. One for the IDP (port 80) and other to the SP (port 8888).

So the the code was getting always the 80 port from the internal PHP Server and trying to access the IDP server intead of the SP.

To fix this, I just added a new configuration at them config file to set the port if exists with the default value getting the APP_PORT from laravel's .env file.

@@ -46,7 +46,6 @@ public function metadata(Auth $auth)
public function acs(Auth $auth)
{
$errors = $auth->acs();

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change isn't relevant to the PR.

@breart
Copy link
Collaborator

breart commented Nov 26, 2023

Looks good! Please remove one change related to the formatting and I'll merge this.

@ockstadt
Copy link

Hi @raphaelcangucu ,

I'm eagerly waiting for your change to be part of the package. Would you please remove the change in src/Http/Controllers/Saml2Controller.php so breart can continue?

Thank you for this fix!

Best regards

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.

3 participants