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: f8a4c4c7849d18fb3a230e64eebb90be427e6865
4
- data.tar.gz: 66179bd757e20d9672443ce44a054d30ea62858e
3
+ metadata.gz: 1569c23b511a337f0b556eee7f009205405dd2c3
4
+ data.tar.gz: 4839a47d022a456671285b7a5933853e27aea0e3
5
5
  SHA512:
6
- metadata.gz: 96f2b2db5eb5e359502f70960c417aacc8f222217df974549463c3e162cb80b3d8e0df26ead6f94db5011b9bb0b4572a58a343d1fcf296076ec5f6e879f39160
7
- data.tar.gz: 02a5784ba193c489d48a96555ee9d69b1f04cfd2c844f401592eeb5b37e35c944b756d0af2d40b35338c7665ceb1cf9c1cb3bcddb90a64b49652bc230402e879
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["uid_key"]])
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["uid_key"]]
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: cash_hash[omniauth_keys["uid_key"]],
67
+ external_id: cas_hash[omniauth_keys[:uid_key]],
68
68
  user_id: user.id)
69
69
  return user
70
70
  else
@@ -1,3 +1,3 @@
1
1
  module ConcertoCasAuth
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-28 00:00:00.000000000 Z
11
+ date: 2014-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails