Hello all,
I am setting up Blockstack authentication on this website:
OpenBazaar.OnTheBlockchain.com
which is a joomla site hosted on my rochen account. I started this post to get help on some bugs but in the process of writing it up I got it all working so I figured I’d post a few problems I encountered and how I solved them.
I’m following the documentation to install the blockstack JS library here:
https://blockstack.github.io/blockstack.js/
For step 2) import * as blockstack from ‘blockstack’
This was my first time to use the import command so it took me a while to figure out I needed to replace ‘blockstack’ with ‘/my/path/to/node_modules/blockstack/dist/blockstack.js’
This is also my first time to do anything with CORS and it seems that there is some issue with joomla. Here’s what I ended up doing that appears to have worked:
Instead of making a file called manifest.json, I named it manifest.json.php and edited blockstack.js file in two places to reflect this change. At the top of the file I added:
The javascript code in the second half of step 5 I wrapped into this:
jQuery( document ).ready(function() {
}
to get it to run.
My next task: signing and storing info in the IPFS (or gaia perhaps).