Download the PHP package redeye/stormpath-bundle without Composer
On this page you can find all versions of the php package redeye/stormpath-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download redeye/stormpath-bundle
More information about redeye/stormpath-bundle
Files in redeye/stormpath-bundle
Package stormpath-bundle
Short Description A bundle for integrating Stormpath into Symfony
License MIT
Informations about the package stormpath-bundle
RedeyeStormpathBundle
This bundle integrates Stormpath into Symfony.
Installation via Composer
composer require redeye/stormpath-bundle
Configuration
Register the bundle:
Get your stormpath.properties
file and drop it somewhere convenient, like app/config/
.
Use this as a sample minimal bundle configuration:
Whereas this would be a more complete configuration:
Usage
The bundle comes with a Stormpath user provider and two Stormpath authenticators, one for HTTP Basic and one for Form login.
Here's an example security.yml using the form login:
Nice to haves
This bundle features a few nice-to-haves:
- Setting the
tenant_href
config setting saves a Stormpath API call per request - Setting either
default_application_name
ordefault_application_href
saves another Stormpath API call per request - Resource registries allow you to refer to Stormpath groups and directories by a chosen name rather than a long ID. To dereference, get the appropriate service (
redeye_stormpath.resource_registry.group_href
orredeye_stormpath.resource_registry.directory_href
) and call e.g.$href = $registry->get('mygroup');
to get the appropriate href. - Setting a custom data property named "role" on an application, a directory or a group, all users in that application/directory/group will get that role.
Not yet implemented
There's still a bunch of things not yet implemented in the bundle. These include (but the list is not exhaustive):
- Social login
- ID Sites (for SSO)
- SAML
- Token Auth
- MFA
- Active Directory
We do accept pull requests, if you need one of these features and feel up to implement it.
All versions of stormpath-bundle with dependencies
stormpath/sdk Version ~1.15
psr/cache Version ~1.0
symfony/framework-bundle Version ^2.6|^3.0
symfony/security-bundle Version ^2.6|^3.0