omniauth-cronofy 0.10.0 → 0.11.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
2
  SHA1:
3
- metadata.gz: cad2832b9dd16bab6becf86df66186a7e851b64c
4
- data.tar.gz: a5e3c5ebe071bb7f913b0cda338ea890465ff46c
3
+ metadata.gz: bfc48b7292ab4a57c93e521fb64984132a7eb0be
4
+ data.tar.gz: bd7c082bf46f7552aef3ecb2ffc2522ba5cb88a5
5
5
  SHA512:
6
- metadata.gz: 8095810326d3e95d44183f1041339220cc3bd581e5d4084d24bf83788a504ad1e61d90cccc67ae29bb5dfe5328e21913a0e8f89c6e8fe2cc8b6230bf4b4ee120
7
- data.tar.gz: 34c69347289fa38479fada85fff971dcebf9a2053deea4ab6b7e38bc150e78c1f2f21f0da63d00a2fc189b4b087688c97ef2117c473e11db275dd1dae7a85546
6
+ metadata.gz: 89a3de5304f1eb6f76d003428e401139c0eb730e9ba8f6fa3a5b0bbae5659bb3833ec33037489a7b23b27407d7b2446da6f750609fe0eec7bf4bf7331b1a77f1
7
+ data.tar.gz: e6464a51668873c4eb7786afe2162b980dd1541f414ae54f18f65e75b5e288b6607e11a4e79ca96325fc861c392c43c60e52c885aa2ce714f0596e8550a8bf46
data/README.md CHANGED
@@ -48,6 +48,13 @@ Cronofy supports [explicit linking of calendar accounts](https://www.cronofy.com
48
48
  ```
49
49
  /auth/cronofy?link_token=hga672376....
50
50
  ```
51
+ #### Avoid Linking
52
+
53
+ Cronofy supports [to avoid profiles to be linked](https://www.cronofy.com/developers/api/#request-authorization-avoid_linking) by passing an `avoid_linking` param with `true` value to the auth flow.
54
+
55
+ ```
56
+ /auth/cronofy?avoid_linking=true
57
+ ```
51
58
 
52
59
  ### Configuration
53
60
 
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Cronofy
3
- VERSION = '0.10.0'.freeze
3
+ VERSION = '0.11.0'.freeze
4
4
  end
5
5
  end
@@ -33,6 +33,13 @@ module OmniAuth
33
33
  options[:authorize_params] ||= {}
34
34
  options[:authorize_params].merge!(:link_token => link_token)
35
35
  end
36
+
37
+ avoid_linking = session['omniauth.params']['avoid_linking']
38
+ if avoid_linking
39
+ options[:authorize_params] ||= {}
40
+ options[:authorize_params].merge!(:avoid_linking => avoid_linking)
41
+ end
42
+
36
43
  super
37
44
  end
38
45
  end
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.10.0
4
+ version: 0.11.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: 2017-09-28 00:00:00.000000000 Z
11
+ date: 2018-01-25 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.8
114
+ rubygems_version: 2.6.6
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: OmniAuth strategy for authenticating with Cronofy