net-ssh-backports 6.3.3.backports → 6.3.5.backports
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/net/ssh/authentication/session.rb +16 -13
- data/lib/net/ssh/version.rb +1 -1
- 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: 8f0926227faa7f95554bb3b35498266161a625e5419da811c2f3b28cf031bac5
|
4
|
+
data.tar.gz: f84f8c5d5801318f6b9a906fb49f0d6d5b0f9d99524103ad496a9d4029059f2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece9f000d7d5073c457c88a535b19d580c7343e415ab092ba3bbe4155b29aef96e30da80bcd1609e4bfa45deafebe9ffffb602965c709ee546ddbe8e54bf924a
|
7
|
+
data.tar.gz: 6e288d23a6ef7c63b404eb03761b301e734eade713238b4bf09474330e91d3d257083b90fa64a33f4b482030ca8372211154fc17f9afa320c9f72680fb7cd2c2
|
@@ -69,21 +69,24 @@ module Net
|
|
69
69
|
attempted = []
|
70
70
|
|
71
71
|
@auth_methods.each do |name|
|
72
|
-
next unless @allowed_auth_methods.include?(name)
|
73
|
-
|
74
|
-
attempted << name
|
75
|
-
|
76
|
-
debug { "trying #{name}" }
|
77
72
|
begin
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
73
|
+
next unless @allowed_auth_methods.include?(name)
|
74
|
+
|
75
|
+
attempted << name
|
76
|
+
|
77
|
+
debug { "trying #{name}" }
|
78
|
+
begin
|
79
|
+
auth_class = Methods.const_get(name.split(/\W+/).map { |p| p.capitalize }.join)
|
80
|
+
method = auth_class.new(self, key_manager: key_manager, password_prompt: options[:password_prompt])
|
81
|
+
rescue NameError
|
82
|
+
debug {"Mechanism #{name} was requested, but isn't a known type. Ignoring it."}
|
83
|
+
next
|
84
|
+
end
|
85
|
+
|
86
|
+
return true if method.authenticate(next_service, username, password)
|
87
|
+
rescue Net::SSH::Authentication::DisallowedMethod => e
|
88
|
+
raise e
|
83
89
|
end
|
84
|
-
|
85
|
-
return true if method.authenticate(next_service, username, password)
|
86
|
-
rescue Net::SSH::Authentication::DisallowedMethod
|
87
90
|
end
|
88
91
|
|
89
92
|
error { "all authorization methods failed (tried #{attempted.join(', ')})" }
|
data/lib/net/ssh/version.rb
CHANGED