trypost/app/Http/Controllers/Auth
Paulo Castellano c2dd4515b2 feat(channels): add Discord as a social channel
Connect a Discord server via OAuth (bot authorization) and schedule/publish
messages to its channels, with mentions and rich embeds.

- Connect: custom Socialite Discord provider (bot scope) maps the authorized
  guild to a SocialAccount; throws if no server was authorized.
- Publish: DiscordPublisher posts via the global bot token, validates the chosen
  channel belongs to the connected guild (anti cross-guild), optimizes media,
  builds allowed_mentions only from explicit mention chips (no accidental pings),
  and renders rich embeds.
- Compose: per-post channel picker (live lookup), mention autocomplete and an
  embed editor, gated by a required-channel compliance rule; Discord post preview.
- Enum/config/content-type wiring, ConnectionVerifier health check, throttled
  lookup endpoints, i18n (en/es/pt-BR), and tests.

Operators must create a Discord application and set DISCORD_CLIENT_ID,
DISCORD_CLIENT_SECRET, DISCORD_BOT_TOKEN and DISCORD_CLIENT_REDIRECT.
2026-06-16 14:44:00 -03:00
..
Concerns feat: capture signup UTMs/IP and add GitHub OAuth login 2026-05-04 18:42:25 -03:00
AcceptInviteController.php feat: @mentions in comments, AI Action layer + MCP tools, settings tabs 2026-05-01 20:59:03 -03:00
AuthenticatedSessionController.php fix: security audit - IDOR, open redirect, authorization, session fixes 2026-03-30 14:58:25 -03:00
BlueskyController.php Centralize AT Protocol NSIDs in BlueskyLexicon 2026-06-13 20:18:39 -03:00
DiscordController.php feat(channels): add Discord as a social channel 2026-06-16 14:44:00 -03:00
EmailVerificationNotificationController.php refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
EmailVerificationPromptController.php refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
FacebookController.php feat: localize OAuth popup callback messages across 12 controllers 2026-05-07 14:03:52 -03:00
GitHubController.php revert: keep one OAuth callback URL per provider 2026-05-04 19:42:13 -03:00
GoogleController.php revert: keep one OAuth callback URL per provider 2026-05-04 19:42:13 -03:00
InstagramController.php feat: localize OAuth popup callback messages across 12 controllers 2026-05-07 14:03:52 -03:00
InstagramFacebookController.php feat: localize OAuth popup callback messages across 12 controllers 2026-05-07 14:03:52 -03:00
LinkedInController.php refactor(linkedin): drive OAuth scopes from LINKEDIN_SCOPES env via config 2026-06-10 15:04:57 -03:00
LinkedInPageController.php refactor(linkedin): drive OAuth scopes from LINKEDIN_SCOPES env via config 2026-06-10 15:04:57 -03:00
MastodonController.php feat: localize OAuth popup callback messages across 12 controllers 2026-05-07 14:03:52 -03:00
NewPasswordController.php feat: improvements on invites 2026-01-20 16:53:54 -03:00
PasswordResetLinkController.php feat: improvements on invites 2026-01-20 16:53:54 -03:00
PinterestController.php refactor: remove debug logging from social OAuth controllers 2026-05-14 11:23:40 -03:00
RegisteredUserController.php feat(auth): self-hosted registration gate + admin seeder (closes #46) 2026-05-19 11:45:16 -03:00
SignupSuccessController.php chore: tracking, gtm and more 2026-03-30 21:32:43 -03:00
SocialController.php feat: localize OAuth popup callback messages across 12 controllers 2026-05-07 14:03:52 -03:00
TelegramController.php Group Telegram service classes under Services/Social/Telegram 2026-06-14 13:32:03 -03:00
ThreadsController.php feat: localize OAuth popup callback messages across 12 controllers 2026-05-07 14:03:52 -03:00
TikTokController.php refactor: remove debug logging from social OAuth controllers 2026-05-14 11:23:40 -03:00
VerifyEmailController.php refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
XController.php feat: redesign accounts page with multi-account support 2026-04-14 19:48:35 -03:00
YouTubeController.php feat: localize OAuth popup callback messages across 12 controllers 2026-05-07 14:03:52 -03:00