onfido 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +17 -1
- data/lib/onfido/api/default_api.rb +79 -79
- data/lib/onfido/api_client.rb +1 -1
- data/lib/onfido/configuration.rb +88 -0
- data/lib/onfido/version.rb +1 -1
- data/spec/shared_contexts/with_onfido.rb +14 -2
- metadata +23 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb529a3e1878553b602345173a70d9eca693eed629ae5bda60cd68ddb04b21a0
|
|
4
|
+
data.tar.gz: '09845784b34ca211cfad3b3a26c394007d4c1feb992e705a59397bc5b09b90fc'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b69846bf32e944d33210bc7ad1ea53005c07beed23fe5fddabb4bed296fa09f07598d7e90b1d937bbe3132cfb9d04911b761537724d709790cdefa01312cb9dc
|
|
7
|
+
data.tar.gz: 753949e7b75eced4bb13d2fd3e0fa255865436c5bb81bbbb6b986c79a3b0ae2fbf91d3b91497e54a0d9254b0c19a7c0a0ddab8e25aa5b1943c4c033bf8cc792b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v6.1.0 6th May 2026
|
|
4
|
+
|
|
5
|
+
- Release based on Onfido OpenAPI spec version [v6.0.1](https://github.com/onfido/onfido-openapi-spec/releases/tag/v6.0.1):
|
|
6
|
+
- BIO-8421] Document two new number_of_ip_reuse_reports fields
|
|
7
|
+
- Fix flaky timeline file spec
|
|
8
|
+
|
|
3
9
|
## v6.0.0 19th February 2026
|
|
4
10
|
|
|
5
11
|
- Release based on Onfido OpenAPI spec version [v6.0.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v6.0.0):
|
data/README.md
CHANGED
|
@@ -14,7 +14,7 @@ This version uses Onfido API v3.6. Refer to our [API versioning guide](https://d
|
|
|
14
14
|
### Installation
|
|
15
15
|
|
|
16
16
|
```ruby
|
|
17
|
-
gem 'onfido', '~> 6.
|
|
17
|
+
gem 'onfido', '~> 6.2.0'
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Configure with your API token, region and optional timeout (default value is 30):
|
|
@@ -31,6 +31,22 @@ end
|
|
|
31
31
|
onfido_api = Onfido::DefaultApi.new
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
You can also authenticate using OAuth2 client credentials instead of an API token:
|
|
35
|
+
|
|
36
|
+
```ruby
|
|
37
|
+
require 'onfido'
|
|
38
|
+
|
|
39
|
+
Onfido.configure do |config|
|
|
40
|
+
config.set_oauth_credentials(ENV["ONFIDO_OAUTH_CLIENT_ID"], ENV["ONFIDO_OAUTH_CLIENT_SECRET"])
|
|
41
|
+
config.region = config.region[:EU]
|
|
42
|
+
config.timeout = 30
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
onfido_api = Onfido::DefaultApi.new
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The client will automatically exchange credentials for an access token and refresh it when it expires.
|
|
49
|
+
|
|
34
50
|
All resources share the same interface when making API calls. Use `.create` to create a resource, `.find` to find one, and `.all` to fetch all resources.
|
|
35
51
|
|
|
36
52
|
### Making a call to the API
|
|
@@ -63,7 +63,7 @@ module Onfido
|
|
|
63
63
|
return_type = opts[:debug_return_type]
|
|
64
64
|
|
|
65
65
|
# auth_names
|
|
66
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
66
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
67
67
|
|
|
68
68
|
new_options = opts.merge(
|
|
69
69
|
:operation => :"DefaultApi.cancel_report",
|
|
@@ -143,7 +143,7 @@ module Onfido
|
|
|
143
143
|
return_type = opts[:debug_return_type]
|
|
144
144
|
|
|
145
145
|
# auth_names
|
|
146
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
146
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
147
147
|
|
|
148
148
|
new_options = opts.merge(
|
|
149
149
|
:operation => :"DefaultApi.complete_task",
|
|
@@ -211,7 +211,7 @@ module Onfido
|
|
|
211
211
|
return_type = opts[:debug_return_type] || 'Applicant'
|
|
212
212
|
|
|
213
213
|
# auth_names
|
|
214
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
214
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
215
215
|
|
|
216
216
|
new_options = opts.merge(
|
|
217
217
|
:operation => :"DefaultApi.create_applicant",
|
|
@@ -279,7 +279,7 @@ module Onfido
|
|
|
279
279
|
return_type = opts[:debug_return_type] || 'Check'
|
|
280
280
|
|
|
281
281
|
# auth_names
|
|
282
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
282
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
283
283
|
|
|
284
284
|
new_options = opts.merge(
|
|
285
285
|
:operation => :"DefaultApi.create_check",
|
|
@@ -342,7 +342,7 @@ module Onfido
|
|
|
342
342
|
return_type = opts[:debug_return_type] || 'TimelineFileReference'
|
|
343
343
|
|
|
344
344
|
# auth_names
|
|
345
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
345
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
346
346
|
|
|
347
347
|
new_options = opts.merge(
|
|
348
348
|
:operation => :"DefaultApi.create_timeline_file",
|
|
@@ -410,7 +410,7 @@ module Onfido
|
|
|
410
410
|
return_type = opts[:debug_return_type] || 'WatchlistMonitor'
|
|
411
411
|
|
|
412
412
|
# auth_names
|
|
413
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
413
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
414
414
|
|
|
415
415
|
new_options = opts.merge(
|
|
416
416
|
:operation => :"DefaultApi.create_watchlist_monitor",
|
|
@@ -478,7 +478,7 @@ module Onfido
|
|
|
478
478
|
return_type = opts[:debug_return_type] || 'Webhook'
|
|
479
479
|
|
|
480
480
|
# auth_names
|
|
481
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
481
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
482
482
|
|
|
483
483
|
new_options = opts.merge(
|
|
484
484
|
:operation => :"DefaultApi.create_webhook",
|
|
@@ -546,7 +546,7 @@ module Onfido
|
|
|
546
546
|
return_type = opts[:debug_return_type] || 'WorkflowRun'
|
|
547
547
|
|
|
548
548
|
# auth_names
|
|
549
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
549
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
550
550
|
|
|
551
551
|
new_options = opts.merge(
|
|
552
552
|
:operation => :"DefaultApi.create_workflow_run",
|
|
@@ -609,7 +609,7 @@ module Onfido
|
|
|
609
609
|
return_type = opts[:debug_return_type]
|
|
610
610
|
|
|
611
611
|
# auth_names
|
|
612
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
612
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
613
613
|
|
|
614
614
|
new_options = opts.merge(
|
|
615
615
|
:operation => :"DefaultApi.delete_applicant",
|
|
@@ -678,7 +678,7 @@ module Onfido
|
|
|
678
678
|
return_type = opts[:debug_return_type]
|
|
679
679
|
|
|
680
680
|
# auth_names
|
|
681
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
681
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
682
682
|
|
|
683
683
|
new_options = opts.merge(
|
|
684
684
|
:operation => :"DefaultApi.delete_passkey",
|
|
@@ -741,7 +741,7 @@ module Onfido
|
|
|
741
741
|
return_type = opts[:debug_return_type]
|
|
742
742
|
|
|
743
743
|
# auth_names
|
|
744
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
744
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
745
745
|
|
|
746
746
|
new_options = opts.merge(
|
|
747
747
|
:operation => :"DefaultApi.delete_passkeys",
|
|
@@ -804,7 +804,7 @@ module Onfido
|
|
|
804
804
|
return_type = opts[:debug_return_type]
|
|
805
805
|
|
|
806
806
|
# auth_names
|
|
807
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
807
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
808
808
|
|
|
809
809
|
new_options = opts.merge(
|
|
810
810
|
:operation => :"DefaultApi.delete_watchlist_monitor",
|
|
@@ -867,7 +867,7 @@ module Onfido
|
|
|
867
867
|
return_type = opts[:debug_return_type]
|
|
868
868
|
|
|
869
869
|
# auth_names
|
|
870
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
870
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
871
871
|
|
|
872
872
|
new_options = opts.merge(
|
|
873
873
|
:operation => :"DefaultApi.delete_webhook",
|
|
@@ -938,7 +938,7 @@ module Onfido
|
|
|
938
938
|
return_type = opts[:debug_return_type] || 'File'
|
|
939
939
|
|
|
940
940
|
# auth_names
|
|
941
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
941
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
942
942
|
|
|
943
943
|
new_options = opts.merge(
|
|
944
944
|
:operation => :"DefaultApi.download_aes_document",
|
|
@@ -1001,7 +1001,7 @@ module Onfido
|
|
|
1001
1001
|
return_type = opts[:debug_return_type] || 'File'
|
|
1002
1002
|
|
|
1003
1003
|
# auth_names
|
|
1004
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1004
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1005
1005
|
|
|
1006
1006
|
new_options = opts.merge(
|
|
1007
1007
|
:operation => :"DefaultApi.download_check",
|
|
@@ -1064,7 +1064,7 @@ module Onfido
|
|
|
1064
1064
|
return_type = opts[:debug_return_type] || 'File'
|
|
1065
1065
|
|
|
1066
1066
|
# auth_names
|
|
1067
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1067
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1068
1068
|
|
|
1069
1069
|
new_options = opts.merge(
|
|
1070
1070
|
:operation => :"DefaultApi.download_document",
|
|
@@ -1127,7 +1127,7 @@ module Onfido
|
|
|
1127
1127
|
return_type = opts[:debug_return_type] || 'File'
|
|
1128
1128
|
|
|
1129
1129
|
# auth_names
|
|
1130
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1130
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1131
1131
|
|
|
1132
1132
|
new_options = opts.merge(
|
|
1133
1133
|
:operation => :"DefaultApi.download_document_video",
|
|
@@ -1190,7 +1190,7 @@ module Onfido
|
|
|
1190
1190
|
return_type = opts[:debug_return_type] || 'File'
|
|
1191
1191
|
|
|
1192
1192
|
# auth_names
|
|
1193
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1193
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1194
1194
|
|
|
1195
1195
|
new_options = opts.merge(
|
|
1196
1196
|
:operation => :"DefaultApi.download_evidence_folder",
|
|
@@ -1253,7 +1253,7 @@ module Onfido
|
|
|
1253
1253
|
return_type = opts[:debug_return_type] || 'File'
|
|
1254
1254
|
|
|
1255
1255
|
# auth_names
|
|
1256
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1256
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1257
1257
|
|
|
1258
1258
|
new_options = opts.merge(
|
|
1259
1259
|
:operation => :"DefaultApi.download_id_photo",
|
|
@@ -1316,7 +1316,7 @@ module Onfido
|
|
|
1316
1316
|
return_type = opts[:debug_return_type] || 'File'
|
|
1317
1317
|
|
|
1318
1318
|
# auth_names
|
|
1319
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1319
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1320
1320
|
|
|
1321
1321
|
new_options = opts.merge(
|
|
1322
1322
|
:operation => :"DefaultApi.download_live_photo",
|
|
@@ -1379,7 +1379,7 @@ module Onfido
|
|
|
1379
1379
|
return_type = opts[:debug_return_type] || 'File'
|
|
1380
1380
|
|
|
1381
1381
|
# auth_names
|
|
1382
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1382
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1383
1383
|
|
|
1384
1384
|
new_options = opts.merge(
|
|
1385
1385
|
:operation => :"DefaultApi.download_live_video",
|
|
@@ -1442,7 +1442,7 @@ module Onfido
|
|
|
1442
1442
|
return_type = opts[:debug_return_type] || 'File'
|
|
1443
1443
|
|
|
1444
1444
|
# auth_names
|
|
1445
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1445
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1446
1446
|
|
|
1447
1447
|
new_options = opts.merge(
|
|
1448
1448
|
:operation => :"DefaultApi.download_live_video_frame",
|
|
@@ -1505,7 +1505,7 @@ module Onfido
|
|
|
1505
1505
|
return_type = opts[:debug_return_type] || 'File'
|
|
1506
1506
|
|
|
1507
1507
|
# auth_names
|
|
1508
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1508
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1509
1509
|
|
|
1510
1510
|
new_options = opts.merge(
|
|
1511
1511
|
:operation => :"DefaultApi.download_motion_capture",
|
|
@@ -1568,7 +1568,7 @@ module Onfido
|
|
|
1568
1568
|
return_type = opts[:debug_return_type] || 'File'
|
|
1569
1569
|
|
|
1570
1570
|
# auth_names
|
|
1571
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1571
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1572
1572
|
|
|
1573
1573
|
new_options = opts.merge(
|
|
1574
1574
|
:operation => :"DefaultApi.download_motion_capture_frame",
|
|
@@ -1631,7 +1631,7 @@ module Onfido
|
|
|
1631
1631
|
return_type = opts[:debug_return_type] || 'File'
|
|
1632
1632
|
|
|
1633
1633
|
# auth_names
|
|
1634
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1634
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1635
1635
|
|
|
1636
1636
|
new_options = opts.merge(
|
|
1637
1637
|
:operation => :"DefaultApi.download_nfc_face",
|
|
@@ -1702,7 +1702,7 @@ module Onfido
|
|
|
1702
1702
|
return_type = opts[:debug_return_type] || 'File'
|
|
1703
1703
|
|
|
1704
1704
|
# auth_names
|
|
1705
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1705
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1706
1706
|
|
|
1707
1707
|
new_options = opts.merge(
|
|
1708
1708
|
:operation => :"DefaultApi.download_qes_document",
|
|
@@ -1773,7 +1773,7 @@ module Onfido
|
|
|
1773
1773
|
return_type = opts[:debug_return_type] || 'File'
|
|
1774
1774
|
|
|
1775
1775
|
# auth_names
|
|
1776
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1776
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1777
1777
|
|
|
1778
1778
|
new_options = opts.merge(
|
|
1779
1779
|
:operation => :"DefaultApi.download_ses_document",
|
|
@@ -1836,7 +1836,7 @@ module Onfido
|
|
|
1836
1836
|
return_type = opts[:debug_return_type] || 'File'
|
|
1837
1837
|
|
|
1838
1838
|
# auth_names
|
|
1839
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1839
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1840
1840
|
|
|
1841
1841
|
new_options = opts.merge(
|
|
1842
1842
|
:operation => :"DefaultApi.download_signed_evidence_file",
|
|
@@ -1899,7 +1899,7 @@ module Onfido
|
|
|
1899
1899
|
return_type = opts[:debug_return_type] || 'File'
|
|
1900
1900
|
|
|
1901
1901
|
# auth_names
|
|
1902
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1902
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1903
1903
|
|
|
1904
1904
|
new_options = opts.merge(
|
|
1905
1905
|
:operation => :"DefaultApi.download_signing_document",
|
|
@@ -1967,7 +1967,7 @@ module Onfido
|
|
|
1967
1967
|
return_type = opts[:debug_return_type] || 'Extraction'
|
|
1968
1968
|
|
|
1969
1969
|
# auth_names
|
|
1970
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
1970
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
1971
1971
|
|
|
1972
1972
|
new_options = opts.merge(
|
|
1973
1973
|
:operation => :"DefaultApi.extract",
|
|
@@ -2031,7 +2031,7 @@ module Onfido
|
|
|
2031
2031
|
return_type = opts[:debug_return_type] || 'AddressesList'
|
|
2032
2032
|
|
|
2033
2033
|
# auth_names
|
|
2034
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2034
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2035
2035
|
|
|
2036
2036
|
new_options = opts.merge(
|
|
2037
2037
|
:operation => :"DefaultApi.find_addresses",
|
|
@@ -2094,7 +2094,7 @@ module Onfido
|
|
|
2094
2094
|
return_type = opts[:debug_return_type] || 'Applicant'
|
|
2095
2095
|
|
|
2096
2096
|
# auth_names
|
|
2097
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2097
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2098
2098
|
|
|
2099
2099
|
new_options = opts.merge(
|
|
2100
2100
|
:operation => :"DefaultApi.find_applicant",
|
|
@@ -2157,7 +2157,7 @@ module Onfido
|
|
|
2157
2157
|
return_type = opts[:debug_return_type] || 'Array<ApplicantConsent>'
|
|
2158
2158
|
|
|
2159
2159
|
# auth_names
|
|
2160
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2160
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2161
2161
|
|
|
2162
2162
|
new_options = opts.merge(
|
|
2163
2163
|
:operation => :"DefaultApi.find_applicant_consents",
|
|
@@ -2220,7 +2220,7 @@ module Onfido
|
|
|
2220
2220
|
return_type = opts[:debug_return_type] || 'Check'
|
|
2221
2221
|
|
|
2222
2222
|
# auth_names
|
|
2223
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2223
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2224
2224
|
|
|
2225
2225
|
new_options = opts.merge(
|
|
2226
2226
|
:operation => :"DefaultApi.find_check",
|
|
@@ -2283,7 +2283,7 @@ module Onfido
|
|
|
2283
2283
|
return_type = opts[:debug_return_type] || 'Document'
|
|
2284
2284
|
|
|
2285
2285
|
# auth_names
|
|
2286
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2286
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2287
2287
|
|
|
2288
2288
|
new_options = opts.merge(
|
|
2289
2289
|
:operation => :"DefaultApi.find_document",
|
|
@@ -2346,7 +2346,7 @@ module Onfido
|
|
|
2346
2346
|
return_type = opts[:debug_return_type] || 'IdPhoto'
|
|
2347
2347
|
|
|
2348
2348
|
# auth_names
|
|
2349
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2349
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2350
2350
|
|
|
2351
2351
|
new_options = opts.merge(
|
|
2352
2352
|
:operation => :"DefaultApi.find_id_photo",
|
|
@@ -2409,7 +2409,7 @@ module Onfido
|
|
|
2409
2409
|
return_type = opts[:debug_return_type] || 'LivePhoto'
|
|
2410
2410
|
|
|
2411
2411
|
# auth_names
|
|
2412
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2412
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2413
2413
|
|
|
2414
2414
|
new_options = opts.merge(
|
|
2415
2415
|
:operation => :"DefaultApi.find_live_photo",
|
|
@@ -2472,7 +2472,7 @@ module Onfido
|
|
|
2472
2472
|
return_type = opts[:debug_return_type] || 'LiveVideo'
|
|
2473
2473
|
|
|
2474
2474
|
# auth_names
|
|
2475
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2475
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2476
2476
|
|
|
2477
2477
|
new_options = opts.merge(
|
|
2478
2478
|
:operation => :"DefaultApi.find_live_video",
|
|
@@ -2535,7 +2535,7 @@ module Onfido
|
|
|
2535
2535
|
return_type = opts[:debug_return_type] || 'MotionCapture'
|
|
2536
2536
|
|
|
2537
2537
|
# auth_names
|
|
2538
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2538
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2539
2539
|
|
|
2540
2540
|
new_options = opts.merge(
|
|
2541
2541
|
:operation => :"DefaultApi.find_motion_capture",
|
|
@@ -2604,7 +2604,7 @@ module Onfido
|
|
|
2604
2604
|
return_type = opts[:debug_return_type] || 'Passkey'
|
|
2605
2605
|
|
|
2606
2606
|
# auth_names
|
|
2607
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2607
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2608
2608
|
|
|
2609
2609
|
new_options = opts.merge(
|
|
2610
2610
|
:operation => :"DefaultApi.find_passkey",
|
|
@@ -2667,7 +2667,7 @@ module Onfido
|
|
|
2667
2667
|
return_type = opts[:debug_return_type] || 'Report'
|
|
2668
2668
|
|
|
2669
2669
|
# auth_names
|
|
2670
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2670
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2671
2671
|
|
|
2672
2672
|
new_options = opts.merge(
|
|
2673
2673
|
:operation => :"DefaultApi.find_report",
|
|
@@ -2730,7 +2730,7 @@ module Onfido
|
|
|
2730
2730
|
return_type = opts[:debug_return_type] || 'SigningDocument'
|
|
2731
2731
|
|
|
2732
2732
|
# auth_names
|
|
2733
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2733
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2734
2734
|
|
|
2735
2735
|
new_options = opts.merge(
|
|
2736
2736
|
:operation => :"DefaultApi.find_signing_document",
|
|
@@ -2799,7 +2799,7 @@ module Onfido
|
|
|
2799
2799
|
return_type = opts[:debug_return_type] || 'Task'
|
|
2800
2800
|
|
|
2801
2801
|
# auth_names
|
|
2802
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2802
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2803
2803
|
|
|
2804
2804
|
new_options = opts.merge(
|
|
2805
2805
|
:operation => :"DefaultApi.find_task",
|
|
@@ -2868,7 +2868,7 @@ module Onfido
|
|
|
2868
2868
|
return_type = opts[:debug_return_type] || 'File'
|
|
2869
2869
|
|
|
2870
2870
|
# auth_names
|
|
2871
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2871
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2872
2872
|
|
|
2873
2873
|
new_options = opts.merge(
|
|
2874
2874
|
:operation => :"DefaultApi.find_timeline_file",
|
|
@@ -2931,7 +2931,7 @@ module Onfido
|
|
|
2931
2931
|
return_type = opts[:debug_return_type] || 'WatchlistMonitor'
|
|
2932
2932
|
|
|
2933
2933
|
# auth_names
|
|
2934
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2934
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2935
2935
|
|
|
2936
2936
|
new_options = opts.merge(
|
|
2937
2937
|
:operation => :"DefaultApi.find_watchlist_monitor",
|
|
@@ -2994,7 +2994,7 @@ module Onfido
|
|
|
2994
2994
|
return_type = opts[:debug_return_type] || 'Webhook'
|
|
2995
2995
|
|
|
2996
2996
|
# auth_names
|
|
2997
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
2997
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
2998
2998
|
|
|
2999
2999
|
new_options = opts.merge(
|
|
3000
3000
|
:operation => :"DefaultApi.find_webhook",
|
|
@@ -3057,7 +3057,7 @@ module Onfido
|
|
|
3057
3057
|
return_type = opts[:debug_return_type] || 'WorkflowRun'
|
|
3058
3058
|
|
|
3059
3059
|
# auth_names
|
|
3060
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3060
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3061
3061
|
|
|
3062
3062
|
new_options = opts.merge(
|
|
3063
3063
|
:operation => :"DefaultApi.find_workflow_run",
|
|
@@ -3120,7 +3120,7 @@ module Onfido
|
|
|
3120
3120
|
return_type = opts[:debug_return_type]
|
|
3121
3121
|
|
|
3122
3122
|
# auth_names
|
|
3123
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3123
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3124
3124
|
|
|
3125
3125
|
new_options = opts.merge(
|
|
3126
3126
|
:operation => :"DefaultApi.force_report_creation_from_watchlist_monitor",
|
|
@@ -3188,7 +3188,7 @@ module Onfido
|
|
|
3188
3188
|
return_type = opts[:debug_return_type] || 'SdkToken'
|
|
3189
3189
|
|
|
3190
3190
|
# auth_names
|
|
3191
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3191
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3192
3192
|
|
|
3193
3193
|
new_options = opts.merge(
|
|
3194
3194
|
:operation => :"DefaultApi.generate_sdk_token",
|
|
@@ -3254,7 +3254,7 @@ module Onfido
|
|
|
3254
3254
|
return_type = opts[:debug_return_type] || 'ApplicantsList'
|
|
3255
3255
|
|
|
3256
3256
|
# auth_names
|
|
3257
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3257
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3258
3258
|
|
|
3259
3259
|
new_options = opts.merge(
|
|
3260
3260
|
:operation => :"DefaultApi.list_applicants",
|
|
@@ -3318,7 +3318,7 @@ module Onfido
|
|
|
3318
3318
|
return_type = opts[:debug_return_type] || 'ChecksList'
|
|
3319
3319
|
|
|
3320
3320
|
# auth_names
|
|
3321
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3321
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3322
3322
|
|
|
3323
3323
|
new_options = opts.merge(
|
|
3324
3324
|
:operation => :"DefaultApi.list_checks",
|
|
@@ -3382,7 +3382,7 @@ module Onfido
|
|
|
3382
3382
|
return_type = opts[:debug_return_type] || 'DocumentsList'
|
|
3383
3383
|
|
|
3384
3384
|
# auth_names
|
|
3385
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3385
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3386
3386
|
|
|
3387
3387
|
new_options = opts.merge(
|
|
3388
3388
|
:operation => :"DefaultApi.list_documents",
|
|
@@ -3446,7 +3446,7 @@ module Onfido
|
|
|
3446
3446
|
return_type = opts[:debug_return_type] || 'IdPhotosList'
|
|
3447
3447
|
|
|
3448
3448
|
# auth_names
|
|
3449
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3449
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3450
3450
|
|
|
3451
3451
|
new_options = opts.merge(
|
|
3452
3452
|
:operation => :"DefaultApi.list_id_photos",
|
|
@@ -3510,7 +3510,7 @@ module Onfido
|
|
|
3510
3510
|
return_type = opts[:debug_return_type] || 'LivePhotosList'
|
|
3511
3511
|
|
|
3512
3512
|
# auth_names
|
|
3513
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3513
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3514
3514
|
|
|
3515
3515
|
new_options = opts.merge(
|
|
3516
3516
|
:operation => :"DefaultApi.list_live_photos",
|
|
@@ -3574,7 +3574,7 @@ module Onfido
|
|
|
3574
3574
|
return_type = opts[:debug_return_type] || 'LiveVideosList'
|
|
3575
3575
|
|
|
3576
3576
|
# auth_names
|
|
3577
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3577
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3578
3578
|
|
|
3579
3579
|
new_options = opts.merge(
|
|
3580
3580
|
:operation => :"DefaultApi.list_live_videos",
|
|
@@ -3638,7 +3638,7 @@ module Onfido
|
|
|
3638
3638
|
return_type = opts[:debug_return_type] || 'MotionCapturesList'
|
|
3639
3639
|
|
|
3640
3640
|
# auth_names
|
|
3641
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3641
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3642
3642
|
|
|
3643
3643
|
new_options = opts.merge(
|
|
3644
3644
|
:operation => :"DefaultApi.list_motion_captures",
|
|
@@ -3701,7 +3701,7 @@ module Onfido
|
|
|
3701
3701
|
return_type = opts[:debug_return_type] || 'PasskeysList'
|
|
3702
3702
|
|
|
3703
3703
|
# auth_names
|
|
3704
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3704
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3705
3705
|
|
|
3706
3706
|
new_options = opts.merge(
|
|
3707
3707
|
:operation => :"DefaultApi.list_passkeys",
|
|
@@ -3764,7 +3764,7 @@ module Onfido
|
|
|
3764
3764
|
return_type = opts[:debug_return_type] || 'RepeatAttemptsList'
|
|
3765
3765
|
|
|
3766
3766
|
# auth_names
|
|
3767
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3767
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3768
3768
|
|
|
3769
3769
|
new_options = opts.merge(
|
|
3770
3770
|
:operation => :"DefaultApi.list_repeat_attempts",
|
|
@@ -3828,7 +3828,7 @@ module Onfido
|
|
|
3828
3828
|
return_type = opts[:debug_return_type] || 'ReportsList'
|
|
3829
3829
|
|
|
3830
3830
|
# auth_names
|
|
3831
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3831
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3832
3832
|
|
|
3833
3833
|
new_options = opts.merge(
|
|
3834
3834
|
:operation => :"DefaultApi.list_reports",
|
|
@@ -3892,7 +3892,7 @@ module Onfido
|
|
|
3892
3892
|
return_type = opts[:debug_return_type] || 'SigningDocumentsList'
|
|
3893
3893
|
|
|
3894
3894
|
# auth_names
|
|
3895
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3895
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3896
3896
|
|
|
3897
3897
|
new_options = opts.merge(
|
|
3898
3898
|
:operation => :"DefaultApi.list_signing_documents",
|
|
@@ -3955,7 +3955,7 @@ module Onfido
|
|
|
3955
3955
|
return_type = opts[:debug_return_type] || 'Array<TaskItem>'
|
|
3956
3956
|
|
|
3957
3957
|
# auth_names
|
|
3958
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
3958
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
3959
3959
|
|
|
3960
3960
|
new_options = opts.merge(
|
|
3961
3961
|
:operation => :"DefaultApi.list_tasks",
|
|
@@ -4018,7 +4018,7 @@ module Onfido
|
|
|
4018
4018
|
return_type = opts[:debug_return_type] || 'WatchlistMonitorMatchesList'
|
|
4019
4019
|
|
|
4020
4020
|
# auth_names
|
|
4021
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4021
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4022
4022
|
|
|
4023
4023
|
new_options = opts.merge(
|
|
4024
4024
|
:operation => :"DefaultApi.list_watchlist_monitor_matches",
|
|
@@ -4085,7 +4085,7 @@ module Onfido
|
|
|
4085
4085
|
return_type = opts[:debug_return_type] || 'WatchlistMonitorsList'
|
|
4086
4086
|
|
|
4087
4087
|
# auth_names
|
|
4088
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4088
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4089
4089
|
|
|
4090
4090
|
new_options = opts.merge(
|
|
4091
4091
|
:operation => :"DefaultApi.list_watchlist_monitors",
|
|
@@ -4142,7 +4142,7 @@ module Onfido
|
|
|
4142
4142
|
return_type = opts[:debug_return_type] || 'WebhooksList'
|
|
4143
4143
|
|
|
4144
4144
|
# auth_names
|
|
4145
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4145
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4146
4146
|
|
|
4147
4147
|
new_options = opts.merge(
|
|
4148
4148
|
:operation => :"DefaultApi.list_webhooks",
|
|
@@ -4224,7 +4224,7 @@ module Onfido
|
|
|
4224
4224
|
return_type = opts[:debug_return_type] || 'Array<WorkflowRun>'
|
|
4225
4225
|
|
|
4226
4226
|
# auth_names
|
|
4227
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4227
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4228
4228
|
|
|
4229
4229
|
new_options = opts.merge(
|
|
4230
4230
|
:operation => :"DefaultApi.list_workflow_runs",
|
|
@@ -4281,7 +4281,7 @@ module Onfido
|
|
|
4281
4281
|
return_type = opts[:debug_return_type] || 'String'
|
|
4282
4282
|
|
|
4283
4283
|
# auth_names
|
|
4284
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4284
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4285
4285
|
|
|
4286
4286
|
new_options = opts.merge(
|
|
4287
4287
|
:operation => :"DefaultApi.ping",
|
|
@@ -4349,7 +4349,7 @@ module Onfido
|
|
|
4349
4349
|
return_type = opts[:debug_return_type] || 'ResultsFeedback'
|
|
4350
4350
|
|
|
4351
4351
|
# auth_names
|
|
4352
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4352
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4353
4353
|
|
|
4354
4354
|
new_options = opts.merge(
|
|
4355
4355
|
:operation => :"DefaultApi.post_results_feedback",
|
|
@@ -4417,7 +4417,7 @@ module Onfido
|
|
|
4417
4417
|
return_type = opts[:debug_return_type]
|
|
4418
4418
|
|
|
4419
4419
|
# auth_names
|
|
4420
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4420
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4421
4421
|
|
|
4422
4422
|
new_options = opts.merge(
|
|
4423
4423
|
:operation => :"DefaultApi.resend_webhooks",
|
|
@@ -4480,7 +4480,7 @@ module Onfido
|
|
|
4480
4480
|
return_type = opts[:debug_return_type]
|
|
4481
4481
|
|
|
4482
4482
|
# auth_names
|
|
4483
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4483
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4484
4484
|
|
|
4485
4485
|
new_options = opts.merge(
|
|
4486
4486
|
:operation => :"DefaultApi.restore_applicant",
|
|
@@ -4543,7 +4543,7 @@ module Onfido
|
|
|
4543
4543
|
return_type = opts[:debug_return_type]
|
|
4544
4544
|
|
|
4545
4545
|
# auth_names
|
|
4546
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4546
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4547
4547
|
|
|
4548
4548
|
new_options = opts.merge(
|
|
4549
4549
|
:operation => :"DefaultApi.resume_check",
|
|
@@ -4606,7 +4606,7 @@ module Onfido
|
|
|
4606
4606
|
return_type = opts[:debug_return_type]
|
|
4607
4607
|
|
|
4608
4608
|
# auth_names
|
|
4609
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4609
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4610
4610
|
|
|
4611
4611
|
new_options = opts.merge(
|
|
4612
4612
|
:operation => :"DefaultApi.resume_report",
|
|
@@ -4680,7 +4680,7 @@ module Onfido
|
|
|
4680
4680
|
return_type = opts[:debug_return_type] || 'Applicant'
|
|
4681
4681
|
|
|
4682
4682
|
# auth_names
|
|
4683
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4683
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4684
4684
|
|
|
4685
4685
|
new_options = opts.merge(
|
|
4686
4686
|
:operation => :"DefaultApi.update_applicant",
|
|
@@ -4760,7 +4760,7 @@ module Onfido
|
|
|
4760
4760
|
return_type = opts[:debug_return_type] || 'Passkey'
|
|
4761
4761
|
|
|
4762
4762
|
# auth_names
|
|
4763
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4763
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4764
4764
|
|
|
4765
4765
|
new_options = opts.merge(
|
|
4766
4766
|
:operation => :"DefaultApi.update_passkey",
|
|
@@ -4834,7 +4834,7 @@ module Onfido
|
|
|
4834
4834
|
return_type = opts[:debug_return_type] || 'WatchlistMonitorMatchesList'
|
|
4835
4835
|
|
|
4836
4836
|
# auth_names
|
|
4837
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4837
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4838
4838
|
|
|
4839
4839
|
new_options = opts.merge(
|
|
4840
4840
|
:operation => :"DefaultApi.update_watchlist_monitor_match",
|
|
@@ -4908,7 +4908,7 @@ module Onfido
|
|
|
4908
4908
|
return_type = opts[:debug_return_type] || 'Webhook'
|
|
4909
4909
|
|
|
4910
4910
|
# auth_names
|
|
4911
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
4911
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
4912
4912
|
|
|
4913
4913
|
new_options = opts.merge(
|
|
4914
4914
|
:operation => :"DefaultApi.update_webhook",
|
|
@@ -5010,7 +5010,7 @@ module Onfido
|
|
|
5010
5010
|
return_type = opts[:debug_return_type] || 'Document'
|
|
5011
5011
|
|
|
5012
5012
|
# auth_names
|
|
5013
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
5013
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
5014
5014
|
|
|
5015
5015
|
new_options = opts.merge(
|
|
5016
5016
|
:operation => :"DefaultApi.upload_document",
|
|
@@ -5078,7 +5078,7 @@ module Onfido
|
|
|
5078
5078
|
return_type = opts[:debug_return_type] || 'IdPhoto'
|
|
5079
5079
|
|
|
5080
5080
|
# auth_names
|
|
5081
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
5081
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
5082
5082
|
|
|
5083
5083
|
new_options = opts.merge(
|
|
5084
5084
|
:operation => :"DefaultApi.upload_id_photo",
|
|
@@ -5149,7 +5149,7 @@ module Onfido
|
|
|
5149
5149
|
return_type = opts[:debug_return_type] || 'LivePhoto'
|
|
5150
5150
|
|
|
5151
5151
|
# auth_names
|
|
5152
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
5152
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
5153
5153
|
|
|
5154
5154
|
new_options = opts.merge(
|
|
5155
5155
|
:operation => :"DefaultApi.upload_live_photo",
|
|
@@ -5225,7 +5225,7 @@ module Onfido
|
|
|
5225
5225
|
return_type = opts[:debug_return_type] || 'SigningDocument'
|
|
5226
5226
|
|
|
5227
5227
|
# auth_names
|
|
5228
|
-
auth_names = opts[:debug_auth_names] || ['Token']
|
|
5228
|
+
auth_names = opts[:debug_auth_names] || ['OAuth2ClientCredentials', 'Token']
|
|
5229
5229
|
|
|
5230
5230
|
new_options = opts.merge(
|
|
5231
5231
|
:operation => :"DefaultApi.upload_signing_document",
|
data/lib/onfido/api_client.rb
CHANGED
|
@@ -35,7 +35,7 @@ module Onfido
|
|
|
35
35
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
36
36
|
def initialize(config = Configuration.default)
|
|
37
37
|
@config = config
|
|
38
|
-
@user_agent = "onfido-ruby/6.
|
|
38
|
+
@user_agent = "onfido-ruby/6.2.0"
|
|
39
39
|
@default_headers = {
|
|
40
40
|
'Content-Type' => 'application/json',
|
|
41
41
|
'User-Agent' => @user_agent
|
data/lib/onfido/configuration.rb
CHANGED
|
@@ -10,6 +10,8 @@ Generator version: 7.16.0
|
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'faraday/follow_redirects'
|
|
13
|
+
require 'uri'
|
|
14
|
+
require 'json'
|
|
13
15
|
|
|
14
16
|
module Onfido
|
|
15
17
|
class Configuration
|
|
@@ -74,6 +76,14 @@ module Onfido
|
|
|
74
76
|
# @return [Proc]
|
|
75
77
|
attr_accessor :access_token_getter
|
|
76
78
|
|
|
79
|
+
# Defines the OAuth2 client ID for client credentials flow.
|
|
80
|
+
# @return [String]
|
|
81
|
+
attr_accessor :oauth_client_id
|
|
82
|
+
|
|
83
|
+
# Defines the OAuth2 client secret for client credentials flow.
|
|
84
|
+
# @return [String]
|
|
85
|
+
attr_accessor :oauth_client_secret
|
|
86
|
+
|
|
77
87
|
# Set this to return data as binary instead of downloading a temp file. When enabled (set to true)
|
|
78
88
|
# HTTP responses with return type `File` will be returned as a stream of binary data.
|
|
79
89
|
# Default to false.
|
|
@@ -188,6 +198,7 @@ module Onfido
|
|
|
188
198
|
@ignore_operation_servers = false
|
|
189
199
|
@inject_format = false
|
|
190
200
|
@force_ending_format = false
|
|
201
|
+
@oauth_mutex = Mutex.new
|
|
191
202
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
|
192
203
|
|
|
193
204
|
use( Faraday::FollowRedirects::Middleware )
|
|
@@ -232,6 +243,7 @@ module Onfido
|
|
|
232
243
|
end
|
|
233
244
|
|
|
234
245
|
def api_token=(api_token)
|
|
246
|
+
raise ArgumentError, 'Cannot set API token when OAuth credentials are already configured' if @oauth_client_id
|
|
235
247
|
@api_key = {'Token' => "Token token=#{api_token}"}
|
|
236
248
|
end
|
|
237
249
|
|
|
@@ -248,6 +260,64 @@ module Onfido
|
|
|
248
260
|
@timeout = timeout
|
|
249
261
|
end
|
|
250
262
|
|
|
263
|
+
# Sets OAuth2 client credentials for authentication.
|
|
264
|
+
# The client will automatically exchange credentials for an access token
|
|
265
|
+
# and refresh it when expired. This is mutually exclusive with api_token.
|
|
266
|
+
#
|
|
267
|
+
# @param client_id [String] OAuth2 client ID
|
|
268
|
+
# @param client_secret [String] OAuth2 client secret
|
|
269
|
+
def set_oauth_credentials(client_id, client_secret)
|
|
270
|
+
raise ArgumentError, 'OAuth client ID must not be nil or empty' if client_id.nil? || client_id.empty?
|
|
271
|
+
raise ArgumentError, 'OAuth client secret must not be nil or empty' if client_secret.nil? || client_secret.empty?
|
|
272
|
+
raise ArgumentError, 'Cannot set OAuth credentials when API token is already configured' if @api_key&.key?('Token')
|
|
273
|
+
|
|
274
|
+
@oauth_client_id = client_id
|
|
275
|
+
@oauth_client_secret = client_secret
|
|
276
|
+
@oauth_access_token = nil
|
|
277
|
+
@oauth_token_expires_at = nil
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
private
|
|
281
|
+
|
|
282
|
+
def fetch_oauth_access_token
|
|
283
|
+
@oauth_mutex.synchronize do
|
|
284
|
+
return @oauth_access_token if @oauth_access_token && @oauth_token_expires_at && Time.now.to_f < @oauth_token_expires_at
|
|
285
|
+
|
|
286
|
+
conn = Faraday.new(
|
|
287
|
+
url: base_url,
|
|
288
|
+
ssl: { ca_file: ssl_ca_file, verify: ssl_verify, verify_mode: ssl_verify_mode,
|
|
289
|
+
client_cert: ssl_client_cert, client_key: ssl_client_key },
|
|
290
|
+
proxy: proxy
|
|
291
|
+
) do |f|
|
|
292
|
+
configure_middleware(f)
|
|
293
|
+
f.adapter(Faraday.default_adapter)
|
|
294
|
+
configure_connection(f)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
response = conn.post('oauth/token') do |req|
|
|
298
|
+
req.headers['Content-Type'] = 'application/x-www-form-urlencoded'
|
|
299
|
+
req.options.timeout = timeout
|
|
300
|
+
req.body = URI.encode_www_form(
|
|
301
|
+
'client_id' => @oauth_client_id,
|
|
302
|
+
'client_secret' => @oauth_client_secret
|
|
303
|
+
)
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
unless response.success?
|
|
307
|
+
raise "OAuth token exchange failed with status #{response.status}: #{response.body}"
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
data = JSON.parse(response.body)
|
|
311
|
+
@oauth_access_token = data['access_token']
|
|
312
|
+
expires_in = data['expires_in'].to_i
|
|
313
|
+
@oauth_token_expires_at = Time.now.to_f + (expires_in - 30)
|
|
314
|
+
|
|
315
|
+
@oauth_access_token
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
public
|
|
320
|
+
|
|
251
321
|
# Gets API key (with prefix if set).
|
|
252
322
|
# @param [String] param_name the parameter name of API key auth
|
|
253
323
|
def api_key_with_prefix(param_name, param_alias = nil)
|
|
@@ -273,6 +343,17 @@ module Onfido
|
|
|
273
343
|
|
|
274
344
|
# Returns Auth Settings hash for api client.
|
|
275
345
|
def auth_settings
|
|
346
|
+
if @oauth_client_id && !@oauth_client_id.empty?
|
|
347
|
+
return {
|
|
348
|
+
'Token' =>
|
|
349
|
+
{
|
|
350
|
+
type: 'bearer',
|
|
351
|
+
in: 'header',
|
|
352
|
+
key: 'Authorization',
|
|
353
|
+
value: "Bearer #{fetch_oauth_access_token}"
|
|
354
|
+
},
|
|
355
|
+
}
|
|
356
|
+
end
|
|
276
357
|
{
|
|
277
358
|
'Token' =>
|
|
278
359
|
{
|
|
@@ -281,6 +362,13 @@ module Onfido
|
|
|
281
362
|
key: 'Authorization',
|
|
282
363
|
value: api_key_with_prefix('Token')
|
|
283
364
|
},
|
|
365
|
+
'OAuth2ClientCredentials' =>
|
|
366
|
+
{
|
|
367
|
+
type: 'oauth2',
|
|
368
|
+
in: 'header',
|
|
369
|
+
key: 'Authorization',
|
|
370
|
+
value: "Bearer #{access_token_with_refresh}"
|
|
371
|
+
},
|
|
284
372
|
}
|
|
285
373
|
end
|
|
286
374
|
|
data/lib/onfido/version.rb
CHANGED
|
@@ -8,7 +8,19 @@ RSpec.shared_context 'with onfido' do
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
Onfido.configure do |config|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
if ENV['ONFIDO_OAUTH_CLIENT_ID'] && !ENV['ONFIDO_OAUTH_CLIENT_ID'].empty?
|
|
12
|
+
config.set_oauth_credentials(ENV['ONFIDO_OAUTH_CLIENT_ID'], ENV['ONFIDO_OAUTH_CLIENT_SECRET'])
|
|
13
|
+
else
|
|
14
|
+
config.api_token = ENV['ONFIDO_API_TOKEN']
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
if ENV['ONFIDO_BASE_PATH'] && !ENV['ONFIDO_BASE_PATH'].empty?
|
|
18
|
+
uri = URI(ENV['ONFIDO_BASE_PATH'])
|
|
19
|
+
config.scheme = uri.scheme
|
|
20
|
+
config.host = uri.host
|
|
21
|
+
config.base_path = uri.path
|
|
22
|
+
else
|
|
23
|
+
config.region = config.region[:EU]
|
|
24
|
+
end
|
|
13
25
|
end
|
|
14
26
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onfido
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.
|
|
4
|
+
version: 6.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -509,39 +509,39 @@ specification_version: 4
|
|
|
509
509
|
summary: The official Ruby library for integrating with the Onfido API.
|
|
510
510
|
test_files:
|
|
511
511
|
- spec/classic_webhook_event_verifier_spec.rb
|
|
512
|
-
- spec/integrations/
|
|
512
|
+
- spec/integrations/id_photo_spec.rb
|
|
513
|
+
- spec/integrations/media/sample_signing_document.pdf
|
|
514
|
+
- spec/integrations/media/sample_photo.png
|
|
515
|
+
- spec/integrations/media/sample_driving_licence.png
|
|
516
|
+
- spec/integrations/webhook_spec.rb
|
|
517
|
+
- spec/integrations/address_picker_spec.rb
|
|
518
|
+
- spec/integrations/signing_document_spec.rb
|
|
519
|
+
- spec/integrations/extraction_spec.rb
|
|
520
|
+
- spec/integrations/document_spec.rb
|
|
521
|
+
- spec/integrations/workflow_run_spec.rb
|
|
522
|
+
- spec/integrations/motion_capture_spec.rb
|
|
523
|
+
- spec/integrations/passkey_spec.rb
|
|
513
524
|
- spec/integrations/advanced_electronic_signature_spec.rb
|
|
514
|
-
- spec/integrations/
|
|
525
|
+
- spec/integrations/workflow_run_output_spec.rb
|
|
515
526
|
- spec/integrations/tasks_spec.rb
|
|
516
|
-
- spec/integrations/workflow_run_spec.rb
|
|
517
|
-
- spec/integrations/document_spec.rb
|
|
518
527
|
- spec/integrations/watchlist_monitor_spec.rb
|
|
519
|
-
- spec/integrations/
|
|
520
|
-
- spec/integrations/live_photo_spec.rb
|
|
521
|
-
- spec/integrations/qualified_electronic_signature_spec.rb
|
|
528
|
+
- spec/integrations/check_spec.rb
|
|
522
529
|
- spec/integrations/report_spec.rb
|
|
523
|
-
- spec/integrations/
|
|
530
|
+
- spec/integrations/applicant_spec.rb
|
|
531
|
+
- spec/integrations/live_video_spec.rb
|
|
532
|
+
- spec/integrations/qualified_electronic_signature_spec.rb
|
|
524
533
|
- spec/integrations/sdk_token_spec.rb
|
|
525
|
-
- spec/integrations/
|
|
526
|
-
- spec/integrations/check_spec.rb
|
|
527
|
-
- spec/integrations/extraction_spec.rb
|
|
528
|
-
- spec/integrations/motion_capture_spec.rb
|
|
529
|
-
- spec/integrations/media/sample_driving_licence.png
|
|
530
|
-
- spec/integrations/media/sample_signing_document.pdf
|
|
531
|
-
- spec/integrations/media/sample_photo.png
|
|
534
|
+
- spec/integrations/live_photo_spec.rb
|
|
532
535
|
- spec/integrations/report_schema_spec.rb
|
|
533
|
-
- spec/integrations/signing_document_spec.rb
|
|
534
|
-
- spec/integrations/live_video_spec.rb
|
|
535
|
-
- spec/integrations/id_photo_spec.rb
|
|
536
|
-
- spec/media/studio_webhook_event_with_object_in_output.json
|
|
537
536
|
- spec/media/studio_webhook_event_with_list_in_output.json
|
|
538
|
-
- spec/
|
|
537
|
+
- spec/media/studio_webhook_event_with_object_in_output.json
|
|
539
538
|
- spec/shared_contexts/with_signing_document.rb
|
|
540
|
-
- spec/shared_contexts/with_live_photo.rb
|
|
541
539
|
- spec/shared_contexts/with_applicant.rb
|
|
542
540
|
- spec/shared_contexts/with_document.rb
|
|
543
541
|
- spec/shared_contexts/with_workflow_run.rb
|
|
544
542
|
- spec/shared_contexts/with_check.rb
|
|
543
|
+
- spec/shared_contexts/with_live_photo.rb
|
|
544
|
+
- spec/shared_contexts/with_onfido.rb
|
|
545
545
|
- spec/shared_examples/file_examples.rb
|
|
546
546
|
- spec/spec_helper.rb
|
|
547
547
|
- spec/studio_webhook_event_verifier_spec.rb
|