Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJsonWebToken ¶
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
Click to show internal directories.
Click to hide internal directories.