yu-auth-0.1.1.10: Auth module for Yu.

Copyright(C) 2017-2018 Johann Lee <me@qinka.pro>
LicenseGPL3
Maintainerme@qinka.pro
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Yu.Auth

Contents

Description

The methods about authentication for Yu (using Yesod)

Synopsis

check whether it is authorized

checkAuth Source #

Arguments

:: Auth site hash 
=> HandlerT site IO AuthResult

return result

check auth

Type Class to limit

class HashAlgorithm a => Auth site a | site -> a where Source #

The class to limit the an application with it hash algorithm and the password of the site.

Minimal complete definition

tokenHash, tokenItem

Methods

tokenHash :: MonadIO m => site -> m a Source #

to get the HASH

tokenItem :: MonadIO m => site -> m ByteString Source #

to get the password

reexport module