The Problem
I'm writing a standalone desktop application in Haskell and I would love to have an authentication support in it. I want the user to be able to log into this application by google / facebook / etc account.
Some Research
I've found some protocols and related haskell libraries:
- OpenID (openid, authenticate) - but as @Changaco has noted - this protocol is connected to the web browser.
- OAuth (authenticate-oauth, hoauth) - but the first one seems to be strongly related to
Yesod
(web framework) and the second supportsOAuth
version1.0
(currently there is version2.0
available)
The Question
Is it possible to create such authentication in standalone Haskell application? What library should I use? Or maybe I should write it in C++ and use it from Haskell?
The main requirements are:
- The authentication mechanism should work in standalone application on all major platforms (Linux, Windows, Darwin)
- The authentication mechanism should work with application without gui.