Auth

Based primarily on WSAPI