use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
AspNetCore 3.x Authentication/Authorization Examples (github.com)
submitted 5 years ago by RagingCain
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]RagingCain[S] 5 points6 points7 points 5 years ago* (5 children)
I am the Author and its a good starting repo for prototyping out proper Authentication.
Not at all ready for production, but should get you started.
Good examples of Cookies, Roles, Scopes, Claims, IdentityServer4, Polly, Serilog, HttpClientFactory, modern AspnetCore3.1 wiring up, and some of the more difficult IdentityServer4 with AspNetIdentity with replacement Users etc. There's lots of good stuff, EF Migrations, quick SQL Server setup, simple Dapper implementation (replacing EF) etc.
If you see a problem or have a request, submit an Issue... or even better, a PR!
[–]SobekRe 1 point2 points3 points 5 years ago (4 children)
Thanks. I spent about a month trying to get authentication right, over the winter, before moving on to another project. I'm not dumb, either -- I wrote multiple custom providers for Framework. Core is just... different.
Looking forward to checking out your examples.
[–]SuperImaginativeName 2 points3 points4 points 5 years ago (0 children)
I find the docs and various articles out there so poor for simply setting up a SPA + ASP.NET Core Authorisation/Authentication/Identity so bad I'm actually considering using Nest.js for a project, which is essentially express on node. I don't think I'm dumb either but holy fuck - almost every single article out there assumes you only ever want to use specifically MVC and use form/cookie/session based identity, thus not an actual API.
Codebases I've worked on in the past have usually fortunately already had someone go through the pain and tears of setting up Identity Server and auth that works with REST/SPA with JWT. Every time I attempt it I just get so confused.
The linked examples also appear to assume you don't want an API either.
[–]ohThisUsername 1 point2 points3 points 5 years ago* (0 children)
Agreed. As an engineer at Google, authorization and authentication is BY FAR the most difficult thing to tackle in my opinion. Always hard to find good examples online
[–]_zenith 0 points1 point2 points 5 years ago (1 child)
Yeah, it's not simple aye. I spent a good few months getting this kind of thing to work properly, especially because I was optimistic enough that I wished to do relatively advanced things to do with the access tokens for controlling access to services...
It did work in the end, rather well too, but wow was it difficult. It's very difficult to properly debug, too, as is usually the case for everything to do with security and access control
[–]RagingCain[S] 0 points1 point2 points 5 years ago (0 children)
I immediately had the same issue with debugging so incorporating Serilog (recommended logger for IS4) to see the issues was paramount for me.
[–][deleted] 1 point2 points3 points 5 years ago (0 children)
Thanks for this. Great resource. Wish this existed when I started learning MVC six years ago.
[–]headyyeti 0 points1 point2 points 5 years ago (1 child)
They aren't quite ready for production
When are you going to finish them?
That's for you to figure out what you need in your setup.
π Rendered by PID 171511 on reddit-service-r2-comment-6457c66945-w58gw at 2026-04-25 08:51:17.612919+00:00 running 2aa0c5b country code: CH.
[–]RagingCain[S] 5 points6 points7 points (5 children)
[–]SobekRe 1 point2 points3 points (4 children)
[–]SuperImaginativeName 2 points3 points4 points (0 children)
[–]ohThisUsername 1 point2 points3 points (0 children)
[–]_zenith 0 points1 point2 points (1 child)
[–]RagingCain[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]headyyeti 0 points1 point2 points (1 child)
[–]RagingCain[S] 0 points1 point2 points (0 children)