Configuring authentication for migration