omniauth-webflow 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Development.md +7 -0
- data/Gemfile.lock +34 -13
- data/README.md +20 -19
- data/lib/omniauth-webflow/version.rb +1 -1
- data/omniauth-webflow.gemspec +15 -15
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdeb0c0b2d3116f3845630ec72d36f3a2bd2b3c33a612772dd64a8b63f693d32
|
4
|
+
data.tar.gz: ba32be657fe24a8a1b7f0ccd9069f34d2794e68b7ca6046c7fe31ddbc779f7ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab958103ab845e0f37fa8ca049be7a0e352f5770129bb1d8b73b3cc3df08191fc3e7af01672d1bb66cf692eed12c44a07b0ded78be02393fab1f264c13a7da40
|
7
|
+
data.tar.gz: 65294855f9c5ee1b2376e9df6eb84158ba28b8c5f3e1722a7d8ab78c15b1b33b67be4def9b95771a515e294a8cdd8184f55c3c667bd021da7841bb90ffb91b30
|
data/Development.md
ADDED
data/Gemfile.lock
CHANGED
@@ -1,34 +1,54 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-webflow (0.1.
|
5
|
-
multi_json (
|
6
|
-
omniauth-oauth2 (
|
4
|
+
omniauth-webflow (0.1.1)
|
5
|
+
multi_json (~> 1.15)
|
6
|
+
omniauth-oauth2 (~> 1.7)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
diff-lcs (1.3)
|
12
|
-
faraday (1.0
|
12
|
+
faraday (1.8.0)
|
13
|
+
faraday-em_http (~> 1.0)
|
14
|
+
faraday-em_synchrony (~> 1.0)
|
15
|
+
faraday-excon (~> 1.1)
|
16
|
+
faraday-httpclient (~> 1.0.1)
|
17
|
+
faraday-net_http (~> 1.0)
|
18
|
+
faraday-net_http_persistent (~> 1.1)
|
19
|
+
faraday-patron (~> 1.0)
|
20
|
+
faraday-rack (~> 1.0)
|
13
21
|
multipart-post (>= 1.2, < 3)
|
14
|
-
|
15
|
-
|
16
|
-
|
22
|
+
ruby2_keywords (>= 0.0.4)
|
23
|
+
faraday-em_http (1.0.0)
|
24
|
+
faraday-em_synchrony (1.0.0)
|
25
|
+
faraday-excon (1.1.0)
|
26
|
+
faraday-httpclient (1.0.1)
|
27
|
+
faraday-net_http (1.0.1)
|
28
|
+
faraday-net_http_persistent (1.2.0)
|
29
|
+
faraday-patron (1.0.0)
|
30
|
+
faraday-rack (1.0.0)
|
31
|
+
hashie (5.0.0)
|
32
|
+
jwt (2.3.0)
|
33
|
+
multi_json (1.15.0)
|
17
34
|
multi_xml (0.6.0)
|
18
35
|
multipart-post (2.1.1)
|
19
|
-
oauth2 (1.4.
|
36
|
+
oauth2 (1.4.7)
|
20
37
|
faraday (>= 0.8, < 2.0)
|
21
38
|
jwt (>= 1.0, < 3.0)
|
22
39
|
multi_json (~> 1.3)
|
23
40
|
multi_xml (~> 0.5)
|
24
41
|
rack (>= 1.2, < 3)
|
25
|
-
omniauth (
|
42
|
+
omniauth (2.0.4)
|
26
43
|
hashie (>= 3.4.6)
|
27
44
|
rack (>= 1.6.2, < 3)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
45
|
+
rack-protection
|
46
|
+
omniauth-oauth2 (1.7.2)
|
47
|
+
oauth2 (~> 1.4)
|
48
|
+
omniauth (>= 1.9, < 3)
|
49
|
+
rack (2.2.3)
|
50
|
+
rack-protection (2.1.0)
|
51
|
+
rack
|
32
52
|
rake (12.3.3)
|
33
53
|
rspec (3.9.0)
|
34
54
|
rspec-core (~> 3.9.0)
|
@@ -43,6 +63,7 @@ GEM
|
|
43
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
44
64
|
rspec-support (~> 3.9.0)
|
45
65
|
rspec-support (3.9.3)
|
66
|
+
ruby2_keywords (0.0.5)
|
46
67
|
|
47
68
|
PLATFORMS
|
48
69
|
ruby
|
data/README.md
CHANGED
@@ -1,10 +1,18 @@
|
|
1
|
-
#
|
1
|
+
# omniauth-webflow
|
2
2
|
|
3
|
-
|
3
|
+
This gem is an [OmniAuth 1.0](https://github.com/omniauth/omniauth) Strategy for authenticating with the [Webflow API](https://developers.webflow.com/) (version 1.0.0)
|
4
4
|
|
5
|
-
|
5
|
+
## Setup
|
6
6
|
|
7
|
-
|
7
|
+
First, you will need to register your application with Webflow. This can be done on the [Integrations](https://webflow.com/dashboard/account/integrations) tab.
|
8
|
+
|
9
|
+
**Important:** your callback URL should be specified as `https://[hostname]/auth/webflow/callback`
|
10
|
+
|
11
|
+
In order to authenticate with Webflow in both development and production we recommend registering a "-dev" app with Webflow that points at your localhost app. One thing to note here is that Webflow requires your callback url to be `https`.
|
12
|
+
|
13
|
+
After registering a new application with Webflow take note of the `client_id` and `client_secret` provided. You should put these into your Rails credentials or store them as environment variables like `ENV['WEBFLOW_CLIENT_ID']` and `ENV['WEBFLOW_CLIENT_SECRET']`
|
14
|
+
|
15
|
+
## Usage
|
8
16
|
|
9
17
|
Add this line to your application's Gemfile:
|
10
18
|
|
@@ -16,24 +24,17 @@ And then execute:
|
|
16
24
|
|
17
25
|
$ bundle install
|
18
26
|
|
19
|
-
|
20
|
-
|
21
|
-
$ gem install omniauth-webflow
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
27
|
+
In your Rails app, add the Webflow provider to your Omniauth middleware, e.g. in a file like `config/initializers/omniauth.rb`:
|
30
28
|
|
31
|
-
|
29
|
+
```ruby
|
30
|
+
Rails.application.config.middleware.use OmniAuth::Builder do
|
31
|
+
provider :webflow, ENV['WEBFLOW_CLIENT_ID'], ENV['WEBFLOW_CLIENT_SECRET']
|
32
|
+
end
|
33
|
+
```
|
32
34
|
|
33
35
|
## Contributing
|
34
36
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
36
|
-
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/wrk-corp/omniauth-webflow. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/wrk-corp/omniauth-webflow/blob/master/CODE_OF_CONDUCT.md).
|
37
38
|
|
38
39
|
## License
|
39
40
|
|
@@ -41,4 +42,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
41
42
|
|
42
43
|
## Code of Conduct
|
43
44
|
|
44
|
-
Everyone interacting in the Omniauth::Webflow project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
45
|
+
Everyone interacting in the Omniauth::Webflow project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/wrk-corp/omniauth-webflow/blob/master/CODE_OF_CONDUCT.md).
|
data/omniauth-webflow.gemspec
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
require_relative 'lib/omniauth-webflow/version'
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
|
-
spec.name =
|
4
|
+
spec.name = 'omniauth-webflow'
|
5
5
|
spec.version = Omniauth::Webflow::VERSION
|
6
|
-
spec.authors = [
|
7
|
-
spec.email = [
|
6
|
+
spec.authors = ['Andrew']
|
7
|
+
spec.email = ['andrew@wrkhq.com']
|
8
8
|
|
9
|
-
spec.summary =
|
10
|
-
spec.description =
|
11
|
-
spec.homepage =
|
12
|
-
spec.license =
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new(
|
9
|
+
spec.summary = 'Omniauth strategy for Webflow'
|
10
|
+
spec.description = 'Omniauth strategy for Webflow'
|
11
|
+
spec.homepage = 'https://github.com/wrk-corp/omniauth-webflow'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
14
14
|
|
15
15
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
16
16
|
|
17
|
-
spec.metadata[
|
18
|
-
spec.metadata[
|
17
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
+
spec.metadata['source_code_uri'] = 'https://github.com/wrk-corp/omniauth-webflow'
|
19
19
|
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
-
spec.files
|
23
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
24
24
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
25
|
end
|
26
|
-
spec.bindir =
|
26
|
+
spec.bindir = 'exe'
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = [
|
28
|
+
spec.require_paths = ['lib']
|
29
29
|
|
30
30
|
# spec.add_runtime_dependency 'omniauth-oauth2'
|
31
31
|
# spec.add_runtime_dependency 'multi_json'
|
32
32
|
|
33
|
-
spec.add_dependency 'omniauth-oauth2', '~> 1.
|
34
|
-
spec.add_dependency 'multi_json', '~> 1.
|
33
|
+
spec.add_dependency 'omniauth-oauth2', '~> 1.7'
|
34
|
+
spec.add_dependency 'multi_json', '~> 1.15'
|
35
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-webflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth2
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: multi_json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: '1.15'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: '1.15'
|
41
41
|
description: Omniauth strategy for Webflow
|
42
42
|
email:
|
43
43
|
- andrew@wrkhq.com
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- ".ruby-version"
|
52
52
|
- ".travis.yml"
|
53
53
|
- CODE_OF_CONDUCT.md
|
54
|
+
- Development.md
|
54
55
|
- Gemfile
|
55
56
|
- Gemfile.lock
|
56
57
|
- LICENSE.txt
|
@@ -68,7 +69,7 @@ licenses:
|
|
68
69
|
metadata:
|
69
70
|
homepage_uri: https://github.com/wrk-corp/omniauth-webflow
|
70
71
|
source_code_uri: https://github.com/wrk-corp/omniauth-webflow
|
71
|
-
post_install_message:
|
72
|
+
post_install_message:
|
72
73
|
rdoc_options: []
|
73
74
|
require_paths:
|
74
75
|
- lib
|
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
85
|
version: '0'
|
85
86
|
requirements: []
|
86
87
|
rubygems_version: 3.1.2
|
87
|
-
signing_key:
|
88
|
+
signing_key:
|
88
89
|
specification_version: 4
|
89
90
|
summary: Omniauth strategy for Webflow
|
90
91
|
test_files: []
|