Documentation ¶
Index ¶
- type HMACSHAStrategy
- func (h HMACSHAStrategy) AccessTokenSignature(token string) string
- func (h HMACSHAStrategy) AuthorizeCodeSignature(token string) string
- func (h HMACSHAStrategy) GenerateAccessToken(_ context.Context, _ fosite.Requester) (token string, signature string, err error)
- func (h HMACSHAStrategy) GenerateAuthorizeCode(_ context.Context, _ fosite.Requester) (token string, signature string, err error)
- func (h HMACSHAStrategy) GenerateRefreshToken(_ context.Context, _ fosite.Requester) (token string, signature string, err error)
- func (h HMACSHAStrategy) RefreshTokenSignature(token string) string
- func (h HMACSHAStrategy) ValidateAccessToken(_ context.Context, r fosite.Requester, token string) (err error)
- func (h HMACSHAStrategy) ValidateAuthorizeCode(_ context.Context, r fosite.Requester, token string) (err error)
- func (h HMACSHAStrategy) ValidateRefreshToken(_ context.Context, _ fosite.Requester, token string) (err error)
- type HMACSession
- type HMACSessionContainer
- type JWTSession
- type JWTSessionContainer
- type RS256JWTStrategy
- func (h RS256JWTStrategy) AccessTokenSignature(token string) string
- func (h RS256JWTStrategy) AuthorizeCodeSignature(token string) string
- func (h *RS256JWTStrategy) GenerateAccessToken(_ context.Context, requester fosite.Requester) (token string, signature string, err error)
- func (h *RS256JWTStrategy) GenerateAuthorizeCode(_ context.Context, requester fosite.Requester) (token string, signature string, err error)
- func (h *RS256JWTStrategy) GenerateRefreshToken(_ context.Context, requester fosite.Requester) (token string, signature string, err error)
- func (h RS256JWTStrategy) RefreshTokenSignature(token string) string
- func (h *RS256JWTStrategy) ValidateAccessToken(_ context.Context, _ fosite.Requester, token string) error
- func (h *RS256JWTStrategy) ValidateAuthorizeCode(_ context.Context, requester fosite.Requester, token string) error
- func (h *RS256JWTStrategy) ValidateRefreshToken(_ context.Context, _ fosite.Requester, token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HMACSHAStrategy ¶
type HMACSHAStrategy struct { Enigma *enigma.HMACStrategy AccessTokenLifespan time.Duration AuthorizeCodeLifespan time.Duration }
func (HMACSHAStrategy) AccessTokenSignature ¶
func (h HMACSHAStrategy) AccessTokenSignature(token string) string
func (HMACSHAStrategy) AuthorizeCodeSignature ¶
func (h HMACSHAStrategy) AuthorizeCodeSignature(token string) string
func (HMACSHAStrategy) GenerateAccessToken ¶
func (HMACSHAStrategy) GenerateAuthorizeCode ¶
func (HMACSHAStrategy) GenerateRefreshToken ¶
func (HMACSHAStrategy) RefreshTokenSignature ¶
func (h HMACSHAStrategy) RefreshTokenSignature(token string) string
func (HMACSHAStrategy) ValidateAccessToken ¶
func (HMACSHAStrategy) ValidateAuthorizeCode ¶
func (HMACSHAStrategy) ValidateRefreshToken ¶
type HMACSession ¶
HMACSession Container for the HMAC session.
func (*HMACSession) AccessTokenExpiresAt ¶
func (s *HMACSession) AccessTokenExpiresAt(fallback time.Time) time.Time
func (*HMACSession) AuthorizeCodeExpiresAt ¶
func (s *HMACSession) AuthorizeCodeExpiresAt(fallback time.Time) time.Time
type HMACSessionContainer ¶
type JWTSession ¶
JWTSession Container for the JWT session.
func (*JWTSession) GetJWTClaims ¶
func (j *JWTSession) GetJWTClaims() *jwt.JWTClaims
func (*JWTSession) GetJWTHeader ¶
func (j *JWTSession) GetJWTHeader() *jwt.Headers
type JWTSessionContainer ¶
type RS256JWTStrategy ¶
type RS256JWTStrategy struct {
*jwt.RS256JWTStrategy
}
RS256JWTStrategy is a JWT RS256 strategy.
func (RS256JWTStrategy) AccessTokenSignature ¶
func (h RS256JWTStrategy) AccessTokenSignature(token string) string
func (RS256JWTStrategy) AuthorizeCodeSignature ¶
func (h RS256JWTStrategy) AuthorizeCodeSignature(token string) string
func (*RS256JWTStrategy) GenerateAccessToken ¶
func (*RS256JWTStrategy) GenerateAuthorizeCode ¶
func (*RS256JWTStrategy) GenerateRefreshToken ¶
func (RS256JWTStrategy) RefreshTokenSignature ¶
func (h RS256JWTStrategy) RefreshTokenSignature(token string) string
func (*RS256JWTStrategy) ValidateAccessToken ¶
func (*RS256JWTStrategy) ValidateAuthorizeCode ¶
func (*RS256JWTStrategy) ValidateRefreshToken ¶
Click to show internal directories.
Click to hide internal directories.