RandallKent / 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

$ 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

Available Command-Line Flags

  --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")

Examples

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%