flaw-social-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Social

Description

 
Synopsis

Documentation

class (Serialize (SocialUserId s), Serialize (SocialUserToken s)) => Social s where Source #

Social network abstraction.

Associated Types

data SocialUserId s :: * Source #

User id in this social network.

data SocialUserToken s :: * Source #

Token to prove client authentication to server.

Methods

socialUniversalUserId :: SocialUserId s -> Text Source #

Get universal user id.

class Social s => SocialServer s where Source #

Social network, server-side.

Methods

authSocialClientByRequest :: MonadIO m => s -> (Text -> m (Maybe Text)) -> m (Maybe (SocialUserId s)) Source #

Authenticate client using data from main GET request to app's page.

verifySocialUserToken :: s -> SocialUserId s -> SocialUserToken s -> IO Bool Source #

Check validity of a client.