In most situations, you are not required to provide ID to the police unless you are being detained, arrested, or driving a vehicle. Refusing to identify yourself could lead to further scrutiny.