telesign 2.1.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/telesign.rb +1 -1
- data/lib/telesign/appverify.rb +24 -0
- data/lib/telesign/rest.rb +1 -1
- metadata +3 -3
- data/lib/telesign/autoverify.rb +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 671cb0c341029e000d0f044258feae187c404c96
|
4
|
+
data.tar.gz: b0775ec9773690bfebaa7305fcbae024d9c7b44c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6120cd99c9365fed13091a82ead98010288526808e83405a1cb8f5fabbce0a4477b3c2f34b748d89360693e0681489ac3543c339519f775c8d7173e3ccbc5569
|
7
|
+
data.tar.gz: 991559dcf89c7d7f2a9876fd5675daf8f283f9e3b8d4245867fe90d027e71ef542582699241beaaa9099c840e474ee85c7eb299c2888ef1c6232ea6ee1b07448
|
data/lib/telesign.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'telesign/rest'
|
2
|
+
|
3
|
+
APPVERIFY_STATUS_RESOURCE = '/v1/mobile/verification/status/%{external_id}'
|
4
|
+
|
5
|
+
module Telesign
|
6
|
+
|
7
|
+
# App Verify is a secure, lightweight SDK that integrates a frictionless user verification process into existing
|
8
|
+
# native mobile applications.
|
9
|
+
class AppVerifyClient < RestClient
|
10
|
+
|
11
|
+
# Retrieves the verification result for an App Verify transaction by external_id. To ensure a secure verification
|
12
|
+
# flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
|
13
|
+
# indicate a successful verification.
|
14
|
+
#
|
15
|
+
# See https://developer.telesign.com/docs/app-verify-android-sdk-self#section-get-status-service or
|
16
|
+
# https://developer.telesign.com/docs/app-verify-ios-sdk-self#section-get-status-service for detailed
|
17
|
+
# API documentation.
|
18
|
+
def status(external_id, **params)
|
19
|
+
|
20
|
+
self.get(APPVERIFY_STATUS_RESOURCE % {:external_id => external_id},
|
21
|
+
**params)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/telesign/rest.rb
CHANGED
@@ -7,7 +7,7 @@ require 'securerandom'
|
|
7
7
|
require 'net/http/persistent'
|
8
8
|
|
9
9
|
module Telesign
|
10
|
-
SDK_VERSION = '2.
|
10
|
+
SDK_VERSION = '2.2.0'
|
11
11
|
|
12
12
|
# The TeleSign RestClient is a generic HTTP REST client that can be extended to make requests against any of
|
13
13
|
# TeleSign's REST API endpoints.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telesign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TeleSign
|
@@ -135,7 +135,7 @@ extensions: []
|
|
135
135
|
extra_rdoc_files: []
|
136
136
|
files:
|
137
137
|
- lib/telesign.rb
|
138
|
-
- lib/telesign/
|
138
|
+
- lib/telesign/appverify.rb
|
139
139
|
- lib/telesign/messaging.rb
|
140
140
|
- lib/telesign/phoneid.rb
|
141
141
|
- lib/telesign/rest.rb
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
165
|
+
rubygems_version: 2.6.12
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: TeleSign Ruby SDK
|
data/lib/telesign/autoverify.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'telesign/rest'
|
2
|
-
|
3
|
-
AUTOVERIFY_STATUS_RESOURCE = '/v1/mobile/verification/status/%{external_id}'
|
4
|
-
|
5
|
-
module Telesign
|
6
|
-
|
7
|
-
# AutoVerify is a secure, lightweight SDK that integrates a frictionless user verification process into existing
|
8
|
-
# native mobile applications.
|
9
|
-
class AutoVerifyClient < RestClient
|
10
|
-
|
11
|
-
# Retrieves the verification result for an AutoVerify transaction by external_id. To ensure a secure verification
|
12
|
-
# flow you must check the status using TeleSign's servers on your backend. Do not rely on the SDK alone to
|
13
|
-
# indicate a successful verification.
|
14
|
-
#
|
15
|
-
# See https://developer.telesign.com/docs/auto-verify-sdk-self#section-obtaining-verification-status for detailed
|
16
|
-
# API documentation.
|
17
|
-
def status(external_id, **params)
|
18
|
-
|
19
|
-
self.get(AUTOVERIFY_STATUS_RESOURCE % {:external_id => external_id},
|
20
|
-
**params)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|