devise_oauth2_rails4 2.1.6 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf7a6ad934e8bded9b5c59d8590c9be947db642e
|
4
|
+
data.tar.gz: d96841f38408a6a05587d8218ab5275da0f8ec2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f96f887dce1553ff7c018a6a37a329e1867a4af3eac0c48e0652b6b90436b76ccb238164cfdef624ce6f782e25fb5c23d162a49052c14802a659a964f85b0aa6
|
7
|
+
data.tar.gz: 24f87049d05895bc00ccca1bb1620b9bd261292f511da60aaf97a0f55ef3f022017bfde366a6f71a5afae6ab913f6df37c0dc7ee5205108c864dee6e79354202
|
@@ -7,6 +7,8 @@ module Devise
|
|
7
7
|
return @secure_client ||= Client.find_by(secret: client_secret) if opts[:secure]
|
8
8
|
return @secure_client ||= Client.find_by(id: current_access_token.client_id) if valid_access_token?
|
9
9
|
@client ||= Client.find_by('identifier = :client_id OR secret = :secret', client_id: client_id, secret: client_secret) if client_credentials?
|
10
|
+
Client.find_by(:identifier => client_id, :secret => secret)
|
11
|
+
Client.find_by('identifier = ? OR secret = ?', client_id, secret)
|
10
12
|
end
|
11
13
|
|
12
14
|
def current_access_token
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_oauth2_rails4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Wheeler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|