Documentation ¶
Index ¶
- Constants
- func AuthClaimsToJwtClaims(raw engine.AuthClaims) jwtV5.Claims
- func AuthFromMD(ctx context.Context, expectedScheme string, ctxType engine.ContextType) (string, error)
- func JwtClaimsToAuthClaims(rawClaims jwtV5.Claims) (*engine.AuthClaims, error)
- func MDWithAuth(ctx context.Context, expectedScheme string, tokenStr string, ...) context.Context
- func MapClaimsToAuthClaims(rawClaims jwtV5.MapClaims) (*engine.AuthClaims, error)
Constants ¶
View Source
const ( HeaderAuthorize = "Authorization" BearerWord = "Bearer" )
Variables ¶
This section is empty.
Functions ¶
func AuthClaimsToJwtClaims ¶
func AuthClaimsToJwtClaims(raw engine.AuthClaims) jwtV5.Claims
func AuthFromMD ¶
func AuthFromMD(ctx context.Context, expectedScheme string, ctxType engine.ContextType) (string, error)
AuthFromMD .
func JwtClaimsToAuthClaims ¶
func JwtClaimsToAuthClaims(rawClaims jwtV5.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 jwtV5.MapClaims) (*engine.AuthClaims, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.