authy 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +1 -1
- data/CHANGELOG.md +4 -1
- data/LICENSE.txt +1 -1
- data/README.md +32 -1
- data/authy.gemspec +2 -2
- data/lib/authy/version.rb +1 -1
- data/lib/authy.rb +2 -0
- data/spec/authy/api_spec.rb +7 -4
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23c21d271c8520c2184e573c84ef59ae4a6e132492cfd2a95f4ef58ba8520772
|
4
|
+
data.tar.gz: e24159cc202f8cec50127af25ce3364761b7f5f7731f41cbc6a61b55d71c9bed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 376d933202cd1a175e70981b78fdc6cdc15c931cce7507e368f30b71b99d40126a3ec89f078569933ce85b9ab3dfce0d21731d67938a742cc7eed4a75be663f4
|
7
|
+
data.tar.gz: 73a68a4edb6cb9828ce99a8438098e072c87600d80111965d9400b010d081ba72adbc73ab2e6de248aa32375043c75888a163954b35a81771332bfc2abd20756
|
data/.github/workflows/build.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# Changelog for `Authy`
|
2
2
|
|
3
|
-
##
|
3
|
+
## Final release [☰](https://github.com/twilio/authy-ruby/compare/v3.0.0...v3.0.1)
|
4
|
+
|
5
|
+
* Major updates
|
6
|
+
* Added deprecation notices
|
4
7
|
|
5
8
|
## 3.0.0 (14 December, 2020) [☰](https://github.com/twilio/authy-ruby/compare/v2.7.5...v3.0.0)
|
6
9
|
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
[![Gem Version](https://badge.fury.io/rb/authy.svg)](https://rubygems.org/gems/authy/) [![Build Status](https://github.com/twilio/authy-ruby/workflows/build/badge.svg)](https://github.com/twilio/authy-ruby/actions) [![Code Climate](https://codeclimate.com/github/authy/authy-ruby.png)](https://codeclimate.com/github/authy/authy-ruby)
|
2
2
|
|
3
|
+
---
|
4
|
+
|
5
|
+
🚨🚨🚨
|
6
|
+
|
7
|
+
**This library is no longer actively maintained.** The Authy API has been replaced with the [Twilio Verify API](https://www.twilio.com/docs/verify). Twilio will support the Authy API through November 1, 2022 for SMS/Voice. After this date, we’ll start to deprecate the service for SMS/Voice. Any requests sent to the API after May 1, 2023, will automatically receive an error. Push and TOTP will continue to be supported through July 2023.
|
8
|
+
|
9
|
+
[Learn more about migrating from Authy to Verify.](https://www.twilio.com/blog/migrate-authy-to-verify)
|
10
|
+
|
11
|
+
Please visit the Twilio Docs for:
|
12
|
+
* [Verify + Ruby (Rails) quickstart](https://www.twilio.com/docs/verify/quickstarts/ruby-rails)
|
13
|
+
* [Twilio Ruby helper library](https://www.twilio.com/docs/libraries/ruby)
|
14
|
+
* [Verify API reference](https://www.twilio.com/docs/verify/api)
|
15
|
+
|
16
|
+
Please direct any questions to [Twilio Support](https://support.twilio.com/hc/en-us). Thank you!
|
17
|
+
|
18
|
+
🚨🚨🚨
|
19
|
+
|
20
|
+
---
|
21
|
+
|
22
|
+
|
23
|
+
|
3
24
|
# Ruby Client for Twilio Authy Two-Factor Authentication (2FA) API
|
4
25
|
|
5
26
|
Documentation for Ruby usage of the Authy API lives in the [official Twilio documentation](https://www.twilio.com/docs/authy/api/).
|
@@ -16,6 +37,7 @@ If you only need SMS and Voice support for one-time passwords, we recommend usin
|
|
16
37
|
### Authy Quickstart
|
17
38
|
|
18
39
|
For a full tutorial, check out either of the Ruby Authy Quickstart in our docs:
|
40
|
+
|
19
41
|
* [Ruby/Rails Authy Quickstart](https://www.twilio.com/docs/authy/quickstart/two-factor-authentication-ruby-rails)
|
20
42
|
|
21
43
|
## Authy Ruby Installation
|
@@ -71,6 +93,15 @@ See the [`./examples`](./examples) directory for a demo CLI application that use
|
|
71
93
|
* Add tests.
|
72
94
|
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit.
|
73
95
|
|
96
|
+
## Notice: Twilio Authy API’s Sandbox feature will stop working on Sep 30, 2021
|
97
|
+
Twilio is discontinuing the Authy API’s Sandbox, a feature that allows customers to run continuous integration tests against a mock Authy API for free. The Sandbox is no longer being maintained, so we will be taking the final deprecation step of shutting it down on September 30, 2021. The rest of the Authy API product will continue working as-is.
|
98
|
+
|
99
|
+
This repo previously used the sandbox API as part of the test suite, but that has been since removed.
|
100
|
+
|
101
|
+
You will only be affected if you are using the sandbox API in your own application or test suite.
|
102
|
+
|
103
|
+
For more information please read this article on [how we are discontinuing the Twilio Authy sandbox API](https://support.authy.com/hc/en-us/articles/1260803396889-Notice-Twilio-Authy-API-s-Sandbox-feature-will-stop-working-on-Sep-30-2021).
|
104
|
+
|
74
105
|
## Copyright
|
75
106
|
|
76
|
-
Copyright (c) 2011-
|
107
|
+
Copyright (c) 2011-2021 Authy Inc. See [LICENSE](https://github.com/twilio/authy-ruby/blob/master/LICENSE.txt) for further details.
|
data/authy.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["Authy Inc"]
|
10
10
|
s.email = ["support@authy.com"]
|
11
11
|
s.homepage = "https://github.com/authy/authy-ruby"
|
12
|
-
s.summary = %q{
|
13
|
-
s.description = %q{Ruby library to access Authy services}
|
12
|
+
s.summary = %q{Deprecated: please see README for details}
|
13
|
+
s.description = %q{Ruby library to access Authy services. This gem is deprecated, please see the README for details.}
|
14
14
|
s.license = 'MIT'
|
15
15
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
data/lib/authy/version.rb
CHANGED
data/lib/authy.rb
CHANGED
@@ -12,3 +12,5 @@ require 'authy/config'
|
|
12
12
|
require 'authy/api'
|
13
13
|
require 'authy/phone_verification'
|
14
14
|
require 'authy/onetouch'
|
15
|
+
|
16
|
+
warn "DEPRECATION WARNING: The authy-ruby library is no longer actively maintained. The Authy API is being replaced by the Twilio Verify API. Please see the README for more details."
|
data/spec/authy/api_spec.rb
CHANGED
@@ -337,7 +337,7 @@ describe "Authy::API" do
|
|
337
337
|
|
338
338
|
expect(Authy::API.http_client).to receive(:request)
|
339
339
|
.once
|
340
|
-
.with(:post, url, body: "", header: headers)
|
340
|
+
.with(:post, url, { body: "", header: headers })
|
341
341
|
.and_return(double(ok?: true, body: response_json, status: 200))
|
342
342
|
response = Authy::API.request_email(id: user_id)
|
343
343
|
expect(response).to be_ok
|
@@ -405,9 +405,12 @@ describe "Authy::API" do
|
|
405
405
|
new_email = generate_email
|
406
406
|
expect(Authy::API.http_client).to receive(:request)
|
407
407
|
.once
|
408
|
-
.with(:post, url,
|
409
|
-
|
410
|
-
|
408
|
+
.with(:post, url, {
|
409
|
+
body: Utils.escape_query({
|
410
|
+
email: new_email
|
411
|
+
}),
|
412
|
+
header: headers
|
413
|
+
})
|
411
414
|
.and_return(double(ok?: true, body: response_json, status: 200))
|
412
415
|
response = Authy::API.update_user(id: user_id, email: new_email)
|
413
416
|
expect(response.message).to eq "User was updated successfully"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Authy Inc
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -122,7 +122,8 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
description: Ruby library to access Authy services
|
125
|
+
description: Ruby library to access Authy services. This gem is deprecated, please
|
126
|
+
see the README for details.
|
126
127
|
email:
|
127
128
|
- support@authy.com
|
128
129
|
executables:
|
@@ -165,7 +166,7 @@ homepage: https://github.com/authy/authy-ruby
|
|
165
166
|
licenses:
|
166
167
|
- MIT
|
167
168
|
metadata: {}
|
168
|
-
post_install_message:
|
169
|
+
post_install_message:
|
169
170
|
rdoc_options: []
|
170
171
|
require_paths:
|
171
172
|
- lib
|
@@ -180,10 +181,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
181
|
- !ruby/object:Gem::Version
|
181
182
|
version: '0'
|
182
183
|
requirements: []
|
183
|
-
rubygems_version: 3.
|
184
|
-
signing_key:
|
184
|
+
rubygems_version: 3.3.7
|
185
|
+
signing_key:
|
185
186
|
specification_version: 4
|
186
|
-
summary:
|
187
|
+
summary: 'Deprecated: please see README for details'
|
187
188
|
test_files:
|
188
189
|
- spec/authy/api_spec.rb
|
189
190
|
- spec/authy/config_spec.rb
|