/token-server

Primary LanguageGoMIT LicenseMIT

license Go Report Card Go Reference Artifact Hub Docker Pulls

token-server

Usage

Default

token-server

curl -s localhost:8080/token | gojq

Client Credentials

CLIENT_CREDENTIALS=true token-server

curl -s -H 'content-type: application/x-www-form-urlencoded' \
  -d grant_type=client_credentials \
  -d client_id=admin \
  -d client_secret=admin \
  -d audience=YOUR_API_IDENTIFIER \
  localhost:8080/token | gojq