auth.cs

Does the authorization stuff here.