[
https://issues.apache.org/jira/browse/OFBIZ-10515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16576774#comment-16576774 ]
Gil Portenseigne commented on OFBIZ-10515:
------------------------------------------
Here is a patch providing the impersonate feature. You need also to copy the png into ‘themes/common-theme/webapp/images/img/’
To test it :
* {{./gradlew loadAll ofbiz}} : to load seed and demo data
* Connect to partyMgr with admin/ofbiz
* Look for DemoEmployee party and go to his profile page
* Click on impersonate button :
!impersonateButton.png|width=998,height=269!
* Have Fun ! You can see that you have on the bottom right corner an icon indicating you are impersonating, and there you can come back to your original user.
!ImpersonationWidget.png|width=378,height=262!
This is a basic demo feature, we currently are using it for one of our customer and find that very handy when a customer meet an issue. We can more easily reproduce it, impersonating his login, without asking for the password.
> Impersonation of userLogin feature
> ----------------------------------
>
> Key: OFBIZ-10515
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10515> Project: OFBiz
> Issue Type: Improvement
> Affects Versions: Trunk
> Reporter: Gil Portenseigne
> Assignee: Gil Portenseigne
> Priority: Minor
> Fix For: Upcoming Branch
>
> Attachments: ImpersonationWidget.png, OFBIZ-10515.patch, impersonate-ico.png, impersonateButton.png
>
>
> This JIRA introduce a new feature that allow the impersonation of a login by an authorized user.
> This is implemeted with :·
> * A new service ‘userImpersonate’ that will check security, store impersonation in UserLoginHistory, and return the new session
> * Events ‘userImpersonate’ and ‘userDepersonate’ that will allow impersonation/depersonation action persisting current user session
> * A new modal widget in the common-theme that inform the user about ‘impersonation in process’ and offering a way to depersonate.
> * A new field in UserLoginHistory to store impersonation originator
> * A button in party viewprofile page to illustrate the feature
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)