Files
zrok/endpoints/dynamicProxy/auth.go
T

23 lines
432 B
Go

package dynamicProxy
import "github.com/golang-jwt/jwt/v5"
type authHandler struct {
cfg *config
signingKey []byte
}
func newAuthHandler(cfg *config, signingKey []byte) *authHandler {
return &authHandler{
cfg: cfg,
signingKey: signingKey,
}
}
type IntermediateJWT struct {
State string `json:"st"`
TargetHost string `json:"th"`
RefreshInterval string `json:"rfi"`
jwt.RegisteredClaims
}