chenxi921 / go-jwks

Golang JSON Web Keyset Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON Web Key Client

Client code which fetches from a public JWKs endpoint. This client maintains an in-memory cache of keys by id.

client := jwks.NewClient("https://yourdomain.auth0.com/.well-known/jwks.json")

// Inside handler func...
key, err := c.GetKey("akdflasjfpoasdkfja")
// Use key to validate JWT...

About

Golang JSON Web Keyset Client


Languages

Language:Go 100.0%