utils

package
v0.0.0-...-9e5aafb Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeaderAuthorize = "Authorization"

	BearerWord = "Bearer"
)

Functions

func AuthClaimsToJwtClaims

func AuthClaimsToJwtClaims(raw authn.AuthClaims) jwt.Claims

func AuthFromMD

func AuthFromMD(ctx context.Context, expectedScheme string, useGrpc bool) (string, error)

func JwtClaimsToAuthClaims

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

func MDWithAuth

func MDWithAuth(ctx context.Context, expectedScheme string, tokenStr string, useGrpc bool) context.Context

func MapClaimsToAuthClaims

func MapClaimsToAuthClaims(rawClaims jwt.MapClaims) (*authn.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
JackTT - Gopher 🇻🇳