omniauth-internal 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth/strategies/internal.rb +0 -13
- data/omniauth-internal.gemspec +1 -1
- metadata +3 -3
@@ -15,19 +15,6 @@ module OmniAuth
|
|
15
15
|
options[:model] || ::User
|
16
16
|
end
|
17
17
|
|
18
|
-
def username
|
19
|
-
return @identity.uid if @identity
|
20
|
-
super
|
21
|
-
end
|
22
|
-
|
23
|
-
def callback_phase
|
24
|
-
if authenticate(username, request[password_id])
|
25
|
-
super
|
26
|
-
else
|
27
|
-
fail!(:invalid_credentials)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
18
|
def authenticate(username, password)
|
32
19
|
model.authenticate(username, password)
|
33
20
|
end
|
data/omniauth-internal.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
13
13
|
gem.name = "omniauth-internal"
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = "0.
|
15
|
+
gem.version = "0.2.0"
|
16
16
|
|
17
17
|
gem.add_dependency "omniauth-multipassword"
|
18
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-internal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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-multipassword
|
16
|
-
requirement: &
|
16
|
+
requirement: &19927260 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *19927260
|
25
25
|
description: A OmniAuth strategy to authenticate using a model class.
|
26
26
|
email:
|
27
27
|
- jan.graichen@altimos.de
|