- Add Check#find_by_url method (@ctrlaltdylan)
- Add support for applicant deletion and restore endpoints
- Add support for region-specific environments (@stephencookdev)
- Add support for the Live Video resource (#55) (@Intrepidd)
- Automatically detect the correct Onfido API region to use based on the provided API key (#49) (@tpinto)
- Add support for download, find and retrieve all for live_photo resource (@kirsis)
- Remove the ability to create Documents and Live Photos from a remote URL or local path, mitigating a potential security vulnerability (see #45 for details) (@timrogers)
- Drop support for Ruby versions earlier than 2.2.0, since they have reached end-of-life (@timrogers)
- Replace use of
method_missing
with explicitly-defined accessors when accessing resources from anOnfido::API
instance (@hmac)
- Add support for
Onfido::SdkToken
resource (@robotmay)
- Relax Rack dependency to allow all versions where
Rack::Utils.secure_compare
is available (@metade)
- Fix
Content-Type
header handling to be more permissive when detecting JSON (e.g. still recognise the type as JSON when the charset is appended to the header) (@sponomarev) - Update
rest-client
dependency to 2.x (@timrogers) - Update
WebMock
dependendency to 2.x (@timrogers)
- Add support for
put
anddelete
http methods toOnfido::Resource
- Support no content and binary responses at
Onfido::Resource
- Add support for
Onfido::ReportTypeGroup
resource - Add support for update and destroy applicant resource
- Add support for download, find and retrieve all for document resource
- Add support for resume checks
- Add support for resume and cancel report
- Fix creation of live photos through
Onfido::LivePhoto
resource
- Add support for dynamic API keys (see https://github.com/hvssle/onfido#usage)
- Fix
Onfido::Resource
so it raisesOnfido::ConnectionError
on HTTP Error 408 Request Timeout
- Fix
Onfido::API.live_photo
so it returns anOnfido::LivePhoto
instance (see #14)
- Add
expand
option toOnfido::Check.find
andOnfido::Check.all
. See #11 for details.
- Add
Onfido::Webhook.valid?
method, for checking the signature of a webhook from Onfido
- BREAKING: target v2 of the Onfido API. To continue using v1, specify this
version in
Onfido.configure
- Add
api_version
configuration option (see https://github.com/hvssle/onfido#configuration) - Add support for
Onfido::LivePhoto
resource
- Add support for
Onfido::Webhook
resource
- BREAKING: adds
Onfido::ServerError
, which is raised whenever Onfido responds with a 5xx code. PreviouslyOnfido::RequestError
would have been raised, but this is now reserved for non-5xx responses.
- BREAKING: remove
throws_exceptions
option. We now always throw exceptions for errors. This option had become confusing sinceOnfido::ConnectionError
was added in v0.0.4, since timeout errors were raised regardless of its value. - Add base errors class (
Onfido::OnfidoError
) - Add rubocop, and fix style inconsistencies
- Split out connection errors so they can be automatically retried