2017 © Pedro Peláez
 

symfony-bundle impersonation-bundle

Symfony NTIImpersonationBundle

image

nti/impersonation-bundle

Symfony NTIImpersonationBundle

  • Thursday, January 11, 2018
  • by ntidev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 79 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

NTIImpersonationBundle

Overview

This 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., (*1)

Installation

  1. Install the bundle using composer:, (*2)

    $ composer require ntidev/impersonation-bundle "dev-master"
    
  2. Add the bundle configuration to the AppKernel, (*3)

    public function registerBundles()
    {
        $bundles = array(
            ...
            new NTI\ImpersonationBundle\NTIImpersonationBundle(),
            ...
        );
    }
    
  3. Setup the configuration in the config.yml, (*4)

    # NTI
    nti_impersonation:
        redirect_route: 'deshblard'
        user_class: 'AppBundle\Entity\User\User'
        user_class_property: 'username'
        firewall: 'main'
    
  4. Update the database schema, (*5)

    $ php app/console doctrine:schema:update
    

Requirements

  1. 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.

Usage

  1. Generate an impersonation key, (*6)

    $ php app/console nti:impersonation:generate-key [username]
    
  2. Copy the provided key and go to the url: /nti/impersonate/{key}, (*7)

  3. You will be redirected to the configured route logged in as the user for which the key was generated., (*8)

The Versions

11/01 2018

dev-master

9999999-dev

Symfony NTIImpersonationBundle

  Sources   Download

MIT

The Requires

 

by Benjamin Vison

logbundle

01/09 2017

v1.0.0

1.0.0.0

Symfony2 Bundle to handle user impersonation

  Sources   Download

MIT

The Requires

 

by Benjamin Vison