File: Providers.hs

package info (click to toggle)
haskell-authenticate 1.3.2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 96 kB
  • sloc: haskell: 554; makefile: 2
file content (44 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-- | OpenIDs for a number of common OPs. When a function takes a 'String'
-- parameter, that 'String' is the username.
module Web.Authenticate.OpenId.Providers
    ( google
    , yahoo
    , livejournal
    , myspace
    , wordpress
    , blogger
    , verisign
    , typepad
    , myopenid
    , claimid
    ) where

google :: String
google = "https://www.google.com/accounts/o8/id"

yahoo :: String
yahoo = "http://me.yahoo.com/"

livejournal :: String -> String
livejournal u = concat ["http://", u, ".livejournal.com/"]

myspace :: String -> String
myspace = (++) "http://www.myspace.com/"

wordpress :: String -> String
wordpress u = concat ["http://", u, ".wordpress.com/"]

blogger :: String -> String
blogger u = concat ["http://", u, ".blogger.com/"]

verisign :: String -> String
verisign u = concat ["http://", u, ".pip.verisignlabs.com/"]

typepad :: String -> String
typepad u = concat ["http://", u, ".typepad.com/"]

myopenid :: String -> String
myopenid u = concat ["http://", u, ".myopenid.com/"]

claimid :: String -> String
claimid = (++) "http://claimid.com/"