Safe Haskell | None |
---|---|
Language | Haskell98 |
- data AXFieldTy
- type AXFieldVal = (AXFieldTy, String)
- axName :: AXFieldTy -> String
- axSpec :: AXFieldTy -> String
- axTyFromName :: String -> Maybe AXFieldTy
- axEmailRequired :: Params
- axExtParams :: [AXFieldTy] -> Params
- axExtParams' :: String -> [AXFieldTy] -> Params
- getAxFields :: Params -> [AXFieldVal]
Documentation
Some common, useful Attribute Exchange specs.
type AXFieldVal = (AXFieldTy, String) Source #
Used to store responses.
axEmailRequired :: Params Source #
The simplest use case is to request the user's email. This would be used to replace traditional verification emails.
Use these functions to roll your own list of fields to request when you send an auth request
:: String | alias. it doesn't really matter what this is as long as we're consistent |
-> [AXFieldTy] | params we require in the "id_res" mode verification |
-> Params |
specify the alias as well as the list of requested fields
getAxFields :: Params -> [AXFieldVal] Source #
Retrieve the requested fields from the HTTP request params. Keep | in mind the spec does not require that the OpenID Provider return | any of our requested fields, even on a successful verification.