News for hackers. Stuff that matters.
Re:Why Tracebit is written in C# by lordofgibbons on Friday January 31, 2025 @10:27PM (#42895366)
Thanks for the response. I mean from a productivity point of view when building real-world applications.

For example, in Go, the development productivity is great, but I'm not so sure about feature development velocity. There are a ton of HTTP libraries, but it's a barren wasteland when it comes to Auth solutions and you have to rely on a separate service which unnecessarily complicates the infrastructure. Need to quickly put together an application that supports enterprise OAuth? tough luck

Re:Why Tracebit is written in C# by caspper69 on Friday January 31, 2025 @10:42PM (#42895444)
Asp.Net supports both internal & external auth(n|z) providers.

I have to admit that I haven't done much with the interweb side. Truth be told, the few times I've used Asp.Net, I used KeyCloak as the authentication provider, and that's Java-based, lol.

That being said (and damn you for making me link to ms docs yet another time today), there is a built in provider, but my recollection is it did not support OAuth2 or JWT: https://learn.microsoft.com/en-us/aspnet/core/security/?view...

It may not suit your needs, but maybe that high-level doc can help you drill down quickly and not waste too much time on it.

I will say that I do always find it amazing how large sites can be sucessfully operated without too much fuss on the platform. Stack Overflow was notorious for being a very high traffic site that ran on a small cluster of machines and was all done in Asp.Net (might have been the old Windows framework, however).

I would like to add that I've been working with Entity Framework (EFCore) for the past year, and I've found it to provide velocity on that front. Never was a big ORM fan, but I can definitely see the use cases now.

Re:Why Tracebit is written in C# by cyberax on Friday January 31, 2025 @11:40PM (#42895693)
> Need to quickly put together an application that supports enterprise OAuth?

????

That's super easy. I added support for Clerk's OAuth to our app in literally 10 minutes. It was as easy as:

> token, err := jwt.ParseString(sessionToken, jwt.WithKeySet(r.keySet), jwt.WithAudience(r.audience))

JWT is from `github.com/lestrrat-go/jwx`

I'm not sure about SAML, but at this point it's probably best to not even touch it.

Re:Why Tracebit is written in C# by lordofgibbons on Saturday February 01, 2025 @12:55AM (#42896052)
I'm complaining about having to use external services to do auth, and your solution is to use external services lol
Re:Why Tracebit is written in C# by cyberax on Saturday February 01, 2025 @12:55PM (#42900389)
You can do Google/Microsoft/Apple OAuth is pretty much the same amount of code. E.g.: https://github.com/pgrok/pgrok/blob/dda32d9accfb46ab41f59cae...

What else do you need?