© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
40 replies
Swyftey

✅ Discord Authentication Redirection Issue

Hi.

I am new to C#/ASP.NET and just want this Discord OAuth "Challenge" to work properly.

Current Routes:
- "/auth/login"
- "auth/login-redirect"

The issue is: When I click "Authorize" on the Discord page and it's supposed to redirect me to my desired callback URL, it just hits the login route ("/auth/login") again. The redirect URL IS apparently hit, but nothing is executed like it should be.

EDIT: If I set the "RedirectUri" to "RedirectLogin", the code and state query parameters are not passed through.

Any help is greatly appreciated, thanks!
devenv_XH4NSVICEZ.jpg
devenv_HrfuszT92V.jpg
chrome_knRxTyVhfi.jpg
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Massive issue with Authentication
C#CC# / help
3y ago
✅ Weird issue with authentication flow
C#CC# / help
9mo ago
Razor Pages Authentication issues
C#CC# / help
15mo ago
❔ Azure DevOps API Authentication issue (Managed Identity)
C#CC# / help
3y ago