sample and documentation for server-to-server scenario