Rename AuthResult to BasicAuthResult
AuthResult is not extensible enough for more complex, homegrown combinators
This commit is contained in:
parent
0764d9b84c
commit
9a94403d97
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ mkAuthHandler :: (r -> ExceptT ServantErr IO usr) -> AuthHandler r usr
|
|||
mkAuthHandler = AuthHandler
|
||||
|
||||
-- | The result of authentication/authorization
|
||||
data AuthResult usr
|
||||
data BasicAuthResult usr
|
||||
= Unauthorized
|
||||
| BadPassword
|
||||
| NoSuchUser
|
||||
|
@ -39,7 +39,7 @@ data AuthResult usr
|
|||
newtype BasicAuthCheck usr = BasicAuthCheck
|
||||
{ unBasicAuthCheck :: BS.ByteString -- Username
|
||||
-> BS.ByteString -- Password
|
||||
-> IO (AuthResult usr)
|
||||
-> IO (BasicAuthResult usr)
|
||||
}
|
||||
deriving (Generic, Typeable, Functor)
|
||||
|
||||
|
|
Loading…
Reference in a new issue