aboutsummaryrefslogtreecommitdiff
path: root/src/Sproxy/Application/OAuth2.hs
blob: 0f7d6e83ceb5bbbad9d62e9ba3afcb0b7f9c05df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# LANGUAGE OverloadedStrings #-}
module Sproxy.Application.OAuth2 (
  providers
) where

import Data.HashMap.Strict (HashMap, fromList)
import Data.Text (Text)

import Sproxy.Application.OAuth2.Common (OAuth2Provider)
import qualified Sproxy.Application.OAuth2.Google as Google
import qualified Sproxy.Application.OAuth2.LinkedIn as LinkedIn

providers :: HashMap Text OAuth2Provider
providers = fromList [
    ("google"   , Google.provider)
  , ("linkedin" , LinkedIn.provider)
  ]