Auth0 user impersonation utility for when you need to see exactly what your customers see.
$ go get github.com/tj/impersonateYou'll need to set the following "global" (account level) env vars:
export AUTH0_CLIENT_ID=xxxxxxx
export AUTH0_CLIENT_SECRET=xxxxxxxTo 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 you have multiple callback URLs and want a specific redirect URI:
$ impersonate --account apex-inc --client-id xxxxx --redirect-uri 'https://foo.bar' --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