mitro-co / mitro

Repository for all Mitro client & server code
GNU General Public License v3.0
1.65k stars 243 forks source link

browser-ext/ Question #65

Open kristofer opened 10 years ago

kristofer commented 10 years ago

So I managed to get everything built, the core, the api stuff and the browser extensions. (all three and their debug components) - I've got the steps and I'll write it up.

But I am stumped - now what? what do I need to download/copy to a distant browser to get it to use my mitro-core server (it happens to be an EC2 Amazon Linux AMI) ?? Do I need to "key" the browser-ext stuff to a specific hostname etc? (yes, I am implying I'd like to go thru the steps of setting it up as a private service specifically.)

Also, you guys willing to encourage use of the wiki, so some of this doc that we're collecting on HOWTOs can be put there instead of in a) the code or b) closed Issues??

fredericmohr commented 10 years ago

Did you get the mail stuff to work? I'm stuck at that part

kristofer commented 10 years ago

no, actually, I haven't done the mail stuff yet. I'll look to try.

evanj commented 9 years ago

Hey this is great! If you've built a debug extension, it talks to the server on localhost. On chrome you do something like:

  1. Go to https://localhost:8443/
  2. Click "allow" on the security warning
  3. Load the Mitro debug extension, and sign up for a new account.

Hopefully this will actually work!

kristofer commented 9 years ago

nope. I'm still getting 404

HTTP ERROR: 404

Problem accessing /. Reason:

Not Found

Powered by Jetty://

which I remember as being a problem from another thread....

kristofer commented 9 years ago

and I did get the mail stuff to build, even though I know I have not changed the Mailchimp? environment variables.

evanj commented 9 years ago

You can run the server without running the email sender. There is a script that will query the DB and print the verification URL it would try to send:

$ mitro-core/tools/verifydevice.py https://localhost:8443/mitro-core/user/VerifyAccount?code=372cpff0sfvrtrbp9fwgy5o2n8cd7zc44rkbemg5rf4y1h0jdx&user=ej%40example.com

You then open the URL it prints, you'll get a "not found" page because the server is missing the static HTML content, but it will record your device as verified. You can then log in from the local browser.

If you are getting a 404, that means your server is working! Try this link:

https://localhost:8443/mitro-core/api/BuildMetadata

I hope that helps!