omniauth-figma-oauth2 1.0.2 → 1.0.3
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/CHANGELOG.md +9 -5
- data/README.md +13 -1
- data/lib/omniauth/strategies/figma.rb +0 -1
- data/lib/omniauth-figma/version.rb +1 -1
- data/omniauth-figma-oauth2-1.0.2.gem +0 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48e85e87de36a28b05007695447c2b57308c758f575bf4bfa25e3ffd9b69511c
|
|
4
|
+
data.tar.gz: '09f9a3274c0c08a4170f0484f3ba49f3b4e8d9d43796de0243ab440ab770068d'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5b16d4284f49cf07114e66ab8e4763c785ccad096c147c3ea45c42bb57a02c8ac6de6abfc95175957c91d8cdf648fb5f8e7217f4e9835e4675c2a8bc11a6be0
|
|
7
|
+
data.tar.gz: acfccf033a601b90db550ae854a65a76e3d96f37c6a238f324e9976548481765f5024b8bc5cc46edb7bb753584ea97796d7798a37cb85135dda13f93d94904dc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
-
## [1.0.
|
|
3
|
+
## [1.0.3] - 2025-11-21
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- Remove default scope from gem - scope must now be explicitly specified in app configuration
|
|
6
|
+
- Update to use current Figma API scopes (deprecated `figma:read` removed)
|
|
7
|
+
- Add documentation for scope configuration in README
|
|
6
8
|
|
|
9
|
+
## [1.0.2] - 2024-03-18
|
|
10
|
+
|
|
11
|
+
- Send OAuth credentials in the request header
|
|
7
12
|
|
|
8
13
|
## [1.0.1] - 2024-03-18
|
|
9
14
|
|
|
10
15
|
- Use the new API base URL structure to call Figma’s OAuth APIs: https://api.figma.com/v1/
|
|
11
16
|
|
|
17
|
+
## [1.0.0] - 2024-08-22
|
|
12
18
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- Send OAuth credentials in the request header
|
|
19
|
+
- Initial release
|
data/README.md
CHANGED
|
@@ -30,7 +30,19 @@ This is an example that you might put into a Rails initializer at `config/initia
|
|
|
30
30
|
|
|
31
31
|
```ruby
|
|
32
32
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
33
|
-
provider :figma, ENV['CLIENT_ID'], ENV['CLIENT_SECRET']
|
|
33
|
+
provider :figma, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'],
|
|
34
|
+
scope: 'file_content:read'
|
|
35
|
+
end
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Note:** You must specify the `scope` parameter with the permissions your app needs. Available scopes are documented in the [Figma REST API documentation](https://developers.figma.com/docs/rest-api/scopes/).
|
|
39
|
+
|
|
40
|
+
### Example with Multiple Scopes
|
|
41
|
+
|
|
42
|
+
```ruby
|
|
43
|
+
Rails.application.config.middleware.use OmniAuth::Builder do
|
|
44
|
+
provider :figma, ENV['CLIENT_ID'], ENV['CLIENT_SECRET'],
|
|
45
|
+
scope: 'current_user:read file_comments:read file_content:read file_metadata:read file_versions:read projects:read'
|
|
34
46
|
end
|
|
35
47
|
```
|
|
36
48
|
|
|
@@ -5,7 +5,6 @@ module OmniAuth
|
|
|
5
5
|
class Figma < OmniAuth::Strategies::OAuth2
|
|
6
6
|
|
|
7
7
|
option :name, 'figma'
|
|
8
|
-
option :scope, 'files:read' # use 'files:read' instead of 'file_read' (check: https://www.figma.com/developers/api#authentication-scopes)
|
|
9
8
|
option :client_options, {
|
|
10
9
|
site: 'https://api.figma.com/v1/',
|
|
11
10
|
authorize_url: 'https://www.figma.com/oauth',
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-figma-oauth2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philipp Riedel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth-oauth2
|
|
@@ -159,6 +159,7 @@ files:
|
|
|
159
159
|
- lib/omniauth/strategies/figma.rb
|
|
160
160
|
- omniauth-figma-oauth2-1.0.0.gem
|
|
161
161
|
- omniauth-figma-oauth2-1.0.1.gem
|
|
162
|
+
- omniauth-figma-oauth2-1.0.2.gem
|
|
162
163
|
- omniauth-figma-oauth2.gemspec
|
|
163
164
|
homepage: https://github.com/phiele/omniauth-figma-oauth2
|
|
164
165
|
licenses:
|
|
@@ -179,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
179
180
|
- !ruby/object:Gem::Version
|
|
180
181
|
version: '0'
|
|
181
182
|
requirements: []
|
|
182
|
-
rubygems_version: 3.4.
|
|
183
|
+
rubygems_version: 3.4.10
|
|
183
184
|
signing_key:
|
|
184
185
|
specification_version: 4
|
|
185
186
|
summary: Figma OAuth2 strategy for OmniAuth
|