concerto_cas_auth 0.0.7 → 0.0.8
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: 1569c23b511a337f0b556eee7f009205405dd2c3
|
4
|
+
data.tar.gz: 4839a47d022a456671285b7a5933853e27aea0e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb4b374283629f2b06d4148c0c7afb2b297e24239872c0e1e99e2697e1758a740f27ba358a94d81aebdc2e2ce8e380b68ef10471256a9060b00dba2be2c86aea
|
7
|
+
data.tar.gz: 4a7948fbc0470d4e16805e78ae66f83d01a0611b6da18f237c44be15285c8497d115a0d95a3a8c54c7efd4af45ab883054370942893c70ab411666ac85351b3e
|
@@ -12,7 +12,7 @@ module ConcertoCasAuth
|
|
12
12
|
|
13
13
|
# Check if an identity records exists for the user attempting to sign in
|
14
14
|
if identity = ConcertoIdentity::Identity.find_by_user_id(
|
15
|
-
cas_hash[omniauth_keys[
|
15
|
+
cas_hash[omniauth_keys[:uid_key]])
|
16
16
|
# Return the matching user record
|
17
17
|
return identity.user
|
18
18
|
else
|
@@ -25,7 +25,7 @@ module ConcertoCasAuth
|
|
25
25
|
if !cas_hash[omniauth_keys["first_name_key"]].nil?
|
26
26
|
user.first_name = cas_hash[omniauth_keys["first_name_key"]]
|
27
27
|
else
|
28
|
-
user.first_name = cas_hash[omniauth_keys[
|
28
|
+
user.first_name = cas_hash[omniauth_keys[:uid_key]]
|
29
29
|
end
|
30
30
|
|
31
31
|
# Email is required for user validation
|
@@ -64,7 +64,7 @@ module ConcertoCasAuth
|
|
64
64
|
# Create a matching identity to track our new user for future
|
65
65
|
# sessions and return our new user record
|
66
66
|
ConcertoIdentity::Identity.create(provider: "cas",
|
67
|
-
external_id:
|
67
|
+
external_id: cas_hash[omniauth_keys[:uid_key]],
|
68
68
|
user_id: user.id)
|
69
69
|
return user
|
70
70
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concerto_cas_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabe Perez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|