Skip to content

Bench: Update channel authentication - #856

Merged
ao-david merged 1 commit into
mainfrom
update-channel-auth
Sep 30, 2026
Merged

ao-david merged 1 commit into
mainfrom
update-channel-auth

Conversation

@ao-david

Copy link
Copy Markdown
Member

This change updates the channel authentication to correctly register the callback handler, whilst also cleaning up the pipeline.

@ao-david
ao-david requested a review from a team September 30, 2026 03:20

@elliot-ausocean elliot-ausocean left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good other than a few nits.

Comment thread ytclient/channel_auth.go
and broadcast scheduling.

AUTHORS
Saxon Nelson-Milton <saxon@ausocean.org>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this file new or did it get lost? If it is new, is this list of authors correct?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a new file, but with most of the functions copied/heavily inspired by the existing files, so I gave credit.

Comment thread ytclient/channel_auth.go
return fmt.Errorf("unable to set token-url value in oauth flow session: %w", err)
}

maxAge := 10 * 60 // 10 minutes

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This could be moved above oauthFlowSession.SetMaxAge so that they both use the same value.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was supposed to remove the first call to setMaxAge, which I have now done

This change updates the channel authentication to correctly register the
callback handler, whilst also cleaning up the pipeline.
@ao-david
ao-david merged commit 40216a2 into main Sep 30, 2026
3 checks passed
@ao-david
ao-david deleted the update-channel-auth branch September 30, 2026 03:38
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.

2 participants