Repository navigation
feat(sketchfab): sign in with OhMyGame's Sketchfab application - #71
Open
xinyang6879 wants to merge 1 commit into
Open
xinyang6879 wants to merge 1 commit into
xinyang6879 wants to merge 1 commit into
Conversation
Sketchfab registered OhMyGame's OAuth application (authorization code, public client, redirect http://127.0.0.1:52817/sketchfab/callback), so the plugin now carries its client ID and offers Sign in with Sketchfab by default. The API token stays as the fallback when sign-in can't complete. The OHMYGAME_SKETCHFAB_CLIENT_ID override is removed: the app strips OHMYGAME_* variables from plugin hosts, so it never reached the plugin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changed
plugins/sketchfab/native/index.mjs: setsCLIENT_IDto OhMyGame's Sketchfab OAuth application, so Sign in with Sketchfab is offered by default. Removes theOHMYGAME_SKETCHFAB_CLIENT_IDoverride.test/sketchfab.test.ts: signed out, Settings now offerssign-inandopen-token-page; with an empty client ID, only the token page (the earlier case, kept).plugins/sketchfab/README.md: describes the built-in application instead of "until it is set, the button isn't offered", and drops the env-var step from local acceptance.0.1.0→0.1.1inpackage.jsonandplugin.json(0.1.0 is already released).Why
Sketchfab approved the OAuth application (authorization code, public client with no secret, redirect
http://127.0.0.1:52817/sketchfab/callback, matchingREDIRECT_PORT/REDIRECT_PATH). A public client's ID isn't a secret, so it ships in the plugin.The env override never worked: the app's
projectProcessEnvironmentdeletes everyOHMYGAME_*variable before starting plugin hosts, so it never reached the plugin.The API token stays as the fallback for when OAuth can't finish (for example, port 52817 in use).
How it was checked
node --test test/sketchfab.test.ts: 7/7 pass.npm test(app linked asapp/, Node 22.19): 309/318. The 9 failures (doubao-voice ×7, pixel-sprites search data, official plugins doubao-voice/pixelfx "released as it is") fail identically on unmodifiedmain; none are in sketchfab.npm run typecheck: passes.Still needed (manual): uninstall the released Sketchfab, add
plugins/sketchfabunder Plugins › Add plugin › This computer with Develop on, then Sign in with Sketchfab → Allow → status shows the account. Also: add a CC BY model (GLB with author and license), Cancel sign-in, Sign out, and deny on Sketchfab's page.🤖 Generated with Claude Code