Implementing user authentication with Opauth