Merge Go frontend (apiserver + xcecli) into meson build
This commit is contained in:
parent
43dc12a36c
commit
c9dc8c4676
205 changed files with 30793 additions and 328 deletions
14
src/frontend/apiserver/backend/auth/provider.go
Normal file
14
src/frontend/apiserver/backend/auth/provider.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package auth
|
||||
|
||||
// UserRoleSeeder is an optional interface for providers that can enumerate all users.
|
||||
// Used to pre-populate the role store at startup so permissions work after restart.
|
||||
type UserRoleSeeder interface {
|
||||
AllUsers() []string
|
||||
}
|
||||
|
||||
// AuthProvider is the interface for authentication strategies.
|
||||
type AuthProvider interface {
|
||||
Authenticate(username, password string) error
|
||||
GetUserRoles(username string) []string
|
||||
Name() string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue