utils

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HeaderAuthorize = "Authorization"

	BearerWord = "Bearer"
)

Variables

This section is empty.

Functions

func AuthClaimsToJwtClaims

func AuthClaimsToJwtClaims(raw engine.AuthClaims) jwt.Claims

func AuthFromMD

func AuthFromMD(ctx context.Context, expectedScheme string, ctxType engine.ContextType) (string, error)

AuthFromMD .

func JwtClaimsToAuthClaims

func JwtClaimsToAuthClaims(rawClaims jwt.Claims) (*engine.AuthClaims, error)

func MDWithAuth

func MDWithAuth(ctx context.Context, expectedScheme string, tokenStr string, ctxType engine.ContextType) context.Context

MDWithAuth .

func MapClaimsToAuthClaims

func MapClaimsToAuthClaims(rawClaims jwt.MapClaims) (*engine.AuthClaims, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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