I have a private website used as an intranet site for workers from around the world who have accounts with my Google Apps domain (example.com). They currently use OpenId to log in to various collaborative tools, so I want to use this for my site too.
I want to protect the static content on my private members-only website with OpenID login (rather than, say, basic HTTP auth), which Google Apps provides.
I know that anyone can be an OpenID provider, so I want to restrict it to one domain name, specifically my Google Apps domain.
At the moment my static content is served via Nginx. I would prefer a simple Nginx module that would handle this with only a bit of setup.
If I have to get my hands dirty, I don't mind setting up a basic Python (say Django) or Java server to handle this, but I don't want to use PHP or Ruby.