mirror of
https://github.com/openziti/zrok.git
synced 2026-09-27 09:45:48 -04:00
23 lines
432 B
Go
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
|
|
}
|