hoauth2 1.8.3 → 1.8.4
raw patch · 2 files changed
+28/−26 lines, 2 filesdep ~unordered-containersPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: unordered-containers
API changes (from Hackage documentation)
Files
- example/Keys.hs +26/−24
- hoauth2.cabal +2/−2
example/Keys.hs view
@@ -8,50 +8,51 @@ import URI.ByteString.QQ weiboKey :: OAuth2-weiboKey = OAuth2 { oauthClientId = "xxxxxxxxxxxxxxx"- , oauthClientSecret = "xxxxxxxxxxxxxxxxxxxxxx"- , oauthCallback = Just [uri|http://127.0.0.1:9988/oauthCallback|]- , oauthOAuthorizeEndpoint = [uri|https://api.weibo.com/oauth2/authorize|]- , oauthAccessTokenEndpoint = [uri|https://api.weibo.com/oauth2/access_token|]- }+weiboKey = OAuth2 { oauthClientId = "1962132691"+ , oauthClientSecret = "a2ad30383bdff9bcb12be6a3d30deeb1"+ , oauthCallback = Just [uri|http://127.0.0.1:9988/oauthCallback|]+ , oauthOAuthorizeEndpoint = [uri|https://api.weibo.com/oauth2/authorize|]+ , oauthAccessTokenEndpoint = [uri|https://api.weibo.com/oauth2/access_token|]+ } -- | http://developer.github.com/v3/oauth/ githubKey :: OAuth2-githubKey = OAuth2 { oauthClientId = "xxxxxxxxxxxxxxx"- , oauthClientSecret = "xxxxxxxxxxxxxxxxxxxxxx"- , oauthCallback = Just [uri|http://127.0.0.1:9988/githubCallback|]- , oauthOAuthorizeEndpoint = [uri|https://github.com/login/oauth/authorize|]- , oauthAccessTokenEndpoint = [uri|https://github.com/login/oauth/access_token|]- }+githubKey = OAuth2 { oauthClientId = "bf86d338485a96a93c88"+ , oauthClientSecret = "a1c00dada665dc00aa6fafe0495c7c885f82d1ce"+ , oauthCallback = Just [uri|http://127.0.0.1:9988/githubCallback|]+ , oauthOAuthorizeEndpoint = [uri|https://github.com/login/oauth/authorize|]+ , oauthAccessTokenEndpoint = [uri|https://github.com/login/oauth/access_token|]+ } -- | oauthCallback = Just "https://developers.google.com/oauthplayground" googleKey :: OAuth2-googleKey = OAuth2 { oauthClientId = "xxxxxxxxxxxxxxx.apps.googleusercontent.com"- , oauthClientSecret = "xxxxxxxxxxxxxxxxxxxxxx"+googleKey = OAuth2 { oauthClientId = "886894027376.apps.googleusercontent.com"+ , oauthClientSecret = "27w98gwGB1h8N5a6JQ2bT_nm" , oauthCallback = Just [uri|http://127.0.0.1:9988/googleCallback|] , oauthOAuthorizeEndpoint = [uri|https://accounts.google.com/o/oauth2/auth|] , oauthAccessTokenEndpoint = [uri|https://www.googleapis.com/oauth2/v3/token|] } + facebookKey :: OAuth2-facebookKey = OAuth2 { oauthClientId = "xxxxxxxxxxxxxxx"- , oauthClientSecret = "xxxxxxxxxxxxxxxxxxxxxx"+facebookKey = OAuth2 { oauthClientId = "414630782030965"+ , oauthClientSecret = "0e648eae100da4d03f16594f231fc1d0" , oauthCallback = Just [uri|http://t.haskellcn.org/cb|] , oauthOAuthorizeEndpoint = [uri|https://www.facebook.com/dialog/oauth|] , oauthAccessTokenEndpoint = [uri|https://graph.facebook.com/v2.3/oauth/access_token|] } doubanKey :: OAuth2-doubanKey = OAuth2 { oauthClientId = "xxxxxxxxxxxxxxx"- , oauthClientSecret = "xxxxxxxxxxxxxxxxxxxxxx"+doubanKey = OAuth2 { oauthClientId = "02a914cf299ca31607fb3e6d7cd5e942"+ , oauthClientSecret = "3c0fdef13b0dd271" , oauthCallback = Just [uri|http://localhost:9999/oauthCallback|] , oauthOAuthorizeEndpoint = [uri|https://www.douban.com/service/auth2/auth|] , oauthAccessTokenEndpoint = [uri|https://www.douban.com/service/auth2/token|] } fitbitKey :: OAuth2-fitbitKey = OAuth2 { oauthClientId = "xxxxxx"- , oauthClientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"+fitbitKey = OAuth2 { oauthClientId = "229LN9"+ , oauthClientSecret = "2f4aa9a275c2d4bb9eb616efbd2c1311" , oauthCallback = Just [uri|http://localhost:9988/oauth2/callback|] , oauthOAuthorizeEndpoint = [uri|https://www.fitbit.com/oauth2/authorize|] , oauthAccessTokenEndpoint = [uri|https://api.fitbit.com/oauth2/token|]@@ -63,15 +64,16 @@ stackexchangeAppKey = "xxxxxx" stackexchangeKey :: OAuth2-stackexchangeKey = OAuth2 { oauthClientId = "xx"- , oauthClientSecret = "xxxxxxxxxxxxxxx"+stackexchangeKey = OAuth2 { oauthClientId = "7185"+ , oauthClientSecret = "K5hK)ET*dbFGFmNFVtqIyA((" , oauthCallback = Just [uri|http://c.haskellcn.org/cb|] , oauthOAuthorizeEndpoint = [uri|https://stackexchange.com/oauth|] , oauthAccessTokenEndpoint = [uri|https://stackexchange.com/oauth/access_token|] }+ dropboxKey :: OAuth2-dropboxKey = OAuth2 { oauthClientId = "xxx"- , oauthClientSecret = "xxx"+dropboxKey = OAuth2 { oauthClientId = "zbyxxox19gz6dgg"+ , oauthClientSecret = "ihhui0ysp85oi8s" , oauthCallback = Just [uri|http://localhost:9988/oauth2/callback|] , oauthOAuthorizeEndpoint = [uri|https://www.dropbox.com/1/oauth2/authorize|] , oauthAccessTokenEndpoint = [uri|https://api.dropboxapi.com/oauth2/token|]
hoauth2.cabal view
@@ -1,6 +1,6 @@ Name: hoauth2 -- http://wiki.haskell.org/Package_versioning_policy-Version: 1.8.3+Version: 1.8.4 Synopsis: Haskell OAuth2 authentication client @@ -131,7 +131,7 @@ containers >= 0.4 && < 0.7, aeson >= 1.0.0.0 && < 1.5, microlens >= 0.4.0 && < 0.5,- unordered-containers >= 0.2.8 && < 0.2.10,+ unordered-containers >= 0.2.5, wai-extra >= 3.0.21.0 && < 3.0.25.0, wai-middleware-static >= 0.8.1 && < 0.8.3, mustache >= 2.2.3 && < 2.4.0,