.net-security Questions

2

Solved

I have he following method inside my action method:- repository.InsertOrUpdateRack(rj.Rack, User.Identity.Name, assetid); But the user name generated from User.Identity.Name will prefix the user...
Nik asked 28/10, 2013 at 16:36

0

My application is an ASP.NET Core 1.0 Web API. I would like to test my controllers with the TestServer object. I have a controller class decorated with the Authorize attribute. How i get my test...

4

.Net security noob here... What is the simplest way to prevent someone else from loading my assembly? Background: Although I am really looking for just 'good enough' protection (with enough time/...
Melanosis asked 8/1, 2017 at 23:44

2

Solved

Recently, our .Net client libaray is upgrading to compile against Net 4.0. After change the target framework to 4.0, the application has some compilation error. In AssemblyInfo.cs: [assembly: Sec...
Indulge asked 24/7, 2012 at 6:40

7

Solved

I want to allow calling the method only from the particular methods. Take a look at the code below. private static void TargetMethod() { } private static void ForbiddenMethod() { TargetMet...
Kelleykelli asked 15/1, 2010 at 12:18
1

© 2022 - 2024 — McMap. All rights reserved.