Add oauth support for audio cog #6537

Closed
opened 2025-03-14 14:03:10 +01:00 by AndryS0 · 3 comments
AndryS0 commented 2025-03-14 14:03:10 +01:00 (Migrated from github.com)

What component of Red (cog, command, API) would you like to see improvements on?

Audio

Describe the enhancement you're suggesting.

Right now, the only way to set up YouTube OAuth is to switch to an unmanaged node. However, this could be added as a feature in the Audio cog.

Here’s how I see it:
!llset config oauth // Toggles OAuth login
When enabled, the managed node is stopped and restarted with updated application.yml parameters, setting oauth.enabled: true.
Lavalink outputs an OAuth link and code to stdout, which can be parsed and sent to the owner's DMs.
After logging in, the refresh token must be extracted (from stdout), saved, and used to update application.yml. When !llset config oauth is toggled off, the refresh token is reset, requiring the OAuth setup process to be repeated.

Anything else?

No response

### What component of Red (cog, command, API) would you like to see improvements on? Audio ### Describe the enhancement you're suggesting. Right now, the only way to set up YouTube OAuth is to switch to an unmanaged node. However, this could be added as a feature in the Audio cog. Here’s how I see it: `!llset config oauth // Toggles OAuth login` When enabled, the managed node is stopped and restarted with updated application.yml parameters, setting oauth.enabled: true. Lavalink outputs an OAuth link and code to stdout, which can be parsed and sent to the owner's DMs. After logging in, the refresh token must be extracted (from stdout), saved, and used to update application.yml. When !llset config oauth is toggled off, the refresh token is reset, requiring the OAuth setup process to be repeated. ### Anything else? _No response_
Dav-Git commented 2025-03-14 15:05:50 +01:00 (Migrated from github.com)

While I can understand the thinking behind this request, I think adding this as a first party feature might not be the best idea.

Using lavalink with OAuth entails a very real risk of account termination. I feel that in this case making the setup a little more involved is a reasonable way to ensure that people enabling this feature know what they are doing.

While I can understand the thinking behind this request, I think adding this as a first party feature might not be the best idea. Using lavalink with OAuth entails a very real risk of account termination. I feel that in this case making the setup a little more involved is a reasonable way to ensure that people enabling this feature know what they are doing.
AndryS0 commented 2025-03-14 16:46:43 +01:00 (Migrated from github.com)

Making something cumbersome is indeed a way to force "think about what are you doing", but for most people facing "video unavailable" issue this is the only way. I think if you add first-time warning written in uppercase telling "DO NOT USE IMPORTANT ACCOUNT" or something similar is enough to both: warn user and make it more convenient.

Making something cumbersome is indeed a way to force "think about what are you doing", but for most people facing "video unavailable" issue this is the only way. I think if you add first-time warning written in uppercase telling "**DO NOT USE IMPORTANT ACCOUNT**" or something similar is enough to both: warn user and make it more convenient.
Owner

Die Ursache liegt außerhalb von Red (Discord, YouTube, Lavalink-Plugins oder andere Abhängigkeiten) und lässt sich hier nicht sinnvoll beheben. Deshalb schließe ich das Issue.


Generated by Claude Code

Die Ursache liegt außerhalb von Red (Discord, YouTube, Lavalink-Plugins oder andere Abhängigkeiten) und lässt sich hier nicht sinnvoll beheben. Deshalb schließe ich das Issue. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#6537
No description provided.