{"id":22177618,"url":"https://github.com/ntidev/impersonationbundle","last_synced_at":"2025-07-15T09:09:58.340Z","repository":{"id":57029116,"uuid":"102501822","full_name":"ntidev/ImpersonationBundle","owner":"ntidev","description":"Symfony2 ImpersonationBundle.","archived":false,"fork":false,"pushed_at":"2019-07-09T12:23:50.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-03T10:52:22.118Z","etag":null,"topics":[],"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/ntidev.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":null,"support":null}},"created_at":"2017-09-05T15:58:06.000Z","updated_at":"2019-07-09T12:20:55.000Z","dependencies_parsed_at":"2022-08-23T18:50:07.451Z","dependency_job_id":null,"html_url":"https://github.com/ntidev/ImpersonationBundle","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ntidev/ImpersonationBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntidev%2FImpersonationBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntidev%2FImpersonationBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntidev%2FImpersonationBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntidev%2FImpersonationBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntidev","download_url":"https://codeload.github.com/ntidev/ImpersonationBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntidev%2FImpersonationBundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265424487,"owners_count":23762881,"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":[],"created_at":"2024-12-02T08:29:58.988Z","updated_at":"2025-07-15T09:09:58.317Z","avatar_url":"https://github.com/ntidev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NTIImpersonationBundle\n\n### Overview\n\nThis bundle lets you change the login to another user without needing the users' password. This is useful when you have a list of users and someone complains that they in particular are having a specific issue. Using this bundle you could change your login to that of the user without asking for the password.\n\n### Installation\n\n1. Install the bundle using composer:\n\n    ```\n    $ composer require ntidev/impersonation-bundle \"dev-master\"\n    ```\n\n2. Add the bundle configuration to the AppKernel\n    \n    ```\n    public function registerBundles()\n    {\n        $bundles = array(\n            ...\n            new NTI\\ImpersonationBundle\\NTIImpersonationBundle(),\n            ...\n        );\n    }\n    ```\n\n3. Setup the configuration in the ``config.yml``\n    \n    ```\n    # NTI\n    nti_impersonation:\n        redirect_route: 'deshblard'\n        user_class: 'AppBundle\\Entity\\User\\User'\n        user_class_property: 'username'\n        firewall: 'main'\n    ```\n\n4. Update the database schema\n    \n    ```\n    $ php app/console doctrine:schema:update\n    ```\n\n\n\n### Requirements\n\n1. The entity that the bundle uses is currently hard coded to AppBundle\\Entity\\User\\User and it uses the \"username\" property to find a valid user to impersonate.\n\n\n### Usage\n\n1. Generate an impersonation key\n\n    ```\n    $ php app/console nti:impersonation:generate-key [username]\n    ```\n\n2. Copy the provided key and go to the url: `/nti/impersonate/{key}`\n\n3. You will be redirected to the configured route logged in as the user for which the key was generated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntidev%2Fimpersonationbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntidev%2Fimpersonationbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntidev%2Fimpersonationbundle/lists"}