Auth0 user impersonation utility for when you need to see exactly what your customers see.
$ go get github.com/tj/impersonate
You'll need to set the following "global" (account level) env vars:
export AUTH0_CLIENT_ID=xxxxxxx
export AUTH0_CLIENT_SECRET=xxxxxxx
--account string
Account name
--callback-url string
Callback URL
--client-id string
Client ID of the application
--impersonator-id string
User ID of impersonator
--response-type string
Response Type (default "token id_token")
--scope string
OAuth scope (default "openid name user_id nickname email picture")
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'
tjholowaychuk.com · GitHub @tj · Twitter @tjholowaychuk