{"id":19603553,"url":"https://github.com/limit-zero/modlrauthbundle","last_synced_at":"2026-05-07T16:05:17.570Z","repository":{"id":62517222,"uuid":"83229258","full_name":"limit-zero/ModlrAuthBundle","owner":"limit-zero","description":"Implements core authentication services for projects using as3io/modlr","archived":false,"fork":false,"pushed_at":"2017-05-16T17:31:28.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-22T19:44:00.850Z","etag":null,"topics":["authentication","modlr","symfony-bundle"],"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/limit-zero.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/Auth/AuthGeneratorInterface.php","support":null}},"created_at":"2017-02-26T18:01:19.000Z","updated_at":"2018-02-27T13:58:38.000Z","dependencies_parsed_at":"2022-11-02T10:31:11.654Z","dependency_job_id":null,"html_url":"https://github.com/limit-zero/ModlrAuthBundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/limit-zero/ModlrAuthBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limit-zero%2FModlrAuthBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limit-zero%2FModlrAuthBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limit-zero%2FModlrAuthBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limit-zero%2FModlrAuthBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/limit-zero","download_url":"https://codeload.github.com/limit-zero/ModlrAuthBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limit-zero%2FModlrAuthBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32745143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["authentication","modlr","symfony-bundle"],"created_at":"2024-11-11T09:30:07.880Z","updated_at":"2026-05-07T16:05:17.545Z","avatar_url":"https://github.com/limit-zero.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ModlrAuthBundle\nImplements core authentication services for projects using [as3io/modlr](https://github.com/as3io/modlr)\n\n## Requirements\n- You must use or replicate the supplied `core-user` [model](/Resources/config/core-user.yml.dist).\n  - You can (optionally) use the supplied `core-account` [model](/Resources/config/core-account.yml.dist).\n  \n## Installation\n\nInstall the package via composer:\n```\ncomposer require limit0/modlr-auth-bundle\n```\n\nInclude the bundle in your `AppKernel.php`:\n```php\n    public function registerBundles()\n    {\n        $bundles = [\n            // ...\n            new Limit0\\ModlrAuthBundle\\Limit0ModlrAuthBundle(),\n            // ...\n```\n\n## Configuration\n\n### Routing\nYou will need to import this bundle's routing. To prevent any potential collision issues, be sure to load it before your API is loaded in your application:\n```yml\n\nlimit0_modlr_auth:\n    resource: \"@Limit0ModlrAuthBundle/Resources/config/routing.yml\"\n    \nas3_modlr_bundle:\n    resource: \"@As3ModlrBundle/Resources/config/routing.yml\"\n    defaults:\n        _format: json\n# ...\n```\n\n### Security\nUpdate `security.yml` configuration (a [template](/Resources/config/security.yml.dist) is available):\n\nAdd the `core_user` provider:\n```yml\n    providers:\n        core_user:\n            id: modlr_auth_bundle.security.user_provider.core_user\n    # ...\n```\n\nAdd the user encoder:\n```yml\n    encoders:\n        Limit0\\Bundle\\ModlrAuthBundle\\Security\\User\\CoreUser:\n            algorithm: bcrypt\n            cost: 13\n    # ...\n```\n\nThere are two authenticators supplied, a stateless API authenticator that uses JWT:\n```yml\n    firewalls:\n        api:\n            context: core\n            pattern: ^/api\\/rest\n            provider: core_user\n            guard:\n                authenticators:\n                    - modlr_auth_bundle.security.authenticator.api\n```\n\nAnd one that uses stateful Symfony framework tokens:\n```yml\n    firewalls:\n        manage:\n            context: core\n            anonymous: ~\n            provider: core_user\n            guard:\n                authenticators:\n                    - modlr_auth_bundle.security.authenticator.core_user\n            remember_me:\n                secret: \"%secret%\"\n                lifetime: 63072000\n                name: __modlr-auth\n                always_remember_me: true\n            logout:\n                path: /api/auth/user/destroy\n                invalidate_session: false\n                success_handler: modlr_auth_bundle.security.logout_success_handler\n```\n\nOnce you've configured your firewalls, configure your access controlled paths.\n\nTo lock out the modlr API (replace `api/rest` with your configured modlr rest api prefix):\n```yml\n    access_control:\n        - { path: ^/api/auth, roles: [ IS_AUTHENTICATED_ANONYMOUSLY ] }\n        - { path: ^/api/rest, roles: [ ROLE_ADMIN\\USER ] }\n```\n\nOr locking down the entire application can be done as well:\n\n```yml\n    access_control:\n\n    access_control:\n        - { path: ^/api/auth, roles: [ IS_AUTHENTICATED_ANONYMOUSLY ] }\n        - { path: ^/, roles: [ ROLE_ADMIN\\USER ] }\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimit-zero%2Fmodlrauthbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimit-zero%2Fmodlrauthbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimit-zero%2Fmodlrauthbundle/lists"}