Complete the following steps to install and test your OAuth proxy endpoint:
- Add
auth-proxy.html
andauth-proxy.js
to the same directory on your web server. - Visit the
auth-proxy.html
page on your server. You should see some text and a link. Make a note of the URL, you will use this URL when setting up your Developer Accounts and also the custom branding in CloudSponge.
Now you can set up your branding for each OAuth source, using the URL for auth-proxy.html.
Seems like a small bit of unnecessary work doing both
decodeURIComponent(...)
andencodeURIComponent(...)
. Probably could get away with justreturn obj[$1] = $3;
and
results.push(k + "=" + params[k]);
in
parseParams
andserializeParams
respectively. but perhaps this is extracted from a broader-use library.Also, it would seem more efficient to just directly embed the script on the page and have a single static file rather than 2, not sure I see the reasoning there - unless you want to host the JS file yourselves, and have people link directly to it.