mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-01 17:33:50 +02:00
Brittany
This commit is contained in:
parent
f768904412
commit
d42999075b
@ -83,6 +83,8 @@ instance YesodAuth App where
|
|||||||
instance RenderMessage App FormMessage where
|
instance RenderMessage App FormMessage where
|
||||||
renderMessage _ _ = defaultFormMessage
|
renderMessage _ _ = defaultFormMessage
|
||||||
|
|
||||||
|
-- brittany-disable-next-binding
|
||||||
|
|
||||||
getRootR :: Handler Html
|
getRootR :: Handler Html
|
||||||
getRootR = do
|
getRootR = do
|
||||||
sess <- getSession
|
sess <- getSession
|
||||||
@ -144,7 +146,7 @@ mkFoundation = do
|
|||||||
, loadPlugin oauth2Upcase "UPCASE"
|
, loadPlugin oauth2Upcase "UPCASE"
|
||||||
]
|
]
|
||||||
|
|
||||||
return App{..}
|
return App {..}
|
||||||
where
|
where
|
||||||
loadPlugin f prefix = do
|
loadPlugin f prefix = do
|
||||||
clientId <- getEnv $ prefix <> "_CLIENT_ID"
|
clientId <- getEnv $ prefix <> "_CLIENT_ID"
|
||||||
|
|||||||
@ -54,7 +54,8 @@ module Yesod.Auth.OAuth2.Prelude
|
|||||||
-- * Temporary, until I finish re-structuring modules
|
-- * Temporary, until I finish re-structuring modules
|
||||||
, authOAuth2
|
, authOAuth2
|
||||||
, authOAuth2Widget
|
, authOAuth2Widget
|
||||||
) where
|
)
|
||||||
|
where
|
||||||
|
|
||||||
import Control.Exception.Safe
|
import Control.Exception.Safe
|
||||||
import Data.Aeson
|
import Data.Aeson
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user