Easy .NET sample.  http://developer.42com.com/documentation/authentication/