How to Setup Button

Mark Lizar edited this page Dec 18, 2015 · 6 revisions

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

screen shot 2015-12-09 at 12 35 58 am

2.) Open ClientToCT.html with a text editor and make changes to the title of web client form (optional step)

screen shot 2015-12-09 at 1 07 09 am

3.) Go to orgsetup/CRClient/, open js folder, then open main.js with text editor of your choice

screen shot 2015-12-09 at 1 12 42 am

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";

The formal "reference implementation" of ConsentReceipt host API code (as linked in the main.js file) can be found at: https://still-caverns-2170.herokuapp.com/

UPDATE LINE 3 OF THE main.js FILE WITH THE URL TO YOUR OWN HEROKU INSTANCE OF THE API OR FOR TESTING USE THE REFERENCE IMPLEMENTATION AT: https://still-caverns-2170.herokuapp.com

screen shot 2015-12-09 at 1 18 07 am

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

screen shot 2015-12-09 at 12 26 28 am

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.

<screen shot 2015-12-09 at 12 27 36 am

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.