Merge pull request #1742 from internetee/registrant-confirmation-api

Registrant API: domain registrant confirmations
This commit is contained in:
Timo Võhmar 2020-11-20 13:46:31 +02:00 committed by GitHub
commit 854878ebdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 436 additions and 11 deletions

View file

@ -87,6 +87,9 @@ sk_digi_doc_service_name: 'Testimine'
registrant_api_base_url:
registrant_api_auth_allowed_ips: '127.0.0.1, 0.0.0.0' #ips, separated with commas
# Base URL (inc. https://) of REST registrant portal
# Leave blank to use internal registrant portal
registrant_portal_verifications_base_url: ''
#
# MISC

View file

@ -56,6 +56,8 @@ Rails.application.routes.draw do
namespace :v1 do
namespace :registrant do
post 'auth/eid', to: 'auth#eid'
get 'confirms/:name/:template/:token', to: 'confirms#index', constraints: { name: /[^\/]+/ }
post 'confirms/:name/:template/:token/:decision', to: 'confirms#update', constraints: { name: /[^\/]+/ }
resources :domains, only: %i[index show], param: :uuid do
resource :registry_lock, only: %i[create destroy]