This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace App_Code | |
{ | |
using System; | |
using System.IdentityModel.Tokens; | |
using Microsoft.IdentityModel.Claims; | |
using Microsoft.IdentityModel.Protocols.WSIdentity; | |
using Microsoft.IdentityModel.Tokens; | |
public class CustomUserNameSecurityTokenHandler : UserNameSecurityTokenHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Security.Cryptography.X509Certificates; | |
using Org.BouncyCastle.Asn1; | |
using Org.BouncyCastle.Asn1.X509; | |
using Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.Crypto.Generators; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
rem This is the part for .bat file. | |
rem It will be ignored by C# compiler (csc) | |
echo off | |
rem Find csc compiler location | |
rem (if you know how to make it correctly - please notice me at artem.votincev@gmail.com) | |
set WinDirNet=%WinDir%\Microsoft.NET\Framework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
rem This is the part for .bat file. | |
rem It will be ignored by C# compiler (csc) | |
rem Find csc compiler location | |
rem (if you know how to make it correctly - please let me know at artem.votincev@gmail.com) | |
IF EXIST "%WinDir%\Microsoft.NET\Framework\v2.0.50727\csc.exe" set csc="%WinDir%\Microsoft.NET\Framework\v2.0.50727\csc.exe" | |
IF EXIST "%WinDir%\Microsoft.NET\Framework\v3.5\csc.exe" set csc="%WinDir%\Microsoft.NET\Framework\v3.5\csc.exe" | |
IF EXIST "%WinDir%\Microsoft.NET\Framework\v4.0.30319\csc.exe" set csc="%WinDir%\Microsoft.NET\Framework\v4.0.30319\csc.exe" |