Documentation ¶
Index ¶
- func NewStrategy(codeEntropy int, secret []byte, authorizeCodeLifespan time.Duration, ...) oauth2.TokenStrategy
- type Claims
- type Strategy
- func (s *Strategy) AccessTokenLifespan() time.Duration
- func (s *Strategy) AccessTokenSignature(token string) (string, error)
- func (s *Strategy) AuthorizeCodeLifespan() time.Duration
- func (s *Strategy) AuthorizeCodeSignature(token string) (string, error)
- func (s *Strategy) GenerateAccessToken(_ context.Context, session oauth2.Session) (string, string, error)
- func (s *Strategy) GenerateAuthorizeCode(_ context.Context, session oauth2.Session) (string, string, error)
- func (s *Strategy) GenerateRefreshToken(_ context.Context, _ oauth2.Session) (string, string, error)
- func (s *Strategy) RefreshTokenSignature(token string) (string, error)
- func (s *Strategy) ValidateAccessToken(_ context.Context, session oauth2.Session, token string) error
- func (s *Strategy) ValidateAuthorizeCode(_ context.Context, session oauth2.Session, token string) error
- func (s *Strategy) ValidateRefreshToken(_ context.Context, _ oauth2.Session, token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Strategy ¶
type Strategy struct {
// contains filtered or unexported fields
}
func (*Strategy) AccessTokenLifespan ¶
func (*Strategy) AccessTokenSignature ¶
func (*Strategy) AuthorizeCodeLifespan ¶
func (*Strategy) AuthorizeCodeSignature ¶
func (*Strategy) GenerateAccessToken ¶
func (*Strategy) GenerateAuthorizeCode ¶
func (*Strategy) GenerateRefreshToken ¶
func (*Strategy) RefreshTokenSignature ¶
func (*Strategy) ValidateAccessToken ¶
func (*Strategy) ValidateAuthorizeCode ¶
Click to show internal directories.
Click to hide internal directories.