Skip to content

feat: Add Authorization Token support#115

Open
daniel-hayes wants to merge 2 commits intomainfrom
dh/authorization-flow
Open

feat: Add Authorization Token support#115
daniel-hayes wants to merge 2 commits intomainfrom
dh/authorization-flow

Conversation

@daniel-hayes
Copy link
Collaborator

@daniel-hayes daniel-hayes commented Feb 13, 2026

Overview

Adds muxAuthorizationToken as an alternative to the muxTokenId/muxTokenSecret pair for Mux API authentication.

What was changed

  • Added muxAuthorizationToken field to WorkflowCredentials interface
  • Updated credential resolution to accept either token pair OR authorization token
  • Removed unused context parameter from signUrl() and updated all call sites

Suggested review order

  1. src/types.ts - New muxAuthorizationToken field in WorkflowCredentials
  2. src/lib/workflow-credentials.ts - Resolution logic allowing auth token as alternative
  3. src/lib/url-signing.ts - Removed unused context parameter from signUrl()
  4. Call site updates: storyboards.ts, thumbnails.ts, transcripts.ts, moderation.ts, translate-audio.ts
  5. tests/integration/signed-playback.test.ts - Updated test calls

@snyk-io
Copy link

snyk-io bot commented Feb 13, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

}

if (!tokenId || !tokenSecret) {
if ((!tokenId || !tokenSecret) && !authorizationToken) {
Copy link
Collaborator Author

@daniel-hayes daniel-hayes Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

purposely didn't update the error message below so we're not encouraging our users to utilize the authorizationToken.

@daniel-hayes daniel-hayes marked this pull request as ready for review February 18, 2026 22:19
@daniel-hayes daniel-hayes changed the title Add Authorization Token support feat: Add Authorization Token support Feb 18, 2026
Copy link
Collaborator

@walkerfrankenberg walkerfrankenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not super familiar with mux node, but looks like all we need to do is pass the auth token along, so lgtm

Copy link
Collaborator

@monsieurBoutte monsieurBoutte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

3 participants

Comments