This is not true in the United States. Police have no right to your identity unless there is a reasonable suspicion you've committed a crime. You certainly can't demand a passport, it's absolutely foolish to carry around your passport regardless of the country.