Download the PHP package sofyco/facebook-security-voter-bundle without Composer
On this page you can find all versions of the php package sofyco/facebook-security-voter-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package facebook-security-voter-bundle
Facebook Security Voter Bundle
Installation
Configuration
The bundle exposes a facebook_security_voter configuration node with two
required, non-empty string arguments:
secret— Facebook App Secret; verifies thex-hub-signature-256HMAC-SHA256 header onPOSTwebhooks.signature— verify token; verifies thehub_verify_tokenquery parameter onGETverification requests.
Both options are resolved into the FacebookWebhookVoter constructor
($secret and $signature); the RequestStack argument is autowired.
Usage
The bundle registers a security voter (FacebookWebhookVoter) that grants
access when the current request is a legitimate Facebook webhook call:
GETrequests are validated against thehub_verify_tokenquery parameter;POSTrequests are validated against thex-hub-signature-256HMAC-SHA256 header.
Use the FacebookWebhookVoter::SIGNATURE attribute to protect a controller:
All versions of facebook-security-voter-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.5
symfony/framework-bundle Version ^8.0
symfony/security-bundle Version ^8.0
symfony/framework-bundle Version ^8.0
symfony/security-bundle Version ^8.0
The package sofyco/facebook-security-voter-bundle contains the following files
Loading the files please wait ...