added the .NET authentication functions