Documentation ¶
Index ¶
- Constants
- type AuthClaim
- type JWTConfig
- type JWTIssuer
- type Jwter
- type RawJWT
- func (r *RawJWT) Nullifier() (res string, ok bool)
- func (r *RawJWT) SetExpirationTimestamp(expiration time.Time) *RawJWT
- func (r *RawJWT) SetNullifier(nullifier string) *RawJWT
- func (r *RawJWT) SetTokenAccess() *RawJWT
- func (r *RawJWT) SetTokenRefresh() *RawJWT
- func (r *RawJWT) TokenType() (typ TokenType, ok bool)
- type TokenType
Constants ¶
View Source
const ( AuthorizationHeaderName = "Authorization" BearerTokenPrefix = "Bearer " )
View Source
const ( NullifierClaimName = "sub" ExpirationTimestampClaimName = "exp" TokenTypeClaimName = "type" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTIssuer ¶
type JWTIssuer struct {
// contains filtered or unexported fields
}
type RawJWT ¶
type RawJWT struct {
// contains filtered or unexported fields
}
RawJWT represents helper structure to provide setter and getter methods to work with JWT claims
func (*RawJWT) SetExpirationTimestamp ¶
func (*RawJWT) SetNullifier ¶
func (*RawJWT) SetTokenAccess ¶
func (*RawJWT) SetTokenRefresh ¶
Click to show internal directories.
Click to hide internal directories.