omniauth-multipassword 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,9 @@ module OmniAuth
|
|
52
52
|
begin
|
53
53
|
@authenticator = auth[0].new @app, *auth[1]
|
54
54
|
@authenticator.init_authenticator(@request, @env, username)
|
55
|
-
|
55
|
+
if @authenticator.authenticate(username, password)
|
56
|
+
return true
|
57
|
+
end
|
56
58
|
rescue Error => e
|
57
59
|
OmniAuth.logger.warn "OmniAuth ERR >>> " + e
|
58
60
|
end
|
@@ -61,6 +63,11 @@ module OmniAuth
|
|
61
63
|
false
|
62
64
|
end
|
63
65
|
|
66
|
+
def name
|
67
|
+
return @authenticator.name if @authenticator
|
68
|
+
super
|
69
|
+
end
|
70
|
+
|
64
71
|
info do
|
65
72
|
info = @authenticator.info if @authenticator
|
66
73
|
info = {} unless info.is_a?(Hash)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-multipassword
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|
16
|
-
requirement: &
|
16
|
+
requirement: &11704160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *11704160
|
25
25
|
description: A OmniAuth strategy to authenticate using different passwort strategies.
|
26
26
|
email:
|
27
27
|
- jan.graichen@altimos.de
|