mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
21 lines
588 B
Ruby
21 lines
588 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Eeid
|
|
# This class handles identification services.
|
|
class IdentificationService < Base
|
|
CLIENT_ID = ENV['ident_service_client_id']
|
|
CLIENT_SECRET = ENV['ident_service_client_secret']
|
|
|
|
def initialize
|
|
super(CLIENT_ID, CLIENT_SECRET)
|
|
end
|
|
|
|
def create_identification_request(request_params)
|
|
request_endpoint('/api/ident/v1/identification_requests', method: :post, body: request_params)
|
|
end
|
|
|
|
def get_identification_request(id)
|
|
request_endpoint("/api/ident/v1/identification_requests/#{id}")
|
|
end
|
|
end
|
|
end
|