Skip to content

Attach Blossom auth token in clients#1440

Closed
tlongwell-block wants to merge 1 commit into
mainfrom
fix/blossom-auth-token
Closed

Attach Blossom auth token in clients#1440
tlongwell-block wants to merge 1 commit into
mainfrom
fix/blossom-auth-token

Conversation

@tlongwell-block

Copy link
Copy Markdown
Collaborator

Summary

  • add a global CLI --api-token / BUZZ_API_TOKEN and pass it through BuzzClient
  • attach configured API tokens as X-Auth-Token on Blossom /media/upload from CLI and desktop
  • persist/pair workspace tokens for mobile and pass them into mobile media uploads

Testing

  • PATH="$PWD/bin:$PATH" just test-unit
  • pre-push hook via PATH="$PWD/bin:$PATH" git push -u origin fix/blossom-auth-token
    • rust-tests
    • desktop-test
    • mobile-test
    • desktop-tauri-test
  • prior targeted checks before commit:
    • cargo check -p buzz-cli
    • targeted CLI tests including api_token_flag_is_available
    • flutter test in mobile (44 tests)
    • flutter analyze in mobile
    • just desktop-tauri-check

Notes

  • Tokens are optional and normalized by trimming whitespace; empty values are treated as absent.
  • The token is only an extra Blossom upload credential and does not replace Nostr identity/auth.

Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
@tlongwell-block

Copy link
Copy Markdown
Collaborator Author

Superseded by #1444. This earlier branch propagated bearer-token media auth; the replacement removes the media token path and uses Blossom kind:24242 + NIP-43 membership instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant