spryker / authorization
Authorization module
Requires
- php: >=8.2
- spryker/authorization-extension: ^1.2.0
- spryker/kernel: ^3.33.0
- spryker/transfer: ^3.25.0
Requires (Dev)
Suggests
- spryker/glue-application: If you want to use the plugins.
- spryker/symfony: If you want to use the plugins.
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- dev-master / 1.0.x-dev
- 1.0.0
- dev-beta/frw-8430/master-enable-sniffers-for-3rd-party-modules
- dev-beta/app-store/develop
- dev-hotfix/testing-propel
- dev-beta/poc-contract-tests
- dev-beta/lazy_table_map_instantiation
- dev-beta/glue-backend-prototype
- dev-beta/glue-backend-prototype-v4
- dev-beta/spryker-mini-api-framework
- dev-beta/te-9873-backend-glue-application-plagin-context
- dev-beta/te-9901-extend-glue-application-module
This package is auto-updated.
Last update: 2024-12-17 15:37:09 UTC
README
Generic authorization module that can be used across different layers.
It provides the possibility to implement different authorization strategies using the Spryker\Shared\AuthorizationExtension\Dependency\Plugin\AuthorizationStrategyPluginInterface
.
The general idea is that strategies have a name and when an authorization check is requested a strategy can be requested by name. This allows it to share a single strategy coming from one module between different modules and also makes it easy to change strategies.
An authorization request is composed in this way:
AuthorizationRequestTransfer
- has one
AuthorizationIdentityTransfer
- has one
AuthorizationEntityTransfer
- has one
The identity describes accessor and the entity the object the authoriziation is checked against.
An authorization check will return an AuthorizationResponseTransfer
.
Installation
composer require spryker/authorization