Cleanup of external authentication