azure-acs-0.0.1.0: Windows Azure ACS

Safe HaskellNone

Web.WindowsAzure.ACS

Contents

Synopsis

Types

Acs Info

data AcsInfo Source

AcsInfo encapsulates the information needed to get the token from Azure ACS:

  • acs namespace * the relying party address * the issuer and * the issuer key.

Instances

Acs Context

data AcsContext Source

An abstract datatype that keeps track of acs token expiry and gets a new one as necessary.

type AcsToken = HeaderSource

synonym for the ACS password token

functions

acsContext :: AcsInfo -> IO AcsContextSource

construct the context object. This call does not perform any network call yet.

acsToken :: Manager -> AcsContext -> IO AcsTokenSource

If a valid token is available, it is returned. Otherwise, requests password a fresh password token from windows azure acs

Refer to HTTP Conduit for information about creating and using Manager