Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Network.Mail.SMTP.Auth
Synopsis
- type UserName = String
- type Password = String
- type Token = String
- data AuthType
- = PLAIN
- | LOGIN
- | LOGIN_OAUTH
- | CRAM_MD5
- encodeLogin :: UserName -> Password -> (ByteString, ByteString)
- encodeLoginOAuth :: UserName -> Token -> ByteString
- auth :: AuthType -> String -> UserName -> Password -> ByteString
Documentation
encodeLogin :: UserName -> Password -> (ByteString, ByteString) Source #
encodeLoginOAuth :: UserName -> Token -> ByteString Source #
Encode the xoauth 2 message based on: https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#sasl-xoauth2