Documentation ¶
Index ¶
- type API
- type Service
- func (s *Service) AuthAttempt(ctx context.Context, state string) (*skillz.AuthAttempt, error)
- func (s *Service) AuthorizationURI(ctx context.Context, state string) string
- func (s *Service) BearerForESICode(ctx context.Context, code string) (*oauth2.Token, error)
- func (s *Service) DeleteAuthAttempt(ctx context.Context, attempt *skillz.AuthAttempt) error
- func (s *Service) InitializeAttempt(ctx context.Context) (*skillz.AuthAttempt, error)
- func (s *Service) LogoutCookie(ctx context.Context) (*http.Cookie, error)
- func (s *Service) ParseAndVerifyESIToken(ctx context.Context, t string) (jwt.Token, error)
- func (s *Service) UserCookie(ctx context.Context, userID uuid.UUID) (*http.Cookie, error)
- func (s *Service) UserIDFromCookie(ctx context.Context, cookie *http.Cookie) (uuid.UUID, error)
- func (s *Service) ValidateESITokenForUser(ctx context.Context, user *skillz.User) (bool, *oauth2.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AuthAttempt ¶
func (*Service) AuthorizationURI ¶
func (*Service) BearerForESICode ¶
func (*Service) DeleteAuthAttempt ¶
func (*Service) InitializeAttempt ¶
func (*Service) LogoutCookie ¶ added in v0.0.10
func (*Service) ParseAndVerifyESIToken ¶
func (*Service) UserCookie ¶ added in v0.0.10
func (*Service) UserIDFromCookie ¶
Click to show internal directories.
Click to hide internal directories.