omniauth-linear 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -1
- data/README.md +2 -2
- data/lib/omniauth/strategies/linear.rb +3 -0
- data/lib/omniauth-linear/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: c7966a948a82efb4533c121008afbc5b2fdd53d0530ec81c8f6f81f684458554
|
4
|
+
data.tar.gz: 4b13d3c12c5838a371a8c24af0fec6d4d00c520cbef570c88538bfe598f91421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0d71debc099dd3099a569041ef6e28e3e1fb7dd9872dc257ca3c73702f40a056b483260592faf4c97f75e7e3e9f77c3de31190e9433f93ab681d9d7351b9b83
|
7
|
+
data.tar.gz: da83269bbca480d47fa897397605414f0f966f9c219a1a1d7e2dc9eff998210e7a15fd8535105c776aaf508fe27231ab9672becec9f3a426589191e3dcfcfc56
|
data/.github/workflows/ruby.yml
CHANGED
data/README.md
CHANGED
@@ -16,7 +16,7 @@ gem 'omniauth-linear'
|
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
use OmniAuth::Builder do
|
19
|
-
provider :linear, ENV['LINEARAPP_CLIENT_ID'], ENV['LINEARAPP_CLIENT_SECRET'], { scope: 'read,issues:create' }
|
19
|
+
provider :linear, ENV['LINEARAPP_CLIENT_ID'], ENV['LINEARAPP_CLIENT_SECRET'], { scope: 'read,issues:create', actor: 'application' }
|
20
20
|
end
|
21
21
|
```
|
22
22
|
|
@@ -26,7 +26,7 @@ In `config/initializers/linear.rb`
|
|
26
26
|
|
27
27
|
```ruby
|
28
28
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
29
|
-
provider :linear, ENV['LINEARAPP_CLIENT_ID'], ENV['LINEARAPP_CLIENT_SECRET'], { scope: 'read,issues:create' }
|
29
|
+
provider :linear, ENV['LINEARAPP_CLIENT_ID'], ENV['LINEARAPP_CLIENT_SECRET'], { scope: 'read,issues:create', actor: 'application' }
|
30
30
|
end
|
31
31
|
```
|
32
32
|
|
@@ -16,6 +16,8 @@ module OmniAuth
|
|
16
16
|
grant_type: 'authorization_code',
|
17
17
|
}
|
18
18
|
|
19
|
+
option :actor, 'user'
|
20
|
+
|
19
21
|
def request_phase
|
20
22
|
super
|
21
23
|
end
|
@@ -27,6 +29,7 @@ module OmniAuth
|
|
27
29
|
params[v.to_sym] = request.params[v]
|
28
30
|
end
|
29
31
|
end
|
32
|
+
params[:actor] = options[:actor]
|
30
33
|
end
|
31
34
|
end
|
32
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-linear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Quentin Rousseau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|