{"id":15080897,"url":"https://github.com/athlan/revive-symfony-security-bundle","last_synced_at":"2026-01-03T15:04:53.125Z","repository":{"id":62489160,"uuid":"62181746","full_name":"athlan/revive-symfony-security-bundle","owner":"athlan","description":"Revive Symfony Security integration bundle","archived":false,"fork":false,"pushed_at":"2016-07-13T20:04:44.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T05:42:15.677Z","etag":null,"topics":["authentication","authorization","revive","revive-adserver","security","symfony-bundle"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/athlan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-28T23:58:23.000Z","updated_at":"2017-08-12T10:14:59.000Z","dependencies_parsed_at":"2022-11-02T11:16:01.749Z","dependency_job_id":null,"html_url":"https://github.com/athlan/revive-symfony-security-bundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Frevive-symfony-security-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Frevive-symfony-security-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Frevive-symfony-security-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athlan%2Frevive-symfony-security-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athlan","download_url":"https://codeload.github.com/athlan/revive-symfony-security-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918629,"owners_count":20368745,"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":["authentication","authorization","revive","revive-adserver","security","symfony-bundle"],"created_at":"2024-09-25T05:32:45.399Z","updated_at":"2026-01-03T15:04:53.100Z","avatar_url":"https://github.com/athlan.png","language":"PHP","readme":"# Revive Symfony Security integration bundle\n\n![travis](https://img.shields.io/travis/athlan/revive-symfony-security-bundle/master.svg)\n![license](https://img.shields.io/packagist/l/athlan/revive-symfony-security-bundle.svg)\n![version](https://img.shields.io/packagist/v/athlan/revive-symfony-security-bundle.svg)\n\nThis bundle allows you to enable Symfony Security authentication by providing Revive Aderver credentials.\n\nIt allow you to build custom tools around Revive in Symfony Framework.\n\n# Installation\n\n1. Add composer dependency\n\n```\n    \"require\": {\n        // ...\n\n        \"athlan/revive-symfony-security-bundle\": \"1.0.0\"\n\n        // ...\n    },\n```\n\n2. Add bundle to `AppKernel.php`\n\n```\n    public function registerBundles()\n    {\n        $bundles = [\n        \n            // ...\n            \n            new Revive\\ReviveAuthenticationBundle\\ReviveAuthenticationBundle(),\n            \n            // ...\n\n```\n\n3. Define several services in your container:\n\n```\nservices:\n    # create user session repository service\n    revive_user_sessions:\n        parent: revive_authentication.repository.user_session.xml_rpc\n        arguments:\n            # you can provide here custom configured xml_rpc client or get the existing pre-configured one\n            - \"@revive_authentication.xml_rpc.client\"\n\n            # address to your Revive xml-rpc\n            # Example: http://domain.com/www/api/v2/xmlrpc/\n            # you can use parameter mechanism here\n            - \"%revive_service_url%\"\n\n    # create form-autehnticacor that exchanges UsernamePasswordToken from user provided form\n    # to ReviveAuthenticationToken\n    revive_authenticator:\n        parent: revive_authentication.authenticator.login_form_authenticator\n        arguments: [\"@revive_user_sessions\"]\n\n    # create logout listener to destroy remote sessions (optional, but recommended)\n    revive_authenticator_logout_handler:\n        parent: revive_authentication.authenticator.logout_handler\n        arguments: [\"@revive_user_sessions\"]\n\n```\n\n4. Configure security.yml\n\n```\nsecurity:\n    # regiter Revive user provider\n    providers:\n        revive:\n            id: revive_authentication.user_provider.revive_user_prototype\n\n    firewalls:\n        main:\n            anonymous: ~\n            simple_form:\n                # regiter Revive form authenticator\n                authenticator: revive_authenticator\n                check_path: /login\n                login_path: /login\n                csrf_token_generator: security.csrf.token_manager\n            logout:\n                path: /logout\n                target: /\n                handlers: [ revive_authenticator_logout_handler ]\n\n    access_control:\n        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }\n        - { path: ^/, roles: IS_AUTHENTICATED_FULLY }\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathlan%2Frevive-symfony-security-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathlan%2Frevive-symfony-security-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathlan%2Frevive-symfony-security-bundle/lists"}