Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthProperties ¶
type BasicSecurityProperties ¶
type BasicSecurityProperties struct {
Users []*BasicAuthProperties
}
type HttpSecurityProperties ¶
type HttpSecurityProperties struct { PublicUrls []string ProtectedUrls []*UrlToRole BasicAuth *BasicSecurityProperties `default:"{}"` Jwt *JwtSecurityProperties `default:"{}"` }
func NewHttpSecurityProperties ¶
func NewHttpSecurityProperties(loader config.Loader) (*HttpSecurityProperties, error)
func (*HttpSecurityProperties) PostBinding ¶
func (h *HttpSecurityProperties) PostBinding() error
func (HttpSecurityProperties) Prefix ¶
func (h HttpSecurityProperties) Prefix() string
type JwtSecurityProperties ¶
type JwtSecurityProperties struct { PublicKey string Algorithm string `default:"RS256"` Type string `default:"JWT_TOKEN_MOBILE"` }
func (JwtSecurityProperties) IsAlgEs ¶
func (j JwtSecurityProperties) IsAlgEs() bool
func (JwtSecurityProperties) IsAlgRs ¶
func (j JwtSecurityProperties) IsAlgRs() bool
Click to show internal directories.
Click to hide internal directories.