Documentation ¶
Index ¶
- func DecodeState(state string, v interface{}) error
- func EncodeState(v interface{}) (string, error)
- type Config
- type Service
- type State
- type TokenService
- func (s *TokenService) AuthenticateUser(ctx context.Context, token string) (domain.UserID, error)
- func (s *TokenService) NewPersonalToken(ctx context.Context, userID domain.UserID) (string, error)
- func (s *TokenService) NewToken(ctx context.Context, userID domain.UserID) (string, error)
- func (s *TokenService) RevokePersonalToken(ctx context.Context, userID domain.UserID) error
- func (s *TokenService) RevokeToken(ctx context.Context, token string) error
- func (s *TokenService) RevokeUserTokens(ctx context.Context, userID domain.UserID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeState ¶
func EncodeState ¶
Types ¶
type Service ¶
type Service struct { *TokenService // contains filtered or unexported fields }
func NewService ¶
func NewService(cfg Config, tokens *TokenService) (*Service, error)
func (*Service) ExchangeCode ¶
type TokenService ¶
type TokenService struct {
// contains filtered or unexported fields
}
func NewTokenService ¶
func NewTokenService(repo domain.TokenRepository, tx *transactor.Transactor) *TokenService
func (*TokenService) AuthenticateUser ¶
func (*TokenService) NewPersonalToken ¶
func (*TokenService) RevokePersonalToken ¶
func (*TokenService) RevokeToken ¶
func (s *TokenService) RevokeToken(ctx context.Context, token string) error
func (*TokenService) RevokeUserTokens ¶
Click to show internal directories.
Click to hide internal directories.