Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // are invalid. ErrUnauthorized error = securedservice.Unauthorized("invalid username and password combination") // ErrInvalidToken is the error returned when the JWT token is invalid. ErrInvalidToken error = securedservice.Unauthorized("invalid token") // ErrInvalidTokenScopes is the error returned when the scopes provided in // the JWT token claims are invalid. ErrInvalidTokenScopes error = securedservice.InvalidScopes("invalid scopes in token") // Key is the key used in JWT authentication Key = []byte("secret") )
Functions ¶
func NewSecuredService ¶
func NewSecuredService(logger *log.Logger) securedservice.Service
NewSecuredService returns the secured_service service implementation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.