devise_ott 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/devise_ott/strategies/ott_authetication.rb +2 -2
- data/lib/devise_ott/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a55342cc96a9ffaad894f0dee19bdaeb922d85ac
|
|
4
|
+
data.tar.gz: d12e832a72eebbfcb841f8a5d664e985509ab0f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c24bbf7c7748cfdddd822939f5ab5ecec87dbc55dab84c5f95ca449a371406b7af58b198e66574330ba74c3ddb9b80f7cf6275e7e291e3102fa2ff41453ed1b
|
|
7
|
+
data.tar.gz: 11dff1e86aa589c091e400497ccf198cae21afb4e75b6e498d6d2a4c442c340f4319228e168526e1c54865aa20d49fe40f394b551c30485bf7115d891d871e77
|
data/Gemfile.lock
CHANGED
|
@@ -8,11 +8,11 @@ module DeviseOtt
|
|
|
8
8
|
def authenticate!
|
|
9
9
|
ott_token = params[:ott_token]
|
|
10
10
|
|
|
11
|
-
return
|
|
11
|
+
return unless mapping.to.respond_to?(:find_for_ott_authentication) # Dont try to authenticate if module is not included
|
|
12
12
|
|
|
13
13
|
resource = mapping.to.find_for_ott_authentication(ott_token)
|
|
14
14
|
|
|
15
|
-
return
|
|
15
|
+
return unless resource
|
|
16
16
|
|
|
17
17
|
if validate(resource){ resource.ott_allowed?(ott_token, resource.email) }
|
|
18
18
|
success!(resource)
|
data/lib/devise_ott/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise_ott
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Iuri Gagnidze
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: devise
|