This package enables users of your Yesod site to authenticate with their XING account.
It's currently under development and is not considered stable. This library is a private project and isn't associated with XING AG.
Assuming that your foundation datatype is named YourSite
your configuration might look like this.
You have to get an OAuth consumer key and secret from the XING developer site.
import Yesod.Auth.XING
instance YesodAuth YourSite where
type AuthId YourSite = Text
getAuthId creds = return $ lookup "oauth_token" (credsExtra creds)
loginDest _ = RootR
logoutDest _ = RootR
authPlugins _ = [xingAuth (oauthConsumerKey "YOUR_CONSUMER_KEY") (oauthConsumerSecret "YOUR_CONSUMER_SECRET")]
authHttpManager = httpManager
The repository contains an example that demonstrates the whole workflow.