Skip to content

noxjonas/token-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

token-exchange

CLI to authenticate to AWS Cognito user pool. Opens a browser to login and returns JWTs

Usage

Provide AWS Cognito's domain (i.e. target for Hosted UI), client id and client secret (if required).

go run main.go cognito [COGNITO-DOMAIN] [CLIENT-ID] ([CLIENT_SECRET] if required) [flags]

After authentication in browser, access token is returned. Subsequent calls will reuse refresh token unless expired.

Build

sh ./build.sh

Test

go test -v ./...

About

cli tool to athenticate to AWS Cognito user pool and retrieve tokens

Resources

License

Stars

Watchers

Forks

Packages

No packages published