Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to Setup Button
Note: (The key.jwks file can be generated at https://mkjwk.org/ - it's just a plain rsa key, copy the results of the "keypair" box into a file. N)
1.) Go to https://github.com/OpenConsent/ConsentReceipt and Download Zip to get a copy of CRClient foder
2.) Open ClientToCT.html with a text editor and make changes to the title of web client form (optional step)
3.) Go to orgsetup/CRClient/, open js folder, then open main.js with text editor of your choice
4.) At the top of main.js file change the HOST point to the Consent Server API service location provided (this is subject to change)
In the client app demo is edited to point to the currently running service on Heroku:
For the example we used this: HOST = "https://boiling-caverns-7193.herokuapp.com/api";
5.) Upload the entire folder CRClient to the home or root directory of your web server maintained by a hosting company such as GoDaddy. If your website is wwww.MYWEBSITE.com , you’ll be able to view the consent receipt request form at www.MYWEBSITE.com/CRClient/ClientToCR.html, if CRClient folder is uploaded at the root of your website.
As an example, this demo Client app has been uploded onto Storewell.us website’s GitHub repo (example 3rd party client) and is linked to the domain name via GoDaddy.
6.) In the example demo, browse to Storewell.us/CRClient/ClientToCR.html
7.) In order to send a consent and get the receipt back, fill in the form and click the ‘Create Receipt’ button at the bottom.
On the right hand side of the form, the returned receipt content will be displayed. Click ‘Download Receipt’ to receive a file with a unique alphanumeric string as your receipt.