uncached

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package uncached provides uncached versions of go-keypairs/keyfetch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(url string) (map[string]string, keypairs.PublicKey, error)

Fetch retrieves a single JWK (plain, bare jwk) from a URL (off-spec)

func JWKs

func JWKs(jwksurl string) (map[string]map[string]string, map[string]keypairs.PublicKey, error)

JWKs fetches and parses a jwks.json (assuming well-known format)

func OIDCJWKs

func OIDCJWKs(baseURL string) (map[string]map[string]string, map[string]keypairs.PublicKey, error)

OIDCJWKs gets the OpenID Connect configuration from the baseURL and then calls JWKs with the specified jwks_uri

func PEM

func PEM(pemurl string) (map[string]string, keypairs.PublicKey, error)

PEM fetches and parses a PEM (assuming well-known format)

func WellKnownJWKs

func WellKnownJWKs(baseURL string) (map[string]map[string]string, map[string]keypairs.PublicKey, error)

WellKnownJWKs calls JWKs with baseURL + /.well-known/jwks.json as constructs the jwks_uri

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL