Documentation
¶
Index ¶
- type AuthClaims
- type Cache
- type Config
- type ForbiddenHandler
- type LinkHandler
- 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 LinkHandler ¶ added in v3.6.1
type Provider ¶
type Provider interface {
DoAtomic(ctx context.Context, action func(context.Context) error) error
CreateGithub(ctx context.Context, invite model.User, id uint64, login string) (model.User, error)
GetGitHubUser(ctx context.Context, id uint64) (model.User, error)
GetInviteByToken(ctx context.Context, token string) (model.User, error)
Delete(ctx context.Context, user model.User) error
DeleteInvite(ctx context.Context, user model.User) 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.