Documentation
¶
Index ¶
- Variables
- func AuthClaimsToJwtClaims(raw authn.AuthClaims) jwt.Claims
- func AuthFromMD(ctx context.Context, expectedScheme string, useGrpc bool) (string, error)
- func JwtClaimsToAuthClaims(rawClaims jwt.Claims) (*authn.AuthClaims, error)
- func MDWithAuth(ctx context.Context, expectedScheme string, tokenStr string, useGrpc bool) context.Context
- func MapClaimsToAuthClaims(rawClaims jwt.MapClaims) (*authn.AuthClaims, error)
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 JwtClaimsToAuthClaims ¶
func JwtClaimsToAuthClaims(rawClaims jwt.Claims) (*authn.AuthClaims, error)
func MDWithAuth ¶
func MapClaimsToAuthClaims ¶
func MapClaimsToAuthClaims(rawClaims jwt.MapClaims) (*authn.AuthClaims, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.