securityx

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJsonWebToken

func ParseJsonWebToken(token string, pubpem interface{}) (*jwt.Token, error)

func VerifyJsonWebToken

func VerifyJsonWebToken(arg0 interface{}, settings *JwtSettings) error

Types

type CorsSettings

type CorsSettings struct {
	// contains filtered or unexported fields
}

func NewCorsSettings

func NewCorsSettings(settings map[string]interface{}) *CorsSettings

func (*CorsSettings) AllowCredentials

func (st *CorsSettings) AllowCredentials() bool

func (*CorsSettings) AllowedHeaders

func (st *CorsSettings) AllowedHeaders() []string

func (*CorsSettings) AllowedMethods

func (st *CorsSettings) AllowedMethods() []string

func (*CorsSettings) AllowedOrigins

func (st *CorsSettings) AllowedOrigins() []string

func (*CorsSettings) ExposedHeaders

func (st *CorsSettings) ExposedHeaders() []string

func (*CorsSettings) MaxAge

func (st *CorsSettings) MaxAge() time.Duration

type JwtSettings

type JwtSettings struct {
	// contains filtered or unexported fields
}

func NewJwtSettings

func NewJwtSettings(key string, settings map[string]interface{}) *JwtSettings

func (*JwtSettings) Issuer

func (st *JwtSettings) Issuer() string

func (JwtSettings) Key

func (st JwtSettings) Key() string

func (*JwtSettings) PrivateKeyPemFile

func (st *JwtSettings) PrivateKeyPemFile() string

func (*JwtSettings) PublicKeyPemFile

func (st *JwtSettings) PublicKeyPemFile() string

func (*JwtSettings) RefreshTokenTtl

func (st *JwtSettings) RefreshTokenTtl() time.Duration

func (*JwtSettings) Ttl

func (st *JwtSettings) Ttl() time.Duration

Jump to

Keyboard shortcuts

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