Plug authentication service to API