auth

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticationMiddleware

func AuthenticationMiddleware(params EndpointParams) kitendpoint.Middleware

AuthenticationMiddleware wraps endpoint with standard middlewares.

func CurrentUser

func CurrentUser(ctx context.Context) (*domain.Account, error)

func JWTValidateMiddleware

func JWTValidateMiddleware(config token.JWTStrategyConfig) kitendpoint.Middleware

Types

type EndpointParams

type EndpointParams struct {
	JWTStrategyConfig token.JWTStrategyConfig
}

EndpointParams provides params for endpoint middlewares.

type JwtSigningString

type JwtSigningString string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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