Exclude a single page from Global Custom code

Is there an easy way to exclude a single page when you configure global code for the site? In my case, I would like to setup authentication on all pages, except the sign in page.

No, there is no such thing.

What you can do is have the code figure out what page it is on.