{"id":15026230,"url":"https://github.com/rdey/stormpathbundle","last_synced_at":"2025-07-04T16:07:06.958Z","repository":{"id":30897252,"uuid":"34455018","full_name":"rdey/StormpathBundle","owner":"rdey","description":"A bundle for integrating Stormpath with Symfony","archived":false,"fork":false,"pushed_at":"2016-11-15T11:36:01.000Z","size":74,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":14,"default_branch":"dev","last_synced_at":"2025-04-09T20:30:29.255Z","etag":null,"topics":["bundle","php71","php72","php73","php74","php80","php81","php82","sf34"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"Security/Authentication/StormpathUsernamePasswordAuthenticationProvider.php","support":null}},"created_at":"2015-04-23T12:31:12.000Z","updated_at":"2023-01-10T12:27:07.000Z","dependencies_parsed_at":"2022-09-07T15:01:33.624Z","dependency_job_id":null,"html_url":"https://github.com/rdey/StormpathBundle","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rdey/StormpathBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdey%2FStormpathBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdey%2FStormpathBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdey%2FStormpathBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdey%2FStormpathBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdey","download_url":"https://codeload.github.com/rdey/StormpathBundle/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdey%2FStormpathBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263573262,"owners_count":23482616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle","php71","php72","php73","php74","php80","php81","php82","sf34"],"created_at":"2024-09-24T20:04:07.663Z","updated_at":"2025-07-04T16:07:06.928Z","avatar_url":"https://github.com/rdey.png","language":"PHP","readme":"# RedeyeStormpathBundle\n\nThis bundle integrates Stormpath into Symfony.\n\n## Installation via Composer\n\n    composer require redeye/stormpath-bundle\n\n## Configuration\nRegister the bundle:\n\n```php\n\u003c?php\n// app/AppKernel.php\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Redeye\\StormpathBundle\\RedeyeStormpathBundle(),\n    );\n    // ...\n}\n```\n\nGet your `stormpath.properties` file and drop it somewhere convenient, like `app/config/`.\n\nUse this as a sample minimal bundle configuration:\n\n```yaml\n# app/config/config.yml\nredeye_stormpath:\n    client:\n        api_key_file: %kernel.root_dir%/config/stormpath.properties\n```\n\nWhereas this would be a more complete configuration:\n\n```yaml\n# app/config/config.yml\nredeye_stormpath:\n    client:\n        api_key_file: %kernel.root_dir%/config/stormpath.properties\n        cache:\n            type: redis # or array, memcached, null, service\n            redis:\n                host: 127.0.0.1\n                port: 6379\n            memcached:\n            \t- { host: 127.0.0.1, port: 11211, weight: 1 }\n            service: your_own_psr_6_cache\n            ttl: 60\n            tti: 120\n        tentant_href: https://api.stormpath.com/v1/tenants/123abc\n        default_application_href: https://api.stormpath.com/v1/applications/124abd\n    resource_registries:\n        groups:\n            mygroup: https://api.stormpath.com/v1/groups/111aaa\n\n```\n\n## Usage\n\nThe bundle comes with a Stormpath user provider and two Stormpath authenticators, one for HTTP Basic and one for Form login.\n\nHere's an example security.yml using the form login:\n\n```yaml\n# app/config/security.yml\nsecurity:\n    encoders:\n        Symfony\\Component\\Security\\Core\\User\\User: plaintext\n\n    providers:\n        stormpath:\n            id: redeye_stormpath.security.user_provider\n\n    firewalls:\n        dev:\n            pattern: ^/(_(profiler|wdt)|css|images|js)/\n            security: false\n        main:\n            pattern: ^/\n            anonymous: true\n            stormpath_form_login:\n                login_path: login\n                check_path: login_check\n            logout:\n                path: logout\n                target: /\n\n    access_control:\n        - { path: ^/login, role: IS_AUTHENTICATED_ANONYMOUSLY }\n        - { path: ^/, role: ROLE_ADMIN }\n```\n\n## Nice to haves\n\nThis bundle features a few nice-to-haves:\n\n* Setting the `tenant_href` config setting saves a Stormpath API call per request\n* Setting either `default_application_name` or `default_application_href` saves another Stormpath API call per request\n* 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` or `redeye_stormpath.resource_registry.directory_href`) and call e.g. `$href = $registry-\u003eget('mygroup');` to get the appropriate href.\n* 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.\n\n## Not yet implemented\n\nThere's still a bunch of things not yet implemented in the bundle. These include (but the list is not exhaustive):\n\n* Social login\n* ID Sites (for SSO)\n* SAML\n* Token Auth\n* MFA\n* Active Directory\n\nWe do accept pull requests, if you need one of these features and feel up to implement it.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdey%2Fstormpathbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdey%2Fstormpathbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdey%2Fstormpathbundle/lists"}