omniauth-monday 0.2.0 → 0.2.4
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 +4 -4
- data/README.md +21 -19
- data/lib/omniauth/strategies/monday.rb +1 -4
- data/lib/omniauth-monday/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb9b2ef6d5dece8d0db56ae9e35f34876c07fdf62fc5803ece299c6a63b5fa18
|
4
|
+
data.tar.gz: fa8a8a85780a5bdfa81a73d7dc8440b583e769c1bba1809d0adc96ce3a8bd55b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c411094aca2f09220c2c5a5ce85ac9a66c919857d04b11358218c1f47bce8a736f1f502e4de82fb2c153026fd6b1ffc109aec2035f66e881e8faba5a88099a7a
|
7
|
+
data.tar.gz: 4cd2a98ebcdf526178a3ec754f9cf87b7a55ec74a98c0956b96d5048b588bb1f3e0aace82def3e3d003c9bcdf2ca5a9ad8d116beec3390f544a6a98cea23edda
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-monday (0.2.
|
4
|
+
omniauth-monday (0.2.4)
|
5
5
|
omniauth (~> 2.0)
|
6
6
|
omniauth-oauth2 (~> 1.7)
|
7
7
|
|
@@ -39,9 +39,9 @@ GEM
|
|
39
39
|
ast (~> 2.4.1)
|
40
40
|
racc
|
41
41
|
racc (1.7.1)
|
42
|
-
rack (
|
43
|
-
rack-protection (3.0
|
44
|
-
rack
|
42
|
+
rack (2.2.8)
|
43
|
+
rack-protection (3.1.0)
|
44
|
+
rack (~> 2.2, >= 2.2.4)
|
45
45
|
rainbow (3.1.1)
|
46
46
|
rake (13.0.6)
|
47
47
|
regexp_parser (2.8.1)
|
data/README.md
CHANGED
@@ -1,39 +1,41 @@
|
|
1
|
-
#
|
1
|
+
# OmniAuth Monday
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
This is the official OmniAuth strategy for authenticating to Monday. To
|
4
|
+
use it, you'll need to sign up for an OAuth2 Client ID and Secret at Monday.com.
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
8
|
```ruby
|
12
9
|
gem 'omniauth-monday'
|
13
10
|
```
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
12
|
+
## Basic Usage
|
20
13
|
|
21
|
-
|
14
|
+
```ruby
|
15
|
+
use OmniAuth::Builder do
|
16
|
+
provider :monday, ENV['MONDAY_CLIENT_ID'], ENV['MONDAY_CLIENT_SECRET'], { scope: 'me boards:read' }
|
17
|
+
end
|
18
|
+
```
|
22
19
|
|
23
|
-
## Usage
|
20
|
+
## Basic Usage Rails
|
24
21
|
|
25
|
-
|
22
|
+
In `config/initializers/monday.rb`
|
26
23
|
|
27
|
-
|
24
|
+
```ruby
|
25
|
+
Rails.application.config.middleware.use OmniAuth::Builder do
|
26
|
+
provider :monday, ENV['MONDAY_CLIENT_ID'], ENV['MONDAY_CLIENT_SECRET'], { scope: 'me boards:read' }
|
27
|
+
end
|
28
|
+
```
|
28
29
|
|
29
|
-
|
30
|
+
## Semver
|
30
31
|
|
31
|
-
|
32
|
+
This project adheres to Semantic Versioning 2.0.0. Any violations of this scheme are considered to be bugs.
|
33
|
+
All changes will be tracked [here](https://github.com/rob-race/omniauth-monday/releases).
|
32
34
|
|
33
35
|
## Contributing
|
34
36
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rob-race/omniauth-monday.
|
36
38
|
|
37
39
|
## License
|
38
40
|
|
39
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
41
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require "omniauth-oauth2"
|
2
|
-
require "graphql/client"
|
3
2
|
|
4
3
|
module OmniAuth
|
5
4
|
module Strategies
|
@@ -17,9 +16,7 @@ module OmniAuth
|
|
17
16
|
def authorize_params
|
18
17
|
super.tap do |params|
|
19
18
|
%w[client_options].each do |v|
|
20
|
-
if request.params[v]
|
21
|
-
params[v.to_sym] = request.params[v]
|
22
|
-
end
|
19
|
+
params[v.to_sym] = request.params[v] if request.params[v]
|
23
20
|
end
|
24
21
|
end
|
25
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-monday
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Race
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|