Documentation
¶
Index ¶
- type ForbiddenHandler
- type Option
- type PasswordStorage
- type Provider
- type Service
- func (s Service) GetUser(ctx context.Context, r *http.Request) (model.User, error)
- func (s Service) IsAuthorized(ctx context.Context, user model.User, profile string) bool
- func (s Service) OnError(w http.ResponseWriter, r *http.Request, err error)
- func (s Service) OnForbidden(w http.ResponseWriter, r *http.Request, user model.User, profile string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForbiddenHandler ¶
type Option ¶
func WithForbiddenHandler ¶
func WithForbiddenHandler(onForbidden ForbiddenHandler) Option
type PasswordStorage ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) IsAuthorized ¶
func (Service) OnForbidden ¶
Click to show internal directories.
Click to hide internal directories.