Authentication manager now uses the api classes