forgotten file
This commit is contained in:
parent
3f52d902c5
commit
fc97114fc2
1 changed files with 15 additions and 0 deletions
15
src/Aggreact/Authorization/Handler.hs
Normal file
15
src/Aggreact/Authorization/Handler.hs
Normal file
|
@ -0,0 +1,15 @@
|
|||
module Aggreact.Authorization
|
||||
( AuthorizationHandler (..)
|
||||
)
|
||||
where
|
||||
|
||||
import Protolude
|
||||
import Aggreact.Scopes
|
||||
|
||||
|
||||
data AuthorizationHandler =
|
||||
AuthorizationHandler
|
||||
{ filterAccess :: Scope -> Maybe User -> Handler ()
|
||||
, hasScope :: Scope -> Maybe User -> Bool
|
||||
, userScopes :: Maybe User -> Scopes
|
||||
}
|
Loading…
Reference in a new issue