Skip to content

Fetch ringing tutorial credentials from the demo token generator - #1890

Closed
aleksandar-apostolov wants to merge 1 commit into
develop-v2from
fix/ringing-tutorial-demo-credentials-v2
Closed

aleksandar-apostolov wants to merge 1 commit into
develop-v2from
fix/ringing-tutorial-demo-credentials-v2

Conversation

@aleksandar-apostolov

Copy link
Copy Markdown
Contributor

Goal

Fixes AND-1708 — the ringing tutorial hardcoded a revoked API key and tokens signed with its secret, so it could no longer log in.

Implementation

  • RingingApp.login is now suspend and fetches apiKey + token from pronto.getstream.io/api/auth/create-token?environment=demo before building StreamVideo.
  • Removed the hardcoded API key and the per-user tokens from TutorialUser.
  • MainActivity logs in from lifecycleScope; on a network or parse failure it logs and stays on the login screen.

Testing

./gradlew :tutorials:tutorial-ringing:assembleDebug

…erator

The API key hardcoded in the ringing tutorial was revoked, and the
bundled user tokens were signed with its secret. Fetch the API key and
token from the demo token generator at login instead, so the tutorial
no longer hardcodes keys.
@aleksandar-apostolov aleksandar-apostolov added the pr:bug Fixes a bug label Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled, or the PR is bot-authored.
  • An issue is linked (Linear ticket or GitHub issue), or the PR is bot-authored.

🎉 Great job! This PR is ready for review.

@github-actions

Copy link
Copy Markdown
Contributor

SDK Size Comparison 📏

SDK Before After Difference Status
stream-video-android-core 12.38 MB 12.66 MB 0.29 MB 🟡
stream-video-android-ui-xml 5.66 MB 5.70 MB 0.04 MB 🟢
stream-video-android-ui-compose 6.19 MB 3.16 MB -3.03 MB 🚀

@sonarqubecloud

Copy link
Copy Markdown

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

Labels

pr:bug Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants