Google-oauth is a project mainly written in JavaScript, it's free.
Library to use OAuth with Google APIs
See oauth-2legged-test.js
for how to make a 2-legged OAuth request to a Google Data API.
See oauth-signed-fetch-test.js
for how to verify a signed fetch from Google. See oauth-signed-fetch-test-gadget.xml
for a test gadget you can add to a Google Sites page (see below for how to do that).
New
to create a gadget private to your domainSave
and enter gadget name signed-fetch-text.xml
to save ithttp://feedserver-enterprise.googleusercontent.com/a/<mydomain>/g/PrivateGadgetSpec/signed-fetch-test.xml
by URLSend a Signed Fetch
to send a signed fetch from Google Sites to the test server, which will echo back the email address of the user