Skip to content

Commit

Permalink
fix: default to "files:read" scope for Figma provider
Browse files Browse the repository at this point in the history
  • Loading branch information
smogg committed Nov 4, 2024
1 parent 4614dc5 commit 0295bda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/api/external_figma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (ts *ExternalTestSuite) TestSignupExternalFigma() {
ts.Equal(ts.Config.External.Figma.RedirectURI, q.Get("redirect_uri"))
ts.Equal(ts.Config.External.Figma.ClientID, []string{q.Get("client_id")})
ts.Equal("code", q.Get("response_type"))
ts.Equal("file_read", q.Get("scope"))
ts.Equal("files:read", q.Get("scope"))

claims := ExternalProviderClaims{}
p := jwt.NewParser(jwt.WithValidMethods([]string{jwt.SigningMethodHS256.Name}))
Expand Down
2 changes: 1 addition & 1 deletion internal/api/provider/figma.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewFigmaProvider(ext conf.OAuthProviderConfiguration, scopes string) (OAuth

// Figma only provides the "file_read" scope.
oauthScopes := []string{
"file_read",
"files:read",
}

if scopes != "" {
Expand Down

0 comments on commit 0295bda

Please sign in to comment.