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
- Host: GitHub
- URL: https://github.com/deifyed/oidctl
- Owner: deifyed
- License: mit
- Created: 2021-03-15T05:40:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-16T05:43:13.000Z (over 5 years ago)
- Last Synced: 2025-04-03T20:33:11.174Z (about 1 year ago)
- Language: Makefile
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```