Versions in this module Expand all Collapse all v1 v1.0.0 May 3, 2024 Changes in this version + func GenerateJWTToken(claims jwt.Claims, privateKey *rsa.PrivateKey) (string, error) + func VerifyPrivateKeyFormat(privateKey string) (*rsa.PrivateKey, error) + func VerifyPublicKeyFormat(publicKey string) (*rsa.PublicKey, error) + func VerifyTokenRSA(tokenString string, publicKey *rsa.PublicKey) (*jwt.Token, error) + type Config struct + AuthenticatedPrefix string + CorsApiKey string + DestinationURL string + JwtRSAPrivateKey string + JwtRSAPublicKey string + Mode string + ServerAddress string + UnauthenticatedPrefix string + func ParseYamlFile(yamlFile string) (Config, error) + type Middleware func(http.Handler) http.Handler + func MiddlewareStack(middlewares ...Middleware) Middleware + type RSAkeys struct + PrivateKey *rsa.PrivateKey + PublicKey *rsa.PublicKey + func VerifyAllKeys(Configdata Config) (error, *RSAkeys)