Documentation
¶
Index ¶
- type AuthClaims
- type Cache
- type Config
- type ForbiddenHandler
- type Option
- 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) 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)
- 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 Option ¶
func WithForbiddenHandler ¶
func WithForbiddenHandler(onForbidden ForbiddenHandler) Option
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.