Documentation
¶
Index ¶
- Constants
- type Jwt
- func (this Jwt) Parse(token string) (username string, user string, roles []string, clientId string, err error)
- func (this Jwt) ParseHeader(header string) (username string, user string, roles []string, clientId string, err error)
- func (this Jwt) ParseRequest(request *http.Request) (username string, user string, roles []string, clientId string, err error)
- func (this Jwt) ParseToken(token string) (username string, user string, roles []string, clientId string, err error)
Constants ¶
View Source
const PEM_BEGIN = "-----BEGIN PUBLIC KEY-----"
View Source
const PEM_END = "-----END PUBLIC KEY-----"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jwt ¶
type Jwt struct {
// contains filtered or unexported fields
}
func NewJwt ¶
func NewJwt(config configuration.Config) Jwt
func (Jwt) ParseHeader ¶
func (Jwt) ParseRequest ¶
Click to show internal directories.
Click to hide internal directories.