It varies from place to place. In some states(or cities) you are only required to verbally tell the cop your full name DOB and address so he can call it in. In other places you must produce a photo ID.
“In other places you must produce a photo ID.”
I can see that if you’re driving but not otherwise. You can tell the cop who you are though.