mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: add template RBAC/groups (#4235)
This commit is contained in:
@ -54,6 +54,7 @@ type Authorization struct {
|
||||
ID uuid.UUID
|
||||
Username string
|
||||
Roles []string
|
||||
Groups []string
|
||||
Scope database.APIKeyScope
|
||||
}
|
||||
|
||||
@ -360,6 +361,7 @@ func ExtractAPIKey(cfg ExtractAPIKeyConfig) func(http.Handler) http.Handler {
|
||||
Username: roles.Username,
|
||||
Roles: roles.Roles,
|
||||
Scope: key.Scope,
|
||||
Groups: roles.Groups,
|
||||
})
|
||||
|
||||
next.ServeHTTP(rw, r.WithContext(ctx))
|
||||
|
Reference in New Issue
Block a user