Repository navigation
feat: choose whether an uploaded build goes into use, and document application access tokens - #23
Merged
Merged
Conversation
Document Portal's application access tokens (`ipat_…`) as the credential for pipelines and integrations: what each permission allows and which command needs it, where to create and revoke a token, that it acts in its own organization, and the 401/403 answers. Add examples for uploading and publishing from a pipeline (with a GitHub Actions step) and for downloading a build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comments after each line continuation broke the command when pasted into a shell. The command now runs as is, and the options are explained below it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 3.6.0 release commit bumped pyproject.toml only, so `uv sync --locked` in CI rejects the lockfile, which still records portal-client 3.5.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`applications v2 upload-build --set-as-current-version` puts the build into use: launch configurations of its XR platforms without a build get it right away, and the others switch to it once Portal has scanned and validated it. `--no-set-as-current-version` saves it without putting it into use. Without either, Portal decides: builds uploaded with an application access token are not put into use, builds uploaded by people are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
burnedikt
marked this pull request as ready for review
November 23, 2026 12:41
|
🎉 This PR is included in version 3.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update: choose whether an uploaded build goes into use (
feat)applications v2 upload-buildgets--set-as-current-version/--no-set-as-current-version:--set-as-current-versionputs the build into use. Launch configurations of its XR platforms without a build get it right away, and the others switch to it once Portal has scanned and validated it. With an application access token, this needs "Publish builds".--no-set-as-current-versionsaves the build without putting it into use.Before this, a token with upload and publish put every upload into use, because the CLI never sent the field and Portal's default is true. The README's pipeline example now uploads with
--set-as-current-version, andupdate-launch-configurationis described as the way to publish later, for example after a test stage. Tests:tests/test_applications_v2_upload_build.py(3 new; 66 pass).Also on this branch:
choresyncsuv.lockwith the 3.6.0 project version. The 3.6.0 release commit bumped onlypyproject.toml, souv sync --lockedhas failed CI onmainsince 2026-10-06. #22 already makes later releases update both.Verified end to end against Innoactive/Portal-Backend#2734 on a local stack:
upload-build, no flagupload-build --set-as-current-versionupload-build --set-as-current-versionWhat changed (first version)
ipat_…, Innoactive/Portal-Backend#2232) as the credential for pipelines and integrations.upload-buildfollowed byupdate-launch-configuration.builds download, and theAuthorization: Bearerheader for other tools.# commentsafter each\, which broke it when pasted into a shell. The command is now copy-pasteable, and the options are explained below it.The CLI already sends
PORTAL_BACKEND_ACCESS_TOKENasAuthorization: Bearer …, and none of these commands sends an organization.How it was verified
Setup:
developat a7120bfc3 (the merge of Innoactive/Portal-Backend#2724), served byrunserveron the host with SQLite. Docker's Postgres wouldn't start on the machine, soscripts/dev-stackwasn't used.PORTAL_BACKEND_ENDPOINT=http://localhost:8399and an empty config directory, so no stored login was used.POST /api/v2/applications/<id>/access-tokens/as an application manager: upload + publish, upload only, and download only.Results, all with the commands as the README shows them:
applications v2 upload-build ./build.zip --application-id … --version … --xr-platform win-non-vr --executable-path MyApp.exeuploaded_by_tokenapplications v2 update-launch-configuration <app> win-non-vr <build>, and withquestapplications v2 get <app>,applications v2 builds get <build>run:block underbash -eo pipefailupload-build(quest)update-launch-configurationupload-build --xr-platform pico(no such launch configuration)builds downloadbuilds download <build> --filepath ./downloaded.apkbuilds downloadwithout--filepathapplication_archivewithAuthorization: Bearer …upload-buildapplications v2 listgettheir application, as the README says)Portal-Organization-Idnaming the token's organization / another organizationDELETE …/access-tokens/<id>/→ 204)builds downloadThe secret doesn't appear in the server log.
Part of Innoactive/Portal-Backend#2721.
🤖 Generated with Claude Code