gwauth

package
v0.0.0-...-531b5da Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const JWTPayloadHeader string = "X-JWT-Payload"

Variables

This section is empty.

Functions

func IsGatewayRequest

func IsGatewayRequest(ctx context.Context) (bool, *metadata.MD)

Types

type JWTClaims

type JWTClaims struct {
	Subject  string `json:"sub"`
	IssuedAt int64  `json:"iat"`
	Expiry   int64  `json:"exp"`
}

func GetGatewayUser

func GetGatewayUser(md *metadata.MD) (*JWTClaims, error)

Jump to

Keyboard shortcuts

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