Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for digest authentication to Indigo Server #1

Open
ZachBenz opened this issue Feb 7, 2014 · 4 comments
Open

Add support for digest authentication to Indigo Server #1

ZachBenz opened this issue Feb 7, 2014 · 4 comments

Comments

@ZachBenz
Copy link
Owner

ZachBenz commented Feb 7, 2014

No description provided.

@ZachBenz
Copy link
Owner Author

Perhaps embed other Javascript libraries that can help with this using these tips from Pebble dev forums:

You can also use the Node.js library xml2js (https://github.com/Leonidas-from-XIV/node-xml2js) and Browserify (http://browserify.org).

Just install the dependencies and require:

var xml2js = require('xml2js');

Pebble.addEventListener("ready", function (e) {
   var xml = "<root>Hello xml2js!</root>"

   xml2js.parseString(xml, function (err, result) {
      console.log(result.root);
   });
});

And compile:

browserify my-file.js -o pebble-js-app.js

Browserify pulls all of the Node.js dependencies out and stuffs them all into one huge file. I'm also using a makefile so I don't forget to call browserify every time I want to test my pebble app.

@ZachBenz
Copy link
Owner Author

Possible JavaScript solution:

https://www.npmjs.org/package/http-digest-client

@ZachBenz
Copy link
Owner Author

Ok, so this should in theory work:

Install node.js
Install the http-digest-client module using npm
Require() the http-digest-client module in a copy of our JS source
Use browserify to bundle up the node module and our JS source into a single JS file for the watch app:
http://browserify.org

We could probably automate the browserify step by modifying the watch app make file

ZachBenz added a commit that referenced this issue Feb 17, 2014
ZachBenz added a commit that referenced this issue Feb 17, 2014
ZachBenz added a commit that referenced this issue Feb 17, 2014
@srgoldman
Copy link
Collaborator

I have this working. I also have the reflector working and updated the configuration settings page to get the additional values. I also fixed a bug which was causing the port to reset to the default value every time. Do you want to give me access to post my changes here or would you prefer I fork the repository? It looks like you haven't been active on this for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants