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 { 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() (emails []string, err error) Exist(email string) bool Flush() error }
type AuthzStore ¶
type Claims ¶
type Claims struct { jwt.StandardClaims Email string `json:"email,omitempty"` }
Click to show internal directories.
Click to hide internal directories.