Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-authenticate-oauth for 
openSUSE:Factory checked in at 2021-06-23 17:38:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-authenticate-oauth (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-authenticate-oauth.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-authenticate-oauth"

Wed Jun 23 17:38:18 2021 rev:2 rq:901445 version:1.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-authenticate-oauth/ghc-authenticate-oauth.changes
    2020-12-22 11:52:12.234106716 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-authenticate-oauth.new.2625/ghc-authenticate-oauth.changes
  2021-06-23 17:38:22.520483314 +0200
@@ -1,0 +2,8 @@
+Mon Jun 21 05:22:45 UTC 2021 - [email protected]
+
+- Update authenticate-oauth to version 1.7.
+  ## 1.7
+
+  * Add support for following new SignMethod `HMACSHA256`, `HMACSHA512`, 
`RSASHA256`, `RSASHA512`
+
+-------------------------------------------------------------------

Old:
----
  authenticate-oauth-1.6.0.1.tar.gz
  authenticate-oauth.cabal

New:
----
  authenticate-oauth-1.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-authenticate-oauth.spec ++++++
--- /var/tmp/diff_new_pack.qeZ9AO/_old  2021-06-23 17:38:23.224484283 +0200
+++ /var/tmp/diff_new_pack.qeZ9AO/_new  2021-06-23 17:38:23.228484288 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-authenticate-oauth
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,12 @@
 
 %global pkg_name authenticate-oauth
 Name:           ghc-%{pkg_name}
-Version:        1.6.0.1
+Version:        1.7
 Release:        0
 Summary:        Library to authenticate with OAuth for Haskell web applications
 License:        BSD-2-Clause
 URL:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-RSA-devel
 BuildRequires:  ghc-SHA-devel
@@ -59,7 +58,6 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ authenticate-oauth-1.6.0.1.tar.gz -> authenticate-oauth-1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/authenticate-oauth-1.6.0.1/ChangeLog.md 
new/authenticate-oauth-1.7/ChangeLog.md
--- old/authenticate-oauth-1.6.0.1/ChangeLog.md 2019-10-22 08:06:30.000000000 
+0200
+++ new/authenticate-oauth-1.7/ChangeLog.md     2021-06-20 09:31:19.000000000 
+0200
@@ -1,3 +1,7 @@
+## 1.7
+
+* Add support for following new SignMethod `HMACSHA256`, `HMACSHA512`, 
`RSASHA256`, `RSASHA512`
+
 ## 1.6
 
 * Add checkOAuth
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/authenticate-oauth-1.6.0.1/Web/Authenticate/OAuth.hs 
new/authenticate-oauth-1.7/Web/Authenticate/OAuth.hs
--- old/authenticate-oauth-1.6.0.1/Web/Authenticate/OAuth.hs    2019-10-22 
08:06:30.000000000 +0200
+++ new/authenticate-oauth-1.7/Web/Authenticate/OAuth.hs        2021-06-20 
09:31:19.000000000 +0200
@@ -65,7 +65,7 @@
 #else
 import Data.Data
 #endif
-import Codec.Crypto.RSA (rsassa_pkcs1_v1_5_sign, hashSHA1)
+import Codec.Crypto.RSA (rsassa_pkcs1_v1_5_sign, hashSHA1, hashSHA256, 
hashSHA512)
 
 
 ----------------------------------------------------------------------
@@ -133,7 +133,11 @@
 -- | Data type for signature method.
 data SignMethod = PLAINTEXT
                 | HMACSHA1
+                | HMACSHA256
+                | HMACSHA512
                 | RSASHA1 PrivateKey
+                | RSASHA256 PrivateKey
+                | RSASHA512 PrivateKey
                   deriving (Show, Eq, Read, Data, Typeable)
 
 
@@ -290,10 +294,22 @@
       text <- getBaseString tok req
       let key  = BS.intercalate "&" $ map paramEncode [oauthConsumerSecret oa, 
tokenSecret tok]
       return $ encode $ toStrict $ bytestringDigest $ hmacSha1 (fromStrict 
key) text
+    HMACSHA256 -> do
+      text <- getBaseString tok req
+      let key  = BS.intercalate "&" $ map paramEncode [oauthConsumerSecret oa, 
tokenSecret tok]
+      return $ encode $ toStrict $ bytestringDigest $ hmacSha256 (fromStrict 
key) text
+    HMACSHA512 -> do
+      text <- getBaseString tok req
+      let key  = BS.intercalate "&" $ map paramEncode [oauthConsumerSecret oa, 
tokenSecret tok]
+      return $ encode $ toStrict $ bytestringDigest $ hmacSha512 (fromStrict 
key) text
     PLAINTEXT ->
       return $ BS.intercalate "&" $ map paramEncode [oauthConsumerSecret oa, 
tokenSecret tok]
     RSASHA1 pr ->
       liftM (encode . toStrict . rsassa_pkcs1_v1_5_sign hashSHA1 pr) 
(getBaseString tok req)
+    RSASHA256 pr ->
+      liftM (encode . toStrict . rsassa_pkcs1_v1_5_sign hashSHA256 pr) 
(getBaseString tok req)
+    RSASHA512 pr ->
+      liftM (encode . toStrict . rsassa_pkcs1_v1_5_sign hashSHA512 pr) 
(getBaseString tok req)
 
 -- | Test existing OAuth signature.
 --   Since 1.5.2
@@ -513,7 +529,11 @@
 showSigMtd :: SignMethod -> BS.ByteString
 showSigMtd PLAINTEXT = "PLAINTEXT"
 showSigMtd HMACSHA1  = "HMAC-SHA1"
+showSigMtd HMACSHA256  = "HMAC-SHA256"
+showSigMtd HMACSHA512  = "HMAC-SHA512"
 showSigMtd (RSASHA1 _) = "RSA-SHA1"
+showSigMtd (RSASHA256 _) = "RSA-SHA256"
+showSigMtd (RSASHA512 _) = "RSA-SHA512"
 
 addNonce :: MonadIO m => Credential -> m Credential
 addNonce cred = do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/authenticate-oauth-1.6.0.1/authenticate-oauth.cabal 
new/authenticate-oauth-1.7/authenticate-oauth.cabal
--- old/authenticate-oauth-1.6.0.1/authenticate-oauth.cabal     2019-10-22 
08:08:23.000000000 +0200
+++ new/authenticate-oauth-1.7/authenticate-oauth.cabal 2021-06-20 
10:11:58.000000000 +0200
@@ -1,5 +1,6 @@
+cabal-version:   >= 1.10
 name:            authenticate-oauth
-version:         1.6.0.1
+version:         1.7
 license:         BSD3
 license-file:    LICENSE
 author:          Hiromi Ishii
@@ -8,13 +9,13 @@
 description:     API docs and the README are available at 
<http://www.stackage.org/package/authenticate-oauth>.
 category:        Web
 stability:       Stable
-cabal-version:   >= 1.6
 build-type:      Simple
 homepage:        http://github.com/yesodweb/authenticate
 extra-source-files: README.md ChangeLog.md
 
 library
-    build-depends:   base                          >= 4        && < 5
+    default-language: Haskell2010
+    build-depends:   base                          >= 4.10     && < 5
                    , http-client                   >= 0.3
                    , transformers                  >= 0.1      && < 0.6
                    , bytestring                    >= 0.9
@@ -22,7 +23,7 @@
                    , RSA                           >= 2.0      && < 2.5
                    , time
                    , data-default
-                   , base64-bytestring             >= 0.1      && < 1.1
+                   , base64-bytestring             >= 0.1      && < 1.3
                    , SHA                           >= 1.4      && < 1.7
                    , random
                    , http-types                    >= 0.6

Reply via email to