oidc-gen-token

command module
v0.0.0-...-8768e95 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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.

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:

Google

Follow the examples from go-oidc/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.

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