Overview
The Epic Stack with User Impersonation is a feature that allows admin users to log in as any other user without knowing their password. This feature is specifically designed to help troubleshoot any issues that a user may be experiencing in an Epic Stack application.
Features
- User Impersonation: Admin users can log in as any other user in the application.
- Troubleshooting Assistance: Helps in diagnosing and resolving issues experienced by users.
- No Password Required: The feature does not require the admin users to know the password of the user they want to impersonate.
Installation
To install the User Impersonation feature in your Epic Stack application, follow these steps:
- Get the current session ID from the cookie and store it in the session as
impersonatorSessionId.// Example code snippet impersonatorSessionId = getCurrentSessionIdFromCookie(); - Create a new session for the user you want to impersonate and store it in the cookie as
sessionId.// Example code snippet sessionId = createSessionForImpersonatedUser(); - When the admin user wants to stop impersonating, assign the
impersonatorSessionIdtosessionIdto restore the original admin session.// Example code snippet sessionId = impersonatorSessionId; - Clear the
impersonatorSessionIdfrom the cookie.// Example code snippet clearImpersonatorSessionIdFromCookie();
Summary
The User Impersonation feature in Epic Stack is a powerful tool for admin users to log in as any other user in the application, helping troubleshoot and resolve issues. With no requirement of a user’s password, the feature provides ease of use while maintaining security measures. Follow the installation guide to implement this feature in your Epic Stack application.