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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16fb6386fc0f3e4f9eaca669f3c18130d97d804f9a4ac7c512a6cb61a2c1e683
4
- data.tar.gz: 12b5f692b02be2a55255b2b418a5975e0d03989b2e05e14c440321eab741c4c2
3
+ metadata.gz: 48e85e87de36a28b05007695447c2b57308c758f575bf4bfa25e3ffd9b69511c
4
+ data.tar.gz: '09f9a3274c0c08a4170f0484f3ba49f3b4e8d9d43796de0243ab440ab770068d'
5
5
  SHA512:
6
- metadata.gz: 64a1430e519d4b6015669be03a3ed65ca98ec30a5875e089cb414316c801eec93ee5ce39d63a062f8bbf7d172003d44bdde3565dd2ccf00c9a93630240cb882d
7
- data.tar.gz: 4308c2396438c3e34f0c714bdc8fed288ae5c6a9f51f53a8b1d8b067f754fdcef9a2e63c6bf356219724f17880d368b00878398ba2ed85c90bb1a1c1a4f15374
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.0] - 2024-08-22
3
+ ## [1.0.3] - 2025-11-21
4
4
 
5
- - Initial release
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
- ## [1.0.2] - 2024-03-18
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',
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Figma
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
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.2
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-03-18 00:00:00.000000000 Z
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.20
183
+ rubygems_version: 3.4.10
183
184
  signing_key:
184
185
  specification_version: 4
185
186
  summary: Figma OAuth2 strategy for OmniAuth