omniauth-cronofy 0.11.0 → 0.12.0

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
- SHA1:
3
- metadata.gz: bfc48b7292ab4a57c93e521fb64984132a7eb0be
4
- data.tar.gz: bd7c082bf46f7552aef3ecb2ffc2522ba5cb88a5
2
+ SHA256:
3
+ metadata.gz: 8b6928832968482d65cc3f57d5c236894c583f581a2c9795db04bdbee1401c64
4
+ data.tar.gz: 6fd4ba9d0085caf5345fe989c10e42bdee56bcef65f457e66afd11ce58e3a840
5
5
  SHA512:
6
- metadata.gz: 89a3de5304f1eb6f76d003428e401139c0eb730e9ba8f6fa3a5b0bbae5659bb3833ec33037489a7b23b27407d7b2446da6f750609fe0eec7bf4bf7331b1a77f1
7
- data.tar.gz: e6464a51668873c4eb7786afe2162b980dd1541f414ae54f18f65e75b5e288b6607e11a4e79ca96325fc861c392c43c60e52c885aa2ce714f0596e8550a8bf46
6
+ metadata.gz: 91d7e3f5ee1227327f8b2888503a857b873c4ec8007fed3653acb18545da7b072a66114834954a46a03fb2b79fe8a5ce2504f84e6140e7ca15e74cb6bfe6fb7f
7
+ data.tar.gz: e4d04bdf8b0ddf1bc642f26ac4b78d3f23e11b46305bc972613181b25a3862b6b74950f17dfad1ad0f51b2e518551dbe72735037cf3eeb4acca5cc32aa9f6f83
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Cronofy
3
- VERSION = '0.11.0'.freeze
3
+ VERSION = '0.12.0'.freeze
4
4
  end
5
5
  end
@@ -15,9 +15,12 @@ module OmniAuth
15
15
  uid { raw_info['sub'] }
16
16
 
17
17
  info do
18
- {
19
- :domain => raw_info['cronofy.service_account.domain'],
18
+ data = {
19
+ :common_name => raw_info['cronofy.service_account.domain'] || raw_info['cronofy.service_account.email']
20
20
  }
21
+ data[:domain] = raw_info['cronofy.service_account.domain'] if raw_info['cronofy.service_account.domain']
22
+ data[:email] = raw_info['cronofy.service_account.email'] if raw_info['cronofy.service_account.email']
23
+ data
21
24
  end
22
25
 
23
26
  def callback_url
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-cronofy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Bird
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-25 00:00:00.000000000 Z
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.6.6
114
+ rubygems_version: 2.7.6
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: OmniAuth strategy for authenticating with Cronofy