mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-02 23:57:59 +00:00
15 lines
242 B
Go
15 lines
242 B
Go
package auth
|
|
|
|
type BasicVerifier interface {
|
|
Verify(string, string) error
|
|
}
|
|
|
|
type BasicAuthenticator interface {
|
|
Authenticate(string, string) (BasicPrinciple, error)
|
|
}
|
|
|
|
type BasicPrinciple interface {
|
|
ID() string
|
|
Permissions() []string
|
|
}
|