devise-authy 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 172c6e55ba9cea022fd4428e398af18be1668965361249ee0dff1e6d45ed042f
4
- data.tar.gz: 5b8b1cbc2529cfa5b448ae2b3f3b4b7c7759f3b82173d26387e89738bda427c1
3
+ metadata.gz: 259b34a666d62e180d4ae64b3e2100c0bd21f9ee4c8b9346064551b3178cfb54
4
+ data.tar.gz: f83cb9da5873b5e811cba37b2150cbce44ce725d28244d8258f40f68983518ed
5
5
  SHA512:
6
- metadata.gz: 3c462910e527dbfdb1ed0fa46295d7cbe783aa7feab75dbd3d30fc07ee016a793f0824262a533e4b0f41ea89f87018be6b8af5cf1205a9d26864fda8b5246d85
7
- data.tar.gz: 29039ec4944775c87dcc25c17269409f072cef4db8b054b082242435f5affe786df45a9c16be54f79fe1309a321e0e0150af63e17512110b53437d8294ed5fa6
6
+ metadata.gz: 869414ee49e8c36570335144e2bf02781811301c2c6fed0142dd27bbf028f5e08b8c16832afe515ed9703eee99f5e664b00b5598e1c6a26db0b63b3451e81b46
7
+ data.tar.gz: d066492cbf36871ec392a940f7927be61c7fee1c0b4a7db2b2279c608c2dcbbd3c054ea70d9543586542dc3f256b06eb9221431c1a812ad27c285fe17d1411ee
@@ -8,10 +8,12 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby: [2.5, 2.6, 2.7, 3.0, head]
11
+ ruby: [2.5, 2.6, 2.7, "3.0", 3.1, head]
12
12
  gemfile: [rails_5_2, rails_6]
13
13
  exclude:
14
- - ruby: 3.0
14
+ - ruby: "3.0"
15
+ gemfile: rails_5_2
16
+ - ruby: 3.1
15
17
  gemfile: rails_5_2
16
18
  - ruby: head
17
19
  gemfile: rails_5_2
data/Appraisals CHANGED
@@ -12,6 +12,7 @@ end if RUBY_VERSION.to_f < 3.0
12
12
  appraise "rails-6" do
13
13
  gem "rails", "~> 6.0.0"
14
14
  gem "sqlite3", "~> 1.4"
15
+ gem "net-smtp"
15
16
 
16
17
  group :development, :test do
17
18
  gem 'factory_girl_rails', :require => false
data/CHANGELOG.md CHANGED
@@ -5,9 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [Unreleased]
8
+ ## [2.3.1] - 2022-05-30 Final release
9
9
 
10
- ...
10
+ ### Changed
11
+
12
+ - Added deprecation notices to README and Gemspec
11
13
 
12
14
  ## [2.3.0] - 2021-01-07
13
15
 
data/README.md CHANGED
@@ -1,3 +1,21 @@
1
+ 🚨🚨🚨
2
+
3
+ **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.
4
+
5
+ [Learn more about migrating from Authy to Verify.](https://www.twilio.com/blog/migrate-authy-to-verify)
6
+
7
+ Please visit the Twilio Docs for:
8
+ * [Verify + Ruby (Rails) quickstart](https://www.twilio.com/docs/verify/quickstarts/ruby-rails)
9
+ * [Twilio Ruby helper library](https://www.twilio.com/docs/libraries/ruby)
10
+ * [Verify API reference](https://www.twilio.com/docs/verify/api)
11
+ * **Coming soon**: Look out for a new Devise plugin to use Twilio Verify with Devise
12
+
13
+ Please direct any questions to [Twilio Support](https://support.twilio.com/hc/en-us). Thank you!
14
+
15
+ 🚨🚨🚨
16
+
17
+ ---
18
+
1
19
  # Authy Devise [![Build Status](https://github.com/twilio/authy-devise/workflows/build/badge.svg)](https://github.com/twilio/authy-devise/actions)
2
20
 
3
21
  This is a [Devise](https://github.com/plataformatec/devise) extension to add [Two-Factor Authentication with Authy](https://www.twilio.com/docs/authy) to your Rails application.
@@ -18,6 +36,7 @@ This is a [Devise](https://github.com/plataformatec/devise) extension to add [Tw
18
36
  * [Generic authenticator token support](#generic-authenticator-token-support)
19
37
  * [Rails 5 CSRF protection](#rails-5-csrf-protection)
20
38
  * [Running Tests](#running-tests)
39
+ * [Notice: Twilio Authy API’s Sandbox feature will stop working on Sep 30, 2021](#notice-twilio-authy-apis-sandbox-feature-will-stop-working-on-sep-30-2021)
21
40
  * [Copyright](#copyright)
22
41
 
23
42
  ## Pre-requisites
@@ -233,6 +252,15 @@ Run the following command:
233
252
  $ bundle exec rspec
234
253
  ```
235
254
 
255
+ ## Notice: Twilio Authy API’s Sandbox feature will stop working on Sep 30, 2021
256
+ 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.
257
+
258
+ This repo previously used the sandbox API as part of the test suite, but that has been since removed.
259
+
260
+ You will only be affected if you are using the sandbox API in your own application or test suite.
261
+
262
+ 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).
263
+
236
264
  ## Copyright
237
265
 
238
266
  Copyright (c) 2012-2021 Authy Inc. See LICENSE.txt for further details.
data/devise-authy.gemspec CHANGED
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ["Authy Inc."]
11
11
  spec.email = ["support@authy.com"]
12
12
 
13
- spec.summary = %q{Authy plugin for Devise.}
14
- spec.description = %q{Authy plugin to add two factor authentication to Devise.}
13
+ spec.summary = %q{Deprecated: please see README for details}
14
+ spec.description = %q{Authy plugin to add two factor authentication to Devise. This gem is deprecated, please see the README for details.}
15
15
  spec.homepage = "https://github.com/twilio/authy-devise"
16
16
  spec.license = "MIT"
17
17
 
@@ -4,6 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 6.0.0"
6
6
  gem "sqlite3", "~> 1.4"
7
+ gem "net-smtp"
7
8
 
8
9
  group :development, :test do
9
10
  gem "factory_girl_rails", require: false
@@ -13,7 +13,7 @@ module DeviseAuthy
13
13
 
14
14
  link_to(
15
15
  title,
16
- url_for([resource_name, :request_phone_call]),
16
+ url_for([resource_name.to_sym, :request_phone_call]),
17
17
  opts
18
18
  )
19
19
  end
@@ -30,14 +30,14 @@ module DeviseAuthy
30
30
 
31
31
  link_to(
32
32
  title,
33
- url_for([resource_name, :request_sms]),
33
+ url_for([resource_name.to_sym, :request_sms]),
34
34
  opts
35
35
  )
36
36
  end
37
37
 
38
38
  def verify_authy_form(opts = {}, &block)
39
39
  opts = default_opts.merge(:id => 'devise_authy').merge(opts)
40
- form_tag([resource_name, :verify_authy], opts) do
40
+ form_tag([resource_name.to_sym, :verify_authy], opts) do
41
41
  buffer = hidden_field_tag(:"#{resource_name}_id", @resource.id)
42
42
  buffer << capture(&block)
43
43
  end
@@ -45,14 +45,14 @@ module DeviseAuthy
45
45
 
46
46
  def enable_authy_form(opts = {}, &block)
47
47
  opts = default_opts.merge(opts)
48
- form_tag([resource_name, :enable_authy], opts) do
48
+ form_tag([resource_name.to_sym, :enable_authy], opts) do
49
49
  capture(&block)
50
50
  end
51
51
  end
52
52
 
53
53
  def verify_authy_installation_form(opts = {}, &block)
54
54
  opts = default_opts.merge(opts)
55
- form_tag([resource_name, :verify_authy_installation], opts) do
55
+ form_tag([resource_name.to_sym, :verify_authy_installation], opts) do
56
56
  capture(&block)
57
57
  end
58
58
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeviseAuthy
4
- VERSION = '2.3.0'
4
+ VERSION = '2.3.1'
5
5
  end
data/lib/devise-authy.rb CHANGED
@@ -33,3 +33,5 @@ Authy.user_agent = "DeviseAuthy/#{DeviseAuthy::VERSION} - #{Authy.user_agent}"
33
33
 
34
34
  Devise.add_module :authy_authenticatable, :model => 'devise-authy/models/authy_authenticatable', :controller => :devise_authy, :route => :authy
35
35
  Devise.add_module :authy_lockable, :model => 'devise-authy/models/authy_lockable'
36
+
37
+ warn "DEPRECATION WARNING: The authy-devise library is no longer actively maintained. The Authy API is being replaced by the Twilio Verify API. Please see the README for more details."
@@ -3,22 +3,21 @@
3
3
  module DeviseAuthy
4
4
  module Generators
5
5
  class DeviseAuthyGenerator < Rails::Generators::NamedBase
6
-
7
6
  namespace "devise_authy"
8
7
 
9
8
  desc "Add :authy_authenticatable directive in the given model, plus accessors. Also generate migration for ActiveRecord"
10
9
 
11
10
  def inject_devise_authy_content
12
- path = File.join(destination_root, "app","models","#{file_path}.rb")
13
- if File.exists?(path) &&
14
- !File.read(path).include?("authy_authenticatable")
11
+ path = File.join(destination_root, "app", "models", "#{file_path}.rb")
12
+ if File.exist?(path) &&
13
+ !File.read(path).include?("authy_authenticatable")
15
14
  inject_into_file(path,
16
15
  "authy_authenticatable, :",
17
16
  :after => "devise :")
18
17
  end
19
18
 
20
- if File.exists?(path) &&
21
- !File.read(path).include?(":authy_id")
19
+ if File.exist?(path) &&
20
+ !File.read(path).include?(":authy_id")
22
21
  inject_into_file(path,
23
22
  ":authy_id, :last_sign_in_with_authy, ",
24
23
  :after => "attr_accessible ")
@@ -26,7 +25,6 @@ module DeviseAuthy
26
25
  end
27
26
 
28
27
  hook_for :orm
29
-
30
28
  end
31
29
  end
32
30
  end
@@ -73,7 +73,7 @@ module DeviseAuthy
73
73
  }
74
74
  }.each do |extension, opts|
75
75
  file_path = File.join(destination_root, "app", "views", "layouts", "application.html.#{extension}")
76
- if File.exists?(file_path) && !File.read(file_path).include?("form.authy.min.js")
76
+ if File.exist?(file_path) && !File.read(file_path).include?("form.authy.min.js")
77
77
  inject_into_file(file_path, opts.delete(:content), opts)
78
78
  end
79
79
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-authy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.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: 2021-01-07 00:00:00.000000000 Z
11
+ date: 2022-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -262,7 +262,8 @@ dependencies:
262
262
  - - "~>"
263
263
  - !ruby/object:Gem::Version
264
264
  version: 5.1.1
265
- description: Authy plugin to add two factor authentication to Devise.
265
+ description: Authy plugin to add two factor authentication to Devise. This gem is
266
+ deprecated, please see the README for details.
266
267
  email:
267
268
  - support@authy.com
268
269
  executables: []
@@ -319,7 +320,7 @@ metadata:
319
320
  documentation_uri: https://github.com/twilio/authy-devise
320
321
  homepage_uri: https://github.com/twilio/authy-devise
321
322
  source_code_uri: https://github.com/twilio/authy-devise
322
- post_install_message:
323
+ post_install_message:
323
324
  rdoc_options: []
324
325
  require_paths:
325
326
  - lib
@@ -334,8 +335,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
334
335
  - !ruby/object:Gem::Version
335
336
  version: '0'
336
337
  requirements: []
337
- rubygems_version: 3.0.3
338
- signing_key:
338
+ rubygems_version: 3.2.32
339
+ signing_key:
339
340
  specification_version: 4
340
- summary: Authy plugin for Devise.
341
+ summary: 'Deprecated: please see README for details'
341
342
  test_files: []