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

[4.4] Fixing API authentication issue with Apache with PHP as cgi/fastCGI #42593

Merged
merged 3 commits into from
May 17, 2024

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Jan 3, 2024

Summary of Changes

On my local system the token API authentication is not working, since the authorization header is renamed to REDIRECT_HTTP_AUTHORIZATION instead of just HTTP_AUTHORIZATION. Since our API is pretty similar to symfony, I looked at what symfony is doing and Symfony is doing the same like I'm doing here: https://github.com/symfony/symfony/blob/7.0/src/Symfony/Component/HttpFoundation/ServerBag.php#L58
Their original issue is here: symfony/symfony#1813

@SniperSister can you review this/give this a thumbs up?

Testing Instructions

I don't know how Apache needs to be actually configured to trigger this, but I hope this can be accepted by code review?

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@SniperSister
Copy link
Contributor

Fine for me :)

@richard67
Copy link
Member

@Hackwar Why for 5.0-dev? Either it's a bug fix, then it should go into 4.4-dev, or it's a new feature, then it should go into 5.1-dev. 5.0-dev only makes sense for bug fixes of bugs which affect only 5.x but not 4.4.y.

@Hackwar Hackwar changed the base branch from 5.0-dev to 4.4-dev February 5, 2024 09:57
@Hackwar
Copy link
Member Author

Hackwar commented Feb 5, 2024

I changed it to 4.4-dev

@Quy Quy removed the PR-5.0-dev label Feb 15, 2024
@Hackwar Hackwar added PBF Pizza, Bugs and Fun bug labels Feb 20, 2024
@Hackwar Hackwar changed the title [5.0] Fixing API authentication issue with Apache with PHP as cgi/fastCGI [4.4] Fixing API authentication issue with Apache with PHP as cgi/fastCGI Feb 21, 2024
@MacJoom MacJoom self-assigned this May 17, 2024
@MacJoom MacJoom added this to the Joomla! 4.4.5 milestone May 17, 2024
@MacJoom MacJoom merged commit 8bd6785 into joomla:4.4-dev May 17, 2024
3 checks passed
@MacJoom
Copy link
Contributor

MacJoom commented May 17, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PBF Pizza, Bugs and Fun PR-4.4-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants