The key case here is
Hiibel v. Sixth Judicial District Court of Nevada - Wikipedia, the free encyclopedia
In Hiibel, the court ruled that if an officer asks you for your name, you are obligated to give it to him. This was a major turning point.
Prior to this, if some bull-hick copper brushing donut crumbs off his jacket started yammering at you, demanding ID or whatnot, you had every legal right to give him the finger, and tell him to buzz off. Without probable cause, no officer of the law had any right to interrogate you.
Post Hiibel, we're in a different world. Now, any cop, any clown with a badge, can accost you and
demand ID and whatever he or she likes without cause or justification. Maybe they think you are "hinky," or maybe there's a MWAG call, or whatever, but the harness bull can now roll up on you and start barking orders in your face and if you fail to comply in any respect, you'll likely be Tasered.
We are in a whole new world, folks.
Personally, I liked it a whole lot better when you could tell a cop to "buzz off" and there wasn't a damn thing they could do about it unless they had enough evidence to take to court.