Vortac
Interface Design Question
Okay, so from what I can see in the docs, any properties not specified in my model class will be ignored by default, so I can remove the ones I don't need. But then I still have the difference of A having a RefreshToken that may or may not be null (it isn't null on day 15), whereas B only has AccessToken
14 replies
How to use Server Sent Events with HttpClient
No I mean server sent events
https://en.wikipedia.org/wiki/Server-sent_events
6 replies
Web Api C# in Linux Ubuntu
Are you using the Microsoft repos? I’m on Linux mint and was running into a similar error. The Ubuntu repo only has .net 7, but I needed to install from the Ubuntu repo (after removing the Microsoft one and all dot net packages) and then everything worked
4 replies
Dynamically enable/disable a route in ASP.NET 7?
I want to be able to have a toggle for an admin to enable or disable new users signups, and if its disabled then I don't want anyone except admins being able to make a call to the registration endpoint
17 replies
Dynamically enable/disable a route in ASP.NET 7?
I currently have JWT authentication setup, so once a user registers and then logs in they get a bearer token to make API calls to protected endpoints
for example, users have to provide a token to POST to a certain endpoint
but the issue is, they can still access the register endpoint to create an account, if I make that authorized only, then someone who wants to enable public signups can't
17 replies