mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
Create separate key for Bounces API
This commit is contained in:
parent
b892927f11
commit
1b6c451656
5 changed files with 14 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue