pontarius-xmpp-0.1.0.2: An incomplete implementation of RFC 6120 (XMPP: Core)

Safe HaskellNone

Network.Xmpp.Sasl.Mechanisms.Scram

Synopsis

Documentation

hashToken :: Hash ctx hash => hashSource

A nicer name for undefined, for use as a dummy token to determin the hash function to use

scramSource

Arguments

:: Hash ctx hash 
=> hash

Dummy argument to determine the hash to use; you can safely pass undefined or a hashToken to it

-> Text

Authentication ID (user name)

-> Maybe Text

Authorization ID

-> Text

Password

-> SaslM () 

Salted Challenge Response Authentication Mechanism (SCRAM) SASL mechanism according to RFC 5802.

This implementation is independent and polymorphic in the used hash function.

scramSha1Source

Arguments

:: Text

username

-> Maybe Text

authorization ID

-> Text

password

-> SaslHandler 

scram spezialised to the SHA-1 hash function, packaged as a SaslHandler