tj / impersonate

Auth0 user impersonation utility, see what your customers see

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Go 100.0%