YesodAuth documentation

Does exist some simple examples using yesod authentication except code of Haskellers site? Does exist some examples using YesodAuthEmail? For example, can i use third-party mail server instead of Sendmail for YesodAuthEmail? Can i disable registration confirmation? Does passwords stored in a database in an unencrypted form? -- Timofeev N.D.

Does exist some simple examples using yesod authentication except code of Haskellers site? Does exist some examples using YesodAuthEmail?
Another example is Orangeroster [1].
For example, can i use third-party mail server instead of Sendmail for YesodAuthEmail?
No. Email handling is done through the mime-mail package, which uses sendmail to do it's work.
Can i disable registration confirmation? Does passwords stored in a database in an unencrypted form?
The stock email plugin does not let you disable these features, but it
should be easy to write your own.
[1] : http://github.com/snoyberg/orangeroster
2011/6/13 Тимофеев Никита Дмитриевич
Does exist some simple examples using yesod authentication except code of Haskellers site? Does exist some examples using YesodAuthEmail?
For example, can i use third-party mail server instead of Sendmail for YesodAuthEmail? Can i disable registration confirmation? Does passwords stored in a database in an unencrypted form?
-- Timofeev N.D.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- -- Michael Steele

2011/6/13 Michael Steele
Does exist some simple examples using yesod authentication except code of Haskellers site? Does exist some examples using YesodAuthEmail?
Another example is Orangeroster [1].
For example, can i use third-party mail server instead of Sendmail for YesodAuthEmail?
No. Email handling is done through the mime-mail package, which uses sendmail to do it's work.
Actually, that's not entirely accurate. The Yesod scaffolding tool generates a site that uses mime-mail and sendmail, but there's nothing inherent in yesod-auth requiring either. Additionally, mime-mail includes a function to use the sendmail executable, but it can also be used with other packages, such as Haskellnet. I think we should move in the direction of making these integrations better. In fact, next time I need to set up a project that sends email, I'll likely be doing just that.
Can i disable registration confirmation? Does passwords stored in a database in an unencrypted form?
The stock email plugin does not let you disable these features, but it should be easy to write your own.
You could just copy the email module from yesod-auth and make the modifications there. Or even better if you're so inclined: submit a patch to make these features optional. If you are so inclined, feel free to contact me for some guidance. Michael
[1] : http://github.com/snoyberg/orangeroster 2011/6/13 Тимофеев Никита Дмитриевич
Does exist some simple examples using yesod authentication except code of Haskellers site? Does exist some examples using YesodAuthEmail?
For example, can i use third-party mail server instead of Sendmail for YesodAuthEmail? Can i disable registration confirmation? Does passwords stored in a database in an unencrypted form?
-- Timofeev N.D.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- -- Michael Steele
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Actually, that's not entirely accurate. The Yesod scaffolding tool generates a site that uses mime-mail and sendmail, but there's nothing inherent in yesod-auth requiring either.
My apologies for adding to the confusion. I see now that Yesod.Auth.Email handles database interactions, generates verify URLs for new accounts to use, and provides forms to embed in HTML. It doesn't actually create email messages or handle any kind of email delivery. I saw the mime-mail dependency, and then forgot where I had seen Network.Mail.Mime.renderSendMail actually being called.
The stock email plugin does not let you disable these features, but it should be easy to write your own.
You could just copy the email module from yesod-auth and make the modifications there. Or even better if you're so inclined: submit a patch to make these features optional. If you are so inclined, feel free to contact me for some guidance.
My understanding is that none of the plugins included in yesod-auth are magic in any way. New ones can be created outside of the official package as long as their associated AuthPlugin has a Text value unique among any others being used. Is this all correct?

2011/6/14 Michael Steele
Actually, that's not entirely accurate. The Yesod scaffolding tool generates a site that uses mime-mail and sendmail, but there's nothing inherent in yesod-auth requiring either. My apologies for adding to the confusion. I see now that Yesod.Auth.Email handles database interactions, generates verify URLs for new accounts to use, and provides forms to embed in HTML. It doesn't actually create email messages or handle any kind of email delivery. I saw the mime-mail dependency, and then forgot where I had seen Network.Mail.Mime.renderSendMail actually being called.
The stock email plugin does not let you disable these features, but it should be easy to write your own.
You could just copy the email module from yesod-auth and make the modifications there. Or even better if you're so inclined: submit a patch to make these features optional. If you are so inclined, feel free to contact me for some guidance.
My understanding is that none of the plugins included in yesod-auth are magic in any way. New ones can be created outside of the official package as long as their associated AuthPlugin has a Text value unique among any others being used. Is this all correct?
Yes, that's completely accurate. Michael
participants (3)
-
Michael Snoyman
-
Michael Steele
-
Тимофеев Никита Дмитриевич