firebasegoa

package module
v0.0.0-...-867d827 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 11 Imported by: 1

README

firebase-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() GetPemCert

NewGetPemCert creates a cacheable pem getter function

type Jwks

type Jwks map[string]string

Jwks represents JWKS

Jump to

Keyboard shortcuts

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