sso_clyent 0.0.7.37 → 0.0.7.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,11 +44,11 @@ You can overwrite following methods in your controllers
44
44
  # end
45
45
  # end
46
46
  #
47
- # def user_klass
47
+ # def sso_clyent_user_klass
48
48
  # SsoClyent.user_class
49
49
  # end
50
50
  #
51
- # def userid
51
+ # def sso_clyent_userid
52
52
  # SsoClyent.unique_id
53
53
  # end
54
54
 
@@ -8,11 +8,11 @@ class SsoClyent::UserSessionsController < SsoClyent::ApplicationController
8
8
  omniauth = env['omniauth.auth']
9
9
  logger.debug "+++ #{omniauth}"
10
10
 
11
- if user = user_klass.send("find_by_#{userid}", omniauth['uid'])
11
+ if user = sso_clyent_user_klass.send("find_by_#{sso_clyent_userid}", omniauth['uid'])
12
12
  user.respond_to?(:save) ? user.save : user.update
13
13
  else
14
14
  # New user registration
15
- user = user_klass.create({:"#{userid}" => omniauth['uid']})
15
+ user = sso_clyent_user_klass.create({:"#{sso_clyent_userid}" => omniauth['uid']})
16
16
  end
17
17
 
18
18
  # Currently storing all the info
@@ -1,3 +1,3 @@
1
1
  module SsoClyent
2
- VERSION = "0.0.7.37"
2
+ VERSION = "0.0.7.38"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sso_clyent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7.37
4
+ version: 0.0.7.38
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2014-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70154961158320 !ruby/object:Gem::Requirement
16
+ requirement: &70336545198980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.8
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70154961158320
24
+ version_requirements: *70336545198980
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: omniauth-oauth2
27
- requirement: &70154961157060 !ruby/object:Gem::Requirement
27
+ requirement: &70336545197660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70154961157060
35
+ version_requirements: *70336545197660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: mysql2
38
- requirement: &70154961156380 !ruby/object:Gem::Requirement
38
+ requirement: &70336545197040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70154961156380
46
+ version_requirements: *70336545197040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec-rails
49
- requirement: &70154961155640 !ruby/object:Gem::Requirement
49
+ requirement: &70336545196300 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70154961155640
57
+ version_requirements: *70336545196300
58
58
  description: See sso_provyder for the provider part. Based on Devise, Authentifyd
59
59
  and joshsoftware/sso-devise-omniauth-client. Parts directly taken from https://github.com/joshsoftware/sso-devise-omniauth-client
60
60
  email: