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.
@sbull This gist is taken from the script that we use in our widget to handle the OAuth redirection and the
decode/encodeURIComponents
are carryovers from it.Including the script inline is definitely an option. I've made it a separate script here to facilitate including it on an existing page or multiple pages in your site. It could also be compiled into a minified script to be hosted on your site.