Skip to content

API token not authorized when user restricted out of main branch #5700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
ready4sea opened this issue Apr 17, 2025 · 0 comments
Open
2 tasks done

API token not authorized when user restricted out of main branch #5700

ready4sea opened this issue Apr 17, 2025 · 0 comments
Labels
status: needs triage A potential issue that has not been confirmed as a bug.

Comments

@ready4sea
Copy link

ready4sea commented Apr 17, 2025

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When adding a collaborator to a project and restricting him to a specific branch (not allowing him to edit or merge into "main"), the user cannot used FlutterFlow CLI or the VSCode extension to work with the specific branch.

Expected Behavior

The collborator should be able to work on his branch, while being denied access to main.

Steps to Reproduce

  • Create an entirely blank project
  • Created a branch "test-branch"
  • Invited a teammate as collaborator on the project
  • Confine him to the created "test-branch", restricting him from either editing or pushing to the "main" branch
  • Using FlutterFlow CLI or the CS Code extension, the API token returns a 403 "User not authorized" error when attempting to pull "test-branch". For example using flutterflow export-code --project test-abcdef --branch-name test-branch --project-environment Production --include-assets --token <HIS_API_TOKEN>
  • Allow the collaborator back onto "main" branch
  • Using the same command to pull "test-branch" now works fine.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT40lObnw4l4vtd81831LPpv+RIRQ2YXRp0noNx7aCosfZT2BLMcec/RVERDTbzmT1Y3IFqgq2oW0dKNjt+WM8I5Awisbb5FwpBUZQ/yJWOQR5CMFJWgeERQM+5UfX6m3JmzrxF5BNZtW1Y132WuO+SXUjLUNJj6PXo4Da/LZO4=

Visual documentation

User is not allowed onto "main" branch, and tries to pull "test-branch"

Image

Image

User is allowed onto "main" branch, and pulls "test-branch"

Image

Environment

- FlutterFlow version: 5.4.3
- Platform: macos & web
- Browser name and version: Chrome 135.0.7049.85
- Operating system and version affected: macos Sequoia 15.4

Additional Information

No response

@ready4sea ready4sea added the status: needs triage A potential issue that has not been confirmed as a bug. label Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage A potential issue that has not been confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

1 participant