Documentation ¶
Index ¶
- Constants
- type JWTWriter
- func (j *JWTWriter) Clone() *JWTWriter
- func (j *JWTWriter) GetToken() *jwt.Token
- func (j *JWTWriter) IsHMACAlg() bool
- func (j *JWTWriter) SignWithKey(key interface{}) (string, error)
- func (j *JWTWriter) SignWithMethodAndKey(method jwt.SigningMethod, key interface{}) (string, error)
- func (j *JWTWriter) SignWithMethodAndRandomKey(method jwt.SigningMethod) (string, error)
- func (j *JWTWriter) WithAlgNone() (string, error)
- func (j *JWTWriter) WithoutSignature() (string, error)
- type OrderedMapClaims
Constants ¶
View Source
const FakeJWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.ufhxDTmrs4T5MSsvT6lsb3OpdWi5q8O31VX7TgrVamA"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTWriter ¶
type JWTWriter struct {
// contains filtered or unexported fields
}
func NewJWTWriter ¶
func NewJWTWriterWithValidClaims ¶ added in v0.8.2
func (*JWTWriter) SignWithKey ¶
func (*JWTWriter) SignWithMethodAndKey ¶
func (*JWTWriter) SignWithMethodAndRandomKey ¶ added in v0.4.4
func (*JWTWriter) WithAlgNone ¶
func (*JWTWriter) WithoutSignature ¶
type OrderedMapClaims ¶ added in v0.8.2
type OrderedMapClaims struct { jwt.Claims Raw string }
func NewOrderedMapClaims ¶ added in v0.8.2
func NewOrderedMapClaims(token *jwt.Token) *OrderedMapClaims
func (OrderedMapClaims) MarshalJSON ¶ added in v0.8.2
func (m OrderedMapClaims) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.