Safe Haskell | None |
---|
- data AcsInfo = AcsInfo String !ByteString !ByteString !ByteString
- data AcsContext
- type AcsToken = Header
- acsContext :: AcsInfo -> IO AcsContext
- acsToken :: Manager -> AcsContext -> IO AcsToken
Types
Acs Info
AcsInfo
encapsulates the information needed to get the token from Azure ACS:
- acs namespace * the relying party address * the issuer and * the issuer key.
Acs Context
data AcsContext Source
An abstract datatype that keeps track of acs token expiry and gets a new one as necessary.
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