Save the new config after assigning the credentials.