Thread 105950896 - /g/ [Archived: 193 hours ago]

Anonymous
7/18/2025, 11:38:45 PM No.105950896
asp.net.logo
asp.net.logo
md5: 9986aca73bf616fe1f14a3379fba844f🔍
>[Authorize]
>literally nothing happens
is this thing broken or something?
Replies: >>105951287 >>105951458 >>105951551 >>105951725 >>105955249
Anonymous
7/19/2025, 12:23:34 AM No.105951287
>>105950896 (OP)
>microshit
>asking if it's broken
No, no way it is. How could it be? You ever seen any vulnerabilities in Microsoft Corporation 's products?
<https://www.microsoft.com/en-us/security/blog/threat-intelligence/vulnerabilities-and-exploits/
<https://msrc.microsoft.com/update-guide/vulnerability
<https://www.cvedetails.com/vendor/26/Microsoft.html
That's fake news created by Stallman and his communists!
Anonymous
7/19/2025, 12:47:07 AM No.105951458
>>105950896 (OP)
you have to configure it first, it's annoying but if you goof up the configuration it just allows anonymous requests (terrible design). in any case rtfm
Anonymous
7/19/2025, 12:47:38 AM No.105951463
Skill issue, this ain't shitty laravel framework bro.
Anonymous
7/19/2025, 12:49:23 AM No.105951482
...did you do anything beyond just adding that word on top of your controller?
Replies: >>105954147
Anonymous
7/19/2025, 12:57:18 AM No.105951551
>>105950896 (OP)
> Pajeet-tier dogshit
Anonymous
7/19/2025, 1:15:47 AM No.105951647
hqdefault[1]
hqdefault[1]
md5: c13188d8acfeabc533e972bf1c255c04🔍
>[Enhance]
>mind blown
Anonymous
7/19/2025, 1:27:22 AM No.105951725
>>105950896 (OP)
>attribute is all you need for authorization
you're a low iq nigger and should stay away from computers
Replies: >>105951899
Anonymous
7/19/2025, 1:53:03 AM No.105951899
>>105951725
He probably used laraveljeet
Anonymous
7/19/2025, 3:04:59 AM No.105952357
I think ASP.Net Core is comfy for APIs. It's just the right level of complexity and has a solid set of features.
Replies: >>105952441
Anonymous
7/19/2025, 3:14:27 AM No.105952441
>>105952357
I like when it's strict by nature because it uses compiled language (C#/VB/F#) but not bloated like Sprinboot or full of hacks and shitty convention like scriptslop framework such as larajeet or django (FUCK LARAJEET, seriously what a piece of bloated crap, undebuggable, jeeted pile of crap)
Replies: >>105952508
Anonymous
7/19/2025, 3:24:09 AM No.105952508
>>105952441
it's almost a guilty pleasure for me now
>company needs a new API for whatever
>open VS
>new api project
>copy openid config from other project
>scaffold a dbcontext for whatever database we're usign for this
>DI my dbcontext and DAL class
>LINQ up all the endpoints we need
>copy the devops yaml file and change the webapp name
>commit and push
>go get another coffee
>come back to a deployed webapp
>give QA the swagger URL for testing
Replies: >>105952518
Anonymous
7/19/2025, 3:25:35 AM No.105952518
>>105952508
I like EF so much I've used it outside ASP. it's just THAT good.
Replies: >>105952573
Anonymous
7/19/2025, 3:33:40 AM No.105952573
>>105952518
No reason not to use it in any C# codebase desu. If you have performance issues you should be creating view or stored procedures anyway.
[spoiler]I recently had to refactor some logic because it generated a contains with 60k guids and EF wasn't having it[/spoiler]
Replies: >>105952981
Anonymous
7/19/2025, 4:46:46 AM No.105952981
>>105952573
I don't like stored procedure, ew
Replies: >>105953719
Anonymous
7/19/2025, 6:49:53 AM No.105953719
>>105952981
That's fine you ask the DBA to write it, then you just call it with EF and map it to an entity.
Anonymous
7/19/2025, 8:17:25 AM No.105954147
1752469162266662
1752469162266662
md5: dd42a2b7e9b90f22dc6cf1cf6e7ecfee🔍
>>105951482
allow-by-default authorization framework just came to me dumb as fuck
anyway how do I configure this because there seem to be 10 different ways to do it
Replies: >>105954178
Anonymous
7/19/2025, 8:23:55 AM No.105954178
>>105954147
in your startup.cs just add like

services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApp(configuration)
//or
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApi(configuration)


or similar depending on your identity provider. You do have an identity provider right? If not you can also just do basic auth with cookies. The wizard can set it up for you on project creation.
Replies: >>105955291
Anonymous
7/19/2025, 11:54:28 AM No.105955249
>>105950896 (OP)
works on my machine
Anonymous
7/19/2025, 12:02:38 PM No.105955291
>>105954178
>You do have an identity provider right?
It's dumb as fuck too that compiler/framework knows there's [Authorize] attribute on your code but doesn't do shit when it silently breaks because there's a problem with configuration. The IDE gives warnings and information for the most trivial shit you can imagine yet nothing in this case.
Replies: >>105955306
Anonymous
7/19/2025, 12:04:55 PM No.105955306
>>105955291
just lets you image what else there is that silently breaks. Can you really be sure of doing everthing properly with this behemoth of a software environment?