Documentation
¶
Index ¶
- Constants
- type AuthClaim
- type JWTConfig
- type JWTIssuer
- type Jwter
- type RawJWT
- func (r *RawJWT) DID() (res string, ok bool)
- func (r *RawJWT) Group() *uuid.UUID
- func (r *RawJWT) OrgDID() (did string, ok bool)
- func (r *RawJWT) Role() (role uint32, ok bool)
- func (r *RawJWT) SetDID(did string) *RawJWT
- func (r *RawJWT) SetExpirationTimestamp(expiration time.Duration) *RawJWT
- func (r *RawJWT) SetGroup(group *uuid.UUID) *RawJWT
- func (r *RawJWT) SetOrgDID(org string) *RawJWT
- func (r *RawJWT) SetRole(role uint32) *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 ( UserDIDClaimName = "sub" ExpirationTimestampClaimName = "exp" RoleClaimName = "role" GroupClaimName = "group" OrgDIDClaimName = "org" TokenTypeClaimName = "type" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) SetTokenAccess ¶
func (*RawJWT) SetTokenRefresh ¶
Click to show internal directories.
Click to hide internal directories.