[OSM-dev] Where is the code that checks if the user is logged in before serving the request?

Alexandru icidrop at yahoo.com
Fri Nov 18 12:34:47 GMT 2011


You mean there is no way to just tell the controller to ask for authorization on a specific request  pattern, say like: /personal/* ; (because that's how i was thinking it would be.)



________________________________
 From: Jonathan Bennett <openstreetmap at jonno.cix.co.uk>
To: dev at openstreetmap.org 
Sent: Friday, November 18, 2011 1:32 PM
Subject: Re: [OSM-dev] Where is the code that checks if the user is logged in before serving the request?
 
On 18/11/2011 10:42, Alexandru wrote:
> That's very helpful! Thanks.
> I looked over the code but couldn't find easily what i was looking for
> (i'm a java dev)...
> can you give me a hint on how to make any request filtered by
> authorization? pls
> 


As you've been told before, the OSM server stack is built using Ruby on Rails. To understand how the server works, you need to understand how Rails works -- you can't just dip into the code without knowing how the framework it's built with works. There's no real shortcut here.

There are plenty of resources available:
http://rubyonrails.org/documentation


_______________________________________________
dev mailing list
dev at openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20111118/773923f2/attachment.html>


More information about the dev mailing list