aadtoken

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 5 Imported by: 0

README

Azure Active Directory (Azure AD) Token

Get AAD token quickly.

Docs

aadtoken [scope]

Get AAD token by providing a scope.

For more details, it is based on Azure SDK.

Usage

Azure Kubernetes Service (AKS)

Using AAD Pod Identity.

$ kubectl run aadtoken \
  --rm \
  --attach \
  --image=skibish/aadtoken
  --image-pull-policy=Always \
  --labels="aadpodidbinding=<your value>" \
  --restart=Never \
  "a6a0b2e1-d5d6-4b33-93c8-68125d41b9e7"

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
CLI
$ aadtoken "a6a0b2e1-d5d6-4b33-93c8-68125d41b9e7"
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c

Motivation

Working with Azure, Azure AD based services from time to time you need to generate the token for various reasons. For example:

  • verify connection to services
  • check the token

This tool is a helper to do it faster.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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