Download the PHP package bigz/switch-user-stateless-bundle without Composer
On this page you can find all versions of the php package bigz/switch-user-stateless-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bigz/switch-user-stateless-bundle
More information about bigz/switch-user-stateless-bundle
Files in bigz/switch-user-stateless-bundle
Package switch-user-stateless-bundle
Short Description Bundle to use impersonating on Symfony API
License MIT
Informations about the package switch-user-stateless-bundle
SwitchUserStatelessBundle
This bundle provides impersonating feature (switch user) for API use.
Install
Install this bundle through Composer:
Then, update your application kernel:
Finally, update your firewalls as following:
Configuration
You can configure the parameter used in HTTP request and role of user who switch in your config.yml. The examples below are the default values.
Usage
To use this feature, you need to add a X-Switch-User
header to issued HTTP request containing the username of the
user you want to switch:
For security reasons, this feature is only accessible for users with ROLE_ALLOWED_TO_SWITCH
permission. Admin users
have this permission by default.
Troubleshooting
All versions of switch-user-stateless-bundle with dependencies
symfony/http-kernel Version ^2.3|^3.0|^4.0|^5.0
symfony/dependency-injection Version ^2.3|^3.0|^4.0|^5.0
symfony/http-foundation Version ^2.3|^3.0|^4.0|^5.0
symfony/security-core Version ^2.3|^3.0|^4.0|^5.0
symfony/config Version ^2.3|^3.0|^4.0|^5.0
symfony/security-bundle Version ^2.3|^3.0|^4.0|^5.0
symfony/security-http Version ^2.3|^3.0|^4.0|^5.0