mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
Change name of API key
This commit is contained in:
parent
83b5dc6fc7
commit
bb7effc370
2 changed files with 4 additions and 1 deletions
|
@ -11,7 +11,7 @@ module Api
|
|||
end
|
||||
|
||||
def authenticate_shared_key
|
||||
api_key = "Basic #{ENV['api_shared_key']}"
|
||||
api_key = "Basic #{ENV['internal_api_key']}"
|
||||
head(:unauthorized) unless api_key == request.authorization
|
||||
end
|
||||
|
||||
|
|
|
@ -90,6 +90,9 @@ registrant_api_auth_allowed_ips: '127.0.0.1, 0.0.0.0' #ips, separated with comma
|
|||
# Bounces API
|
||||
api_shared_key: testkey
|
||||
|
||||
# Link to REST-WHOIS API
|
||||
internal_api_key: testkey
|
||||
|
||||
# Base URL (inc. https://) of REST registrant portal
|
||||
# Leave blank to use internal registrant portal
|
||||
registrant_portal_verifications_base_url: ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue