Expand TARA auth flow to registrant portal

This commit is contained in:
Karl Erik Õunapuu 2020-10-01 17:01:54 +03:00
parent 248c984443
commit 04f0ef9a93
No known key found for this signature in database
GPG key ID: C9DD647298A34764
7 changed files with 85 additions and 27 deletions

View file

@ -176,6 +176,9 @@ Rails.application.routes.draw do
# Client certificate is asked only on login form submission, therefore the path must be different from the one in
# `new_registrant_user_session_path` route, in case some other auth type will be implemented
post 'id' => 'sessions#create', as: :id_card_sign_in
match '/open_id/callback', via: %i[get post], to: 'tara#callback', as: :tara_registrant_callback
match '/open_id/cancel', via: %i[get post delete], to: 'tara#cancel',
as: :tara_registrant_cancel
end
resources :registrars, only: :show