Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScopeRepoRead = "repo.read" ScopeRepoWrite = "repo.write" ScopeRepoReadConfig = "repo.readConfig" ScopeRepoWriteConfig = "repo.writeConfig" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthnStore ¶
type AuthnStore interface { SetName(email, name string) error SetPassword(email, password string) error Authenticate(email, password string) (token string, err error) CheckToken(r *http.Request, token string) (*http.Request, *Claims, error) RemoveUser(email string) error // ListUsers returns list of users, each user is the string slice []string{email, name} ListUsers() (users [][]string, err error) Exist(email string) bool Flush() error }
type AuthzStore ¶
Click to show internal directories.
Click to hide internal directories.