Documentation ¶
Index ¶
- type AuthnStore
- func (s *AuthnStore) Authenticate(email, password string) (token string, err error)
- func (s *AuthnStore) CheckToken(r *http.Request, token string) (*http.Request, *auth.Claims, error)
- func (s *AuthnStore) Exist(email string) bool
- func (s *AuthnStore) Flush() error
- func (s *AuthnStore) ListUsers() (emails []string, err error)
- func (s *AuthnStore) RemoveUser(email string) error
- func (s *AuthnStore) SetPassword(email, password string) error
- type AuthzStore
- func (s *AuthzStore) AddPolicy(email, scope string) error
- func (s *AuthzStore) Authorized(r *http.Request, email, scope string) (bool, error)
- func (s *AuthzStore) Flush() error
- func (s *AuthzStore) ListPolicies(email string) (scopes []string, err error)
- func (s *AuthzStore) RemovePolicy(email, scope string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthnStore ¶
type AuthnStore struct {
// contains filtered or unexported fields
}
func NewAuthnStore ¶
func NewAuthnStore() *AuthnStore
func (*AuthnStore) Authenticate ¶
func (s *AuthnStore) Authenticate(email, password string) (token string, err error)
func (*AuthnStore) CheckToken ¶
func (*AuthnStore) Exist ¶
func (s *AuthnStore) Exist(email string) bool
func (*AuthnStore) Flush ¶
func (s *AuthnStore) Flush() error
func (*AuthnStore) ListUsers ¶
func (s *AuthnStore) ListUsers() (emails []string, err error)
func (*AuthnStore) RemoveUser ¶
func (s *AuthnStore) RemoveUser(email string) error
func (*AuthnStore) SetPassword ¶
func (s *AuthnStore) SetPassword(email, password string) error
type AuthzStore ¶
type AuthzStore struct {
// contains filtered or unexported fields
}
func NewAuthzStore ¶
func NewAuthzStore() *AuthzStore
func (*AuthzStore) AddPolicy ¶
func (s *AuthzStore) AddPolicy(email, scope string) error
func (*AuthzStore) Authorized ¶
func (*AuthzStore) Flush ¶
func (s *AuthzStore) Flush() error
func (*AuthzStore) ListPolicies ¶
func (s *AuthzStore) ListPolicies(email string) (scopes []string, err error)
func (*AuthzStore) RemovePolicy ¶
func (s *AuthzStore) RemovePolicy(email, scope string) error
Click to show internal directories.
Click to hide internal directories.