C# Language C# Authentication handler