
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
ebay-notification_api-verifier
Advanced tools
The Ruby implementation of eBay Notification API verification.
In future it might be used for different cases, but for now eBay requires third–party applications that store user data to implement eBay Marketplace Account Deletion/Closure Notifications Workflow. When such HTTP request is received, the backend must ensure, that this request is coming from eBay:
class EbayAccountDeletionController < ApplicationController
def account_deletion_notification
# eBay wants an immediate response, so we should postpone the deletion
EbayAccountDeletionWorker.perform_async(params, request.headers["x-ebay-signature"])
head :ok
end
end
class EbayAccountDeletionWorker
include Sidekiq::Worker
def perform(message, signature)
return unless Ebay::NotificationApi::Verifier.valid_message?(message, signature)
# delete data
end
end
⚠️ Heads up! Currently eBay supports only ECDSA/SHA1 encryption, and so does the gem. If something different is passed to the Verifier, the Ebay::NotificationApi::Verifier::WrongAlgorithm would be raised. ⚠️
Add this line to your application's Gemfile:
gem 'ebay-notification_api-verifier'
Since we have to perform a request to fetch the public key, the ability to get application token should be provided to the verifier. You can pass any callable object:
Ebay::NotificationApi::Verifier.application_token_proc = proc { "token" }
Ebay::NotificationApi::Verifier.application_token_proc = Ebay::TokenFetcher.fetch
Bug reports and pull requests are welcome on GitHub at https://github.com/dmitrytsepelev/ebay-notification_api-verifier.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that ebay-notification_api-verifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.