An open API service indexing awesome lists of open source software.

https://github.com/deifyed/oidctl

Simple tool to acquire tokens from a OIDC compliant OAuth2 provider
https://github.com/deifyed/oidctl

Last synced: 5 months ago
JSON representation

Simple tool to acquire tokens from a OIDC compliant OAuth2 provider

Awesome Lists containing this project

README

          

# oidctl

## Requirements
* Go 1.16

## Installation

```shell
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

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

## Usage

```shell
oidctl client-credentials AUDIENCE

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

# Result
```