At some airports close to Mexico, there are border patrol checkpoints, like the one in Texas where Juan Antonio Vargas was arrested. The agent stands next to the TSA ID checker, who gives them your ID. For those airports, you should have your green card to prove to them you are here legally.