neznajki / json-rpc-authorization
authorization for json rpc
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/neznajki/json-rpc-authorization
Requires
- neznajki/json-rpc-common: ^1.0
Requires (Dev)
- symfony/dependency-injection: ^4.3
- symfony/security: ^4.3
README
makes authorization for json rpc
bundle installation
- composer require neznajki/json-rpc-authorization
- services.yaml
imports: - { resource: '@JsonRpcAuthBundle/Resources/config/services.yaml' }
- security.yaml
providers: #... jsonRpcProvider: id: JsonRpcAuthorizationBundle\Service\DefaultUserProviderService firewalls: #... jsonRpc: pattern: ^/jsonRpc provider: jsonRpcProvider guard: authenticators: - JsonRpcAuthorizationBundle\Service\AuthenticationService access_control: #... - { path: '^/jsonRpc', roles: ROLE_RPC_USER}
- parameters.yaml
pareameters: server.json.rpc.user.name: authorization server.json.rpc.user.password: qwerty