omniauth-gorgias-oauth2 0.1.0 → 0.1.2
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/Gemfile.lock +1 -2
- data/README.md +14 -11
- data/lib/omniauth/gorgias/version.rb +1 -1
- data/omniauth-gorgias-oauth2.gemspec +0 -2
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a17a3bab29190f9ea8f1a05e57fa14c5f3a07e794773437e2c33378b32851e1b
|
4
|
+
data.tar.gz: 506dbfb078af1aac8c0a97d74af9d1d2fd0f2f4fa97f84a353941f41b990400e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 712ef58ff89b170a26c004ba8b9a9c787ef76c09327b925e2c9f47d57862d860ca1c07e02b5894e5e86723a695ae9518aed4d361f4ff934a04ead8087e4d9cf2
|
7
|
+
data.tar.gz: f148600cc69524fadabf700df220b805e3c6bc535e73ad24258c4f6ff8d735f46bbb813a08c5a9fda7df7f9d6b24caf9709294af9689a8eb99f0dfdb6d7e7789
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-gorgias-oauth2 (0.1.
|
4
|
+
omniauth-gorgias-oauth2 (0.1.2)
|
5
5
|
omniauth-oauth2 (~> 1.5)
|
6
6
|
|
7
7
|
GEM
|
@@ -72,7 +72,6 @@ PLATFORMS
|
|
72
72
|
ruby
|
73
73
|
|
74
74
|
DEPENDENCIES
|
75
|
-
bundler (~> 1.17)
|
76
75
|
omniauth-gorgias-oauth2!
|
77
76
|
rake (~> 10.0)
|
78
77
|
rspec (~> 3.9, >= 3.9.0)
|
data/README.md
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
# OmniAuth
|
2
|
-
Gorgias OAuth2 Strategy for OmniAuth
|
1
|
+
# Gorgias OmniAuth
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
[Gorgias](https://gorgias.com) OAuth2 Strategy for [OmniAuth](https://github.com/omniauth/omniauth)
|
7
4
|
|
8
5
|
## Installation
|
9
6
|
|
@@ -23,17 +20,23 @@ Or install it yourself as:
|
|
23
20
|
|
24
21
|
## Usage
|
25
22
|
|
26
|
-
|
27
|
-
|
28
|
-
## Development
|
23
|
+
`OmniAuth::Strategies::Gorgias` is simply a Rack middleware. Read [the OmniAuth docs](https://github.com/omniauth/omniauth) for detailed instructions.
|
29
24
|
|
30
|
-
|
25
|
+
Here's a quick example, adding the middleware to a Rails app initializer :
|
31
26
|
|
32
|
-
|
27
|
+
```ruby
|
28
|
+
Rails.application.config.middleware.use OmniAuth::Builder do
|
29
|
+
provider :gorgias,
|
30
|
+
ENV['GORGIAS_CLIENT_ID'],
|
31
|
+
ENV['GORGIAS_CLIENT_SECRET'],
|
32
|
+
callback_path: '/auth/gorgias/callback',
|
33
|
+
scope: 'openid email profile offline write:all'
|
34
|
+
end
|
35
|
+
```
|
33
36
|
|
34
37
|
## Contributing
|
35
38
|
|
36
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/feracommerce/omniauth-gorgias-oauth2.
|
37
40
|
|
38
41
|
## License
|
39
42
|
|
@@ -17,8 +17,6 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.5'
|
19
19
|
|
20
|
-
spec.add_development_dependency 'bundler', '~> 1.17'
|
21
20
|
spec.add_development_dependency 'rake', '~> 10.0'
|
22
21
|
spec.add_development_dependency 'rspec', '~> 3.9', '>= 3.9.0'
|
23
|
-
|
24
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-gorgias-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Azemoh
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.5'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: bundler
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '1.17'
|
35
|
-
type: :development
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '1.17'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: rake
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|