First version. Provides authentication operation as a Scala future