Skip to content
/ impersonate Public

Auth0 user impersonation utility, see what your customers see

Notifications You must be signed in to change notification settings

tj/impersonate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

impersonate(1)

Auth0 user impersonation utility for when you need to see exactly what your customers see.

Installation

From gobinaries.com:

$ curl -sf https://gobinaries.com/tj/impersonate | sh

From source:

$ go get github.com/tj/impersonate

Setup

You'll need to set the following "global" (account level) env vars:

export AUTH0_CLIENT_ID=xxxxxxx
export AUTH0_CLIENT_SECRET=xxxxxxx

Usage

To impersonate a user pass the Client ID of your application (not your account), the "impersonator" user ID (you), and the ID of the user.

$ impersonate --account apex-inc --client-id xxxxx --impersonator-id 'github|yyy' 'github|zzz'

If this gets annoying or you have multiple applications, you may want to alias in your profile:

alias impersonate_myapp="impersonate --account apex-inc --client-id xxxxx --impersonator-id 'github|yyy'"

Then all you need is:

$ impersonate_myapp 'github|zzz'

Badges


tjholowaychuk.com  ·  GitHub @tj  ·  Twitter @tjholowaychuk

About

Auth0 user impersonation utility, see what your customers see

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages