create service controller and prepare authentication