auth0goa

package module
v0.0.0-...-ca994f3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 10 Imported by: 0

README

auth0-goa-util

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJWTMiddleware

func NewJWTMiddleware(aud, iss string, getPemCert GetPemCert) *jwtmiddleware.JWTMiddleware

NewJWTMiddleware returns a jwt middleware for Auth0

Types

type BridgeMiddlewareHandler

type BridgeMiddlewareHandler struct {
	Middleware *jwtmiddleware.JWTMiddleware
}

BridgeMiddlewareHandler converts jwt middleware into goa middleware.

func (*BridgeMiddlewareHandler) Handle

func (h *BridgeMiddlewareHandler) Handle(nextHandler goa.Handler) goa.Handler

Handle implements goa.Middleware interface

type GetPemCert

type GetPemCert func(*jwtgo.Token) (string, error)

GetPemCert retrieves public keys to verify tokens

func NewGetPemCert

func NewGetPemCert(jwksURL string) GetPemCert

NewGetPemCert creates a cacheable pem getter function

type JSONWebKeys

type JSONWebKeys struct {
	Kty string   `json:"kty"`
	Kid string   `json:"kid"`
	Use string   `json:"use"`
	N   string   `json:"n"`
	E   string   `json:"e"`
	X5c []string `json:"x5c"`
}

JSONWebKeys represents JWK

type Jwks

type Jwks struct {
	Keys []JSONWebKeys `json:"keys"`
}

Jwks represents JWKS

Jump to

Keyboard shortcuts

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