omniauth-authic 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,13 +9,21 @@ module OmniAuth
9
9
  option :scope, "email"
10
10
  option :subdomain, "" # Comes in from config
11
11
  option :domain, "authic.com"
12
+ option :ssl, true
12
13
 
13
14
  uid{ raw_info['id'] }
14
15
 
15
16
  info do
16
17
  {
17
- :name => raw_info['name'],
18
- :email => raw_info['email']
18
+ :email => raw_info['email'],
19
+ :first_name => raw_info['first_name'],
20
+ :last_name => raw_info['last_name'],
21
+ :full_name => raw_info['full_name'],
22
+ :mobile => raw_info['last_name'],
23
+ :phone => raw_info['phone'],
24
+ :birth_date => raw_info['birth_date'],
25
+ :groups => raw_info['groups'],
26
+ :roles => raw_info['roles']
19
27
  }
20
28
  end
21
29
 
@@ -33,8 +41,9 @@ module OmniAuth
33
41
 
34
42
  def client
35
43
  raise "You must specify your Authic subdomain in setup i.e. :subdomain => 'mysubdomain'" if options[:subdomain].blank?
44
+ scheme = options[:ssl] ? "https" : "http"
36
45
  # Make sure we set the site correctly before creating a client
37
- options[:client_options][:site] = "https://#{options[:subdomain]}.#{options[:domain]}"
46
+ options[:client_options][:site] = "#{scheme}://#{options[:subdomain]}.#{options[:domain]}"
38
47
  super
39
48
  end
40
49
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Authic
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-authic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 2
10
- version: 0.0.2
5
+ version: 0.0.3
11
6
  platform: ruby
12
7
  authors:
13
8
  - Authic
@@ -15,8 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2012-11-06 00:00:00 +11:00
19
- default_executable:
13
+ date: 2012-11-09 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: omniauth-oauth2
@@ -26,11 +20,6 @@ dependencies:
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 19
30
- segments:
31
- - 1
32
- - 0
33
- - 2
34
23
  version: 1.0.2
35
24
  type: :runtime
36
25
  version_requirements: *id001
@@ -42,9 +31,6 @@ dependencies:
42
31
  requirements:
43
32
  - - ">="
44
33
  - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
34
  version: "0"
49
35
  type: :development
50
36
  version_requirements: *id002
@@ -56,9 +42,6 @@ dependencies:
56
42
  requirements:
57
43
  - - ">="
58
44
  - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
45
  version: "0"
63
46
  type: :development
64
47
  version_requirements: *id003
@@ -80,7 +63,6 @@ files:
80
63
  - lib/omniauth/strategies/authic.rb
81
64
  - omniauth-authic.gemspec
82
65
  - test/omniauth-authic/test.rb
83
- has_rdoc: true
84
66
  homepage: https://github.com/authic/omniauth-authic
85
67
  licenses: []
86
68
 
@@ -94,23 +76,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
76
  requirements:
95
77
  - - ">="
96
78
  - !ruby/object:Gem::Version
97
- hash: 3
98
- segments:
99
- - 0
100
79
  version: "0"
101
80
  required_rubygems_version: !ruby/object:Gem::Requirement
102
81
  none: false
103
82
  requirements:
104
83
  - - ">="
105
84
  - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
108
- - 0
109
85
  version: "0"
110
86
  requirements: []
111
87
 
112
88
  rubyforge_project: omniauth-authic
113
- rubygems_version: 1.6.2
89
+ rubygems_version: 1.8.24
114
90
  signing_key:
115
91
  specification_version: 3
116
92
  summary: Omniauth plugin for the Authic service