diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-07-26 21:11:18 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-08-06 19:11:48 +0300 |
commit | 671005e91e724c7f956cad24305603505e1bd322 (patch) | |
tree | 8fc92d7b1f4c6483100fdf72f18cc92b6769792e /src/Sproxy/Application/OAuth2.hs | |
parent | 1123c543bdd438ad40428e7814325a53c819cee2 (diff) | |
download | sproxy2-671005e91e724c7f956cad24305603505e1bd322.tar.gz |
Add Yandex
https://tech.yandex.com/oauth/
Diffstat (limited to 'src/Sproxy/Application/OAuth2.hs')
-rw-r--r-- | src/Sproxy/Application/OAuth2.hs | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/Sproxy/Application/OAuth2.hs b/src/Sproxy/Application/OAuth2.hs index 0f7d6e8..ae23b6e 100644 --- a/src/Sproxy/Application/OAuth2.hs +++ b/src/Sproxy/Application/OAuth2.hs @@ -1,7 +1,8 @@ {-# LANGUAGE OverloadedStrings #-} -module Sproxy.Application.OAuth2 ( - providers -) where + +module Sproxy.Application.OAuth2 + ( providers + ) where import Data.HashMap.Strict (HashMap, fromList) import Data.Text (Text) @@ -9,10 +10,12 @@ 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 +import qualified Sproxy.Application.OAuth2.Yandex as Yandex providers :: HashMap Text OAuth2Provider -providers = fromList [ - ("google" , Google.provider) - , ("linkedin" , LinkedIn.provider) - ] - +providers = + fromList + [ ("google", Google.provider) + , ("linkedin", LinkedIn.provider) + , ("yandex", Yandex.provider) + ] |