system.security

Token-Based Authentication in WCF

痞子三分冷 提交于 2019-12-01 03:47:01
问题 I am creating a website which will contain both ASP.NET pages and a Flash applet. I want to encapsulate my business logic in a WCF service which will be exposed through two endpoints: One accesssible over the Internet through HTTP(S), for use by the Flash client, and one accessible within the data center for use by the application servers. If this does not seem like a good approach, then stop me here; otherwise, I'll move on... The question is how to authenticate requests coming from the

ASP.NET WebPermission Security Exception

戏子无情 提交于 2019-12-01 00:05:06
I usually hate posting these types of questions as normally I find that the best way to really learn is to figure out the answer yourself. However, I need an answer to this question really quickly as I have a client who can't run her business due to this problem. Yesterday my ASP.NET host provider moved my application from a server running .NET 1.1 to one running .NET 1.1 and 2.0. My problem is that when I test the move the main site page (Default.aspx) will not load "Description: The application attempted to perform an operation not allowed by the security policy. To grant this application

PowerShell - Decode System.Security.SecureString to readable password

混江龙づ霸主 提交于 2019-11-27 04:47:57
I want to decode the password from a System.Security.SecureString to a readable password. $password = convertto-securestring "TestPassword" -asplaintext -force $credentials = New-Object System.Net.NetworkCredential("TestUsername", $password, "TestDomain") This code part works fine, I can use the $credentials object. But later in my code I need the password in a readable format. Because a methode needs the password in readable string. So I must decode the password back. How it is possible to decode the password from the $credentials object? Update Not working: $password = convertto-securestring

Generate and Sign Certificate Request using pure .net Framework

本小妞迷上赌 提交于 2019-11-27 04:25:24
I am trying to use pure .net code to create a certificate request and create a certificate from the certificate request against an existing CA certificate I have available (either in the Windows Certificate store or as a separate file). I know that I have the classes X509Certificate and X509Certificate2 available to load certificates and get access to their information, but I don't see any classes or functionality within the System.Security.Cryptography namespace that could be used to create a certificate request or to sign such a certificate request to create a new signed certificate. And