zts-accesstoken

command
v1.9.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

README

zts-accesstoken

ZTS OAuth2 Access Token Client application in Go to request an access token from ZTS Server for the given identity to access a role in a provider domain:

There are two possible ways to use the utility:

  1. using your athenz service identity certificate
$ zts-accesstoken -domain <domain> [-roles <roles>] [-service <service>] -svc-key-file <private-key-file> -svc-cert-file <service-cert-file> -zts <ZTS url> [-expire-time <expire-time-in-mins>]
  1. using ntoken from a file
$ zts-accesstoken -domain <domain> [-roles <roles>] [-service <service>] -ntoken-file <ntoken-file> -hdr Athenz-Principal-Auth -zts <ZTS url> [-expire-time <expire-time-in-mins>]

The service identity ntoken can be obtained by using the zms-svctoken utility. The optional expire-time argument specifies how long the access token should be valid for. The value must be specified in minutes. The defualt if no value is specified is 120 minutes.

License

Copyright 2019 Oath Holdings Inc.

Licensed under the Apache License, Version 2.0

Documentation

Overview

ZTS OAuth2 Access Token Client application in Go to request an access token from ZTS Server for the given identity to access a role in a provider domain:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL