Implement basic API scoping
This commit is contained in:
parent
064ae2f564
commit
9db53d39c4
21 changed files with 519 additions and 264 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue