Safe Haskell | None |
---|---|
Language | Haskell98 |
Yesod.Auth.Kerberos
Description
In-built kerberos authentication for Yesod.
Please note that all configuration should have been done manually on the machine prior to running the code.
On linux machines the configuration might be in etckrb5.conf. It's worth checking if the Kerberos service provider (e.g. your university) already provide a complete configuration file.
Be certain that you can manually login from a shell by typing
kinit username
If you fill in your password and the program returns no error code, then your kerberos configuration is setup properly. Only then can this module be of any use.
- authKerberos :: YesodAuth m => AuthPlugin m
- genericAuthKerberos :: YesodAuth m => KerberosConfig -> AuthPlugin m
- data KerberosConfig = KerberosConfig {
- usernameModifier :: Text -> Text
- identifierModifier :: Text -> Text
- defaultKerberosConfig :: KerberosConfig
Documentation
authKerberos :: YesodAuth m => AuthPlugin m Source
Kerberos with defaultKerberosConfig
genericAuthKerberos :: YesodAuth m => KerberosConfig -> AuthPlugin m Source
A configurable version of authKerberos
data KerberosConfig Source
Constructors
KerberosConfig | |
Fields
|
defaultKerberosConfig :: KerberosConfig Source
A configuration where the username the user provides is the one passed to both kerberos and yesod