authentication-zero 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/authentication_zero/version.rb +1 -1
- data/lib/generators/authentication/authentication_generator.rb +9 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a20860b4e4e996ed12ee1f8627c322cee71785051bb58569e8d3694bd8d46860
|
4
|
+
data.tar.gz: da8ceac9a2cd8d53028b446fd988b9604bbc6a72ab8f89dfe4cc0442cd0facd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03ba76dae5a7ae6862a45525d43bcbf1ca566b5e5bd1738a743f52a62d5af8c31838381e183d3eb2fd2776a7f909430c6a57746999c9bd4f4ead57bd67ccf6a1
|
7
|
+
data.tar.gz: 1d8aad9fc172635ba87cc4f154a25a1da38470967cd8a8e82f344318bf54e95e5a759f0956b38a48092d08ae29d6a626750d6076c45f40f84d96918db5c54f75
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
## New version
|
2
2
|
|
3
|
+
## Authentication Zero 4.0.3 ##
|
4
|
+
|
5
|
+
* We don't need to add `config.action_mailer.default_url_options` anymore
|
6
|
+
* Make gem add bcrypt more resilient
|
7
|
+
|
8
|
+
## Authentication Zero 4.0.2 ##
|
9
|
+
|
3
10
|
* Remove dependency on redis / kredis for sudoable
|
4
11
|
* Fix --webauthn option. (add @github/webauthn-json)
|
5
12
|
* Update application_controller to rails 8
|
data/Gemfile.lock
CHANGED
@@ -19,7 +19,11 @@ class AuthenticationGenerator < Rails::Generators::Base
|
|
19
19
|
source_root File.expand_path("templates", __dir__)
|
20
20
|
|
21
21
|
def add_gems
|
22
|
-
|
22
|
+
if bcrypt_present?
|
23
|
+
uncomment_lines "Gemfile", /gem "bcrypt"/
|
24
|
+
else
|
25
|
+
gem "bcrypt", "~> 3.1.7", comment: "Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]"
|
26
|
+
end
|
23
27
|
|
24
28
|
if options.pwned?
|
25
29
|
gem "pwned", comment: "Use Pwned to check if a password has been found in any of the huge data breaches [https://github.com/philnash/pwned]"
|
@@ -40,11 +44,6 @@ class AuthenticationGenerator < Rails::Generators::Base
|
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
43
|
-
def add_environment_configurations
|
44
|
-
application "config.action_mailer.default_url_options = { host: \"localhost\", port: 3000 }", env: "development"
|
45
|
-
application "config.action_mailer.default_url_options = { host: \"localhost\", port: 3000 }", env: "test"
|
46
|
-
end
|
47
|
-
|
48
47
|
def create_configuration_files
|
49
48
|
copy_file "config/initializers/omniauth.rb" if omniauthable?
|
50
49
|
copy_file "config/initializers/webauthn.rb" if webauthn?
|
@@ -246,6 +245,10 @@ class AuthenticationGenerator < Rails::Generators::Base
|
|
246
245
|
options.sudoable? && !options.api?
|
247
246
|
end
|
248
247
|
|
248
|
+
def bcrypt_present?
|
249
|
+
File.read("Gemfile").include?('gem "bcrypt"')
|
250
|
+
end
|
251
|
+
|
249
252
|
def importmaps?
|
250
253
|
Rails.root.join("config/importmap.rb").exist?
|
251
254
|
end
|