omniauth-cronofy 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/omniauth-cronofy/version.rb +1 -1
- data/lib/omniauth/strategies/cronofy.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bfc48b7292ab4a57c93e521fb64984132a7eb0be
|
|
4
|
+
data.tar.gz: bd7c082bf46f7552aef3ecb2ffc2522ba5cb88a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
|
@@ -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.
|
|
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:
|
|
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.
|
|
114
|
+
rubygems_version: 2.6.6
|
|
115
115
|
signing_key:
|
|
116
116
|
specification_version: 4
|
|
117
117
|
summary: OmniAuth strategy for authenticating with Cronofy
|