Documentation
¶
Index ¶
- type AuthClaims
- type Cache
- type Config
- type ForbiddenHandler
- type Provider
- type Service
- func (s Service) Callback(w http.ResponseWriter, r *http.Request)
- func (s Service) GetUser(ctx context.Context, r *http.Request) (model.User, error)
- func (s Service) Logout(w http.ResponseWriter, r *http.Request)
- func (s Service) OnUnauthorized(w http.ResponseWriter, r *http.Request, err error)
- func (s Service) Register(w http.ResponseWriter, r *http.Request)
- type State
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClaims ¶
type ForbiddenHandler ¶
type Provider ¶
type Provider interface {
DoAtomic(ctx context.Context, action func(context.Context) error) error
CreateGithub(ctx context.Context, id uint64, login string) (model.User, error)
GetGitHubUser(ctx context.Context, id uint64) (model.User, error)
UpdateLink(ctx context.Context, externalID string, user model.User) error
GetExternalByToken(ctx context.Context, token string) (model.Link, error)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) Logout ¶ added in v3.5.0
func (s Service) Logout(w http.ResponseWriter, r *http.Request)
func (Service) OnUnauthorized ¶ added in v3.1.0
Click to show internal directories.
Click to hide internal directories.