[OSM-dev] API suggestion - "authorise"?

Martijn van Oosterhout kleptog at gmail.com
Sat Nov 17 09:52:52 GMT 2007


n Nov 17, 2007 10:05 AM, Nick Whitelegg <nick at hogweed.org> wrote:
> Doesn't look like you can do this at the moment but what would be good to have
> in the API is an "authorise" call which will do nothing but take a username
> and password and return either 200 OK if OK, or 401 if invalid. This would
> make it easier for client sites which use the API to perform modifications to
> add an OSM login, as the user could get instant feedback as to whether the
> login was incorrect, as opposed to waiting until they actually edit
> something.

I wonder if you could find an API call which you know will fail, but
check authorisation first. Say, try to upload a update for node zero.
If you get an auth error, the password is wrong. If you get a
different error, the password is correct.

A hack I know...

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/




More information about the dev mailing list