BAuthentication for C#