yesod-auth-oauth 0.2 → 0.3
raw patch · 2 files changed
+8/−7 lines, 2 filesdep ~yesoddep ~yesod-authPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: yesod, yesod-auth
API changes (from Hackage documentation)
Files
Yesod/Helpers/Auth/OAuth.hs view
@@ -12,6 +12,7 @@ import qualified Network.OAuth.Http.Request as OA import Network.OAuth.Http.CurlHttpClient import Data.Maybe+import Data.String oauthUrl :: String -> AuthRoute oauthUrl name = PluginR name ["forward"]@@ -34,8 +35,8 @@ let app = Application key sec (URL $ render $ tm url) tok <- runOAuthM (fromApplication app) $ do signRq2 HMACSHA1 Nothing (fromJust . parseURL $ reqUrl) >>= oauthRequest CurlClient- let oaUrl = concat- [authUrl+ let oaUrl = fromString $ concat+ [ authUrl , "?oauth_token=" , findWithDefault ("oauth_token", "ERR") $ oauthParams tok ]@@ -56,7 +57,7 @@ setCreds True creds dispatch _ _ = notFound login tm = do- render <- liftHandler getUrlRender+ render <- lift getUrlRender let oaUrl = render $ tm $ oauthUrl name addHtml #if GHC7@@ -64,7 +65,7 @@ #else [$hamlet| #endif- %a!href=$oaUrl$ Login with $name$+ <a>!href=$oaUrl$ Login with $name$ |] authTwitter :: YesodAuth m =>
yesod-auth-oauth.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version: 0.2+Version: 0.3 -- A short (one-line) description of the package. Synopsis: OAuth wrapper for yesod-auth@@ -48,8 +48,8 @@ Exposed-modules: Yesod.Helpers.Auth.OAuth -- Packages needed in order to build this package.- Build-depends: base >= 4 && < 5, hoauth >= 0.3 && <0.4, yesod-auth >= 0.2 && < 0.3,- yesod >= 0.6 && < 0.7+ Build-depends: base >= 4 && < 5, hoauth >= 0.3 && <0.4, yesod-auth >= 0.3 && < 0.4,+ yesod >= 0.7 && < 0.8 -- Modules not exported by this package. -- Other-modules: