Documentation ¶
Index ¶
- type Auth
- type Config
- type JwtPayload
- func (t JwtPayload) GetAudience() (jwt.ClaimStrings, error)
- func (t JwtPayload) GetExpirationTime() (*jwt.NumericDate, error)
- func (t JwtPayload) GetIssuedAt() (*jwt.NumericDate, error)
- func (t JwtPayload) GetIssuer() (string, error)
- func (t JwtPayload) GetNotBefore() (*jwt.NumericDate, error)
- func (t JwtPayload) GetSubject() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) RoleRequired ¶
type JwtPayload ¶
type JwtPayload struct { IssuedAt time.Time `json:"iat,omitempty"` ExpiredAt time.Time `json:"exp,omitempty"` NotBefore time.Time `json:"nbf,omitempty"` }
func (JwtPayload) GetAudience ¶
func (t JwtPayload) GetAudience() (jwt.ClaimStrings, error)
func (JwtPayload) GetExpirationTime ¶
func (t JwtPayload) GetExpirationTime() (*jwt.NumericDate, error)
func (JwtPayload) GetIssuedAt ¶
func (t JwtPayload) GetIssuedAt() (*jwt.NumericDate, error)
func (JwtPayload) GetIssuer ¶
func (t JwtPayload) GetIssuer() (string, error)
func (JwtPayload) GetNotBefore ¶
func (t JwtPayload) GetNotBefore() (*jwt.NumericDate, error)
func (JwtPayload) GetSubject ¶
func (t JwtPayload) GetSubject() (string, error)
Click to show internal directories.
Click to hide internal directories.