Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpabon/oidc-gen-token
Command line program to get a token from an OpenID Connect issuer
https://github.com/lpabon/oidc-gen-token
auth0 authentication golang jwt oidc openid openid-connect
Last synced: about 2 months ago
JSON representation
Command line program to get a token from an OpenID Connect issuer
- Host: GitHub
- URL: https://github.com/lpabon/oidc-gen-token
- Owner: lpabon
- License: apache-2.0
- Created: 2018-05-30T04:10:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T16:02:02.000Z (over 1 year ago)
- Last Synced: 2024-06-20T16:46:46.654Z (7 months ago)
- Topics: auth0, authentication, golang, jwt, oidc, openid, openid-connect
- Language: Go
- Size: 299 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oidc-gen-token
This simple program is used to generate an OpenID JWT Token from the command
line and if requested, saved to a file.This is program is heavily based on the examples from [go-oidc](https://github.com/coreos/go-oidc).
# Installation
```
go install github.com/lpabon/oidc-gen-token
```# Usage
Here is a sample usage:
```
$ oidc-gen-token --client-id=<...> \
--client-secret=<...> \
--issuer=https://accounts.google.com \
--save-token
```# Provider
You will also need to setup an OpenID Connect provider. Here are a few examples:
Follow the examples from [go-oidc/examples](https://github.com/coreos/go-oidc/tree/v2/example#examples)## Auth0.com
* Create an application
* Note down the client id and secret
* Setup the callback URL to `http://127.0.0.1:5556/auth/callback`.
* You will also need to click on _Advanced Settings_ at the bottom of the
application setup page and then click on _OAuth_. Lastly, enable
_OIDC Conformant_.
* Save the application
* Click on Users, and create a sample user.