Create separate key for Bounces API

This commit is contained in:
Karl Erik Õunapuu 2021-02-10 12:17:32 +02:00
parent b892927f11
commit 1b6c451656
No known key found for this signature in database
GPG key ID: C9DD647298A34764
5 changed files with 14 additions and 7 deletions

View file

@ -11,7 +11,7 @@ module Api
end
def authenticate_shared_key
api_key = "Basic #{ENV['internal_api_key']}"
api_key = "Basic #{ENV['rwhois_internal_api_shared_key']}"
head(:unauthorized) unless api_key == request.authorization
end