Implement basic API scoping

This commit is contained in:
Tom 2023-05-04 15:13:51 +02:00
parent 064ae2f564
commit 9db53d39c4
21 changed files with 519 additions and 264 deletions

View file

@ -51,11 +51,6 @@ func (scope ScopeInfo) CheckError(err error) error {
return CheckError{Scope: scope.Scope, Err: err}
}
const (
ScopeUserLoggedIn Scope = "login.user"
ScopeAdminLoggedIn Scope = "login.admin"
)
// ScopeProvider is a component that can check a specific scope
type ScopeProvider interface {
Component