[OSM-dev] osmlab & osm-auth
tom at macwright.org
Mon Mar 25 15:51:06 UTC 2013
So we've been working on the iD editor ( http://ideditor.com/ ) and one of
the big goals is to make a lot of it modular to make more cool OSM hacks
I've been moving some of these parts to osmlab: https://github.com/osmlab
The idea here is pretty simple: it's an organization for osm-related
modules, code, and data. There are simple guidelines -
https://gist.github.com/tmcw/5157262 - which equate to "try to be
approachable and open to contributors". As such, anyone who wants to pull
request / get commit to a project and has cool ideas, just ask. Also, it's
going to be all liberally-licensed projects - BSD, MIT, and PD.
So far it's been small modules, and one that might be pertinent is osm-auth.
The OAuth implementation in iD has already been open & modular as 'ohauth'
but the steps between that no-assumptions implementation and a working
integration were too much.
Thus, osm-auth: https://github.com/osmlab/osm-auth
It has a simple API, focused on logging in, out, and doing api calls.
There's a quick demo of integration: http://osmlab.github.com/osm-auth/
which should be a great starting block for other projects. It's PD code, and
uses ohauth behind the scenes.
This is not to say it's perfect - right now it'll need a little work in the
rails port to make it not conflict with other OAuth applications
https://github.com/openstreetmap/openstreetmap-website/issues/220 thanks to
browser & server caching.
But it's a start, and I think it'll eliminate one major reason why js-only
OSM API applications haven't taken off yet - this encapsulates a big
Report issues if you run into anything
https://github.com/osmlab/osm-auth/issues or even better (so much better)
fork, clone, pull request, and make this thing better.
View this message in context: http://gis.19327.n5.nabble.com/osmlab-osm-auth-tp5754648.html
Sent from the Developer Discussion mailing list archive at Nabble.com.
More information about the dev