/oidctl

Simple tool to acquire tokens from a OIDC compliant OAuth2 provider

Primary LanguageMakefileMIT LicenseMIT

oidctl

Requirements

  • Go 1.16

Installation

make install

This will install oidctl in your ~/.local/bin folder. Ensure this folder is added to your PATH.

To install oidctl somewhere else, pass INSTALL_DIR=newlocation to the make install command.

Configuration

export DISCOVERY_URL=https://auth.provider.com/.well-known/openid-configuration
export CLIENT_ID=myclientid
export CLIENT_SECRET=longasssecret

Usage

oidctl client-credentials AUDIENCE

# Example
oidctl client-credentials https://example.com

# Result