Skip to content

Rebase: Expose the request context in the FPM layer via a global variable#542

Merged
mnapoli merged 3 commits intobrefphp:masterfrom
Nyholm:pr-501
Jan 28, 2020
Merged

Rebase: Expose the request context in the FPM layer via a global variable#542
mnapoli merged 3 commits intobrefphp:masterfrom
Nyholm:pr-501

Conversation

@Nyholm
Copy link
Contributor

@Nyholm Nyholm commented Jan 26, 2020

Rebased #501, used JSON instead of adding many global variables.

It is not possible to add an array, because it needs to be serialised and sent to PHP FPM.

This will fix #506 and fix #500

pl4yradam and others added 2 commits January 26, 2020 14:06
This request context is needed if a user is using the authentication type of IAM_ROLE, when a user auths through Api Gateway it will then authorise the user and pass their information (securely as request context). At the moment the file misses this so a php function cant use the authorised details correctly.
@mnapoli
Copy link
Member

mnapoli commented Jan 28, 2020

Thanks!

I'll add documentation after the merge.

@Nyholm
Copy link
Contributor Author

Nyholm commented Jan 28, 2020

Thank you for merging

@Nyholm Nyholm deleted the pr-501 branch January 28, 2020 10:59
mnapoli added a commit that referenced this pull request Feb 14, 2023
Rebase: Expose the request context in the FPM layer via a global variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web application does not get event or context info Get the request context in PHP when using the FPM layer

3 participants