From 9bdeeaaa11e9723ac39de09ba1b12f652c50fb0e Mon Sep 17 00:00:00 2001 From: BrammyS Date: Sun, 15 Feb 2026 16:04:31 +0100 Subject: [PATCH] Allows anonymous access to interaction endpoint The interaction endpoint now allows anonymous access. This resolves an issue where projects requiring authentication by default were unable to properly authenticate with the interaction endpoint. --- .../Controllers/DiscordInteractionController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Color-Chan.Discord/Controllers/DiscordInteractionController.cs b/src/Color-Chan.Discord/Controllers/DiscordInteractionController.cs index 70e43910..0232e0d0 100644 --- a/src/Color-Chan.Discord/Controllers/DiscordInteractionController.cs +++ b/src/Color-Chan.Discord/Controllers/DiscordInteractionController.cs @@ -15,6 +15,7 @@ using Color_Chan.Discord.Parsers.Interfaces; using Color_Chan.Discord.Rest.Models.Interaction; using Color_Chan.Discord.Rest.Results; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; @@ -76,6 +77,7 @@ DiscordTokens discordTokens /// /// An with the json result of the request. /// + [AllowAnonymous] [HttpPost("interaction")] public async Task HandleInteractionRequestAsync() {