windowslive-0.1.0: Implements Windows Live Web Authentication and Delegated AuthenticationSource codeContentsIndex
Network.WindowsLive.Token
Contents
Application State
Decryption and validation (internal)
Generate a signed application verifier
Description
Code that is common to Web Authentication (Network.WindowsLive.Login) and Delegated Authentication (Network.WindowsLive.ConsentToken)
Synopsis
data App = App {
appId :: AppID
secret :: Secret
}
type AppID = String
data Secret
newApp :: MonadError e m => String -> String -> m App
decodeToken :: MonadError e m => App -> String -> m String
validateToken :: MonadError e m => App -> String -> m ()
appVerifier :: App -> POSIXTime -> Query
Application State
data App Source
Visit https://lx.azure.microsoft.com/Cloud/Provisioning/Default.aspx to get your application's Application ID and Secret key
Constructors
App
appId :: AppID
secret :: Secret
type AppID = StringSource
data Secret Source
show/hide Instances
newApp :: MonadError e m => String -> String -> m AppSource
Create a new App, validating the Application ID and Secret key
Decryption and validation (internal)
decodeToken :: MonadError e m => App -> String -> m StringSource
Decrypt a token (failing if it cannot be decrypted)
validateToken :: MonadError e m => App -> String -> m ()Source
Check the signature of this token (failing if it is not valid)
Generate a signed application verifier
appVerifier :: App -> POSIXTime -> QuerySource
Generate an application verifier to prove to the server that we know the secret and application ID
Produced by Haddock version 2.6.0