Skip to content

Commit

Permalink
Release v0.15.3.pre
Browse files Browse the repository at this point in the history
* bug-fixes
  * Add `URI.decode` on signature validation
  • Loading branch information
gersanco authored Jun 18, 2020
1 parent fa4c60d commit 480a72b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### v0.15.3.pre

* bug-fixes
* Add `URI.decode` on signature validation

### v0.15.2.pre

* bug-fixes
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
beyond_canvas (0.15.2.pre)
beyond_canvas (0.15.3.pre)
beyond_api (~> 0.8)
bourbon (~> 5.1)
colorize (~> 0.8)
Expand Down Expand Up @@ -46,7 +46,7 @@ GEM
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
ast (2.4.0)
beyond_api (0.11.0.pre)
beyond_api (0.11.1.pre)
faraday (~> 0.15)
bourbon (5.1.0)
sass (~> 3.4)
Expand Down Expand Up @@ -74,7 +74,7 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
loofah (2.5.0)
loofah (2.6.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def app_installation_data
def valid_signature?(signature, data, secret)
digest = OpenSSL::Digest.new('SHA1')
hmac = OpenSSL::HMAC.digest(digest, secret, data)
signature == Base64.encode64(hmac).chop
URI.decode(signature) == Base64.encode64(hmac).chop
end
end
end
2 changes: 1 addition & 1 deletion lib/beyond_canvas/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module BeyondCanvas
VERSION = '0.15.2.pre'
VERSION = '0.15.3.pre'
end

0 comments on commit 480a72b

Please sign in to comment.