yesod-auth-0.7.6.2: Authentication for Yesod.

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.

Synopsis

Documentation

data KerberosConfig Source

Constructors

KerberosConfig 

Fields

usernameModifier :: Text -> Text

When a user gives username x, f(x) will be passed to Kerberos

identifierModifier :: Text -> Text

When a user gives username x, f(x) will be passed to Yesod

defaultKerberosConfig :: KerberosConfigSource

A configuration where the username the user provides is the one passed to both kerberos and yesod