Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[Texo] Restricting queries to users
https://www.eclipse.org/forums/index.php/mv/msg/1066186/1694088/#msg_1694088
1) login users somehow (present them first a login dialogue,
and thereafter grant access to JSONTexo)
2) and then restrict the allowed queries per user?
The Texo wiki hints to a facility to restrict queries.
Thanks.
-- Cur
]]>Mr Cur2015-04-30T13:06:27-00:00Re: [Texo] Restricting queries to users
https://www.eclipse.org/forums/index.php/mv/msg/1066186/1694164/#msg_1694164
This is not covered in Texo because authentication and authorization are often very specific functionalities which are
difficult to generalize.
But you can easily extend Texo to add this functionality yourselve. Texo has a simple component concept which allows you
to replace Texo internals with your own class. The best approach is to extend the Texo class you want to replace and add
your own custom logic: https://wiki.eclipse.org/Texo/Components
Classes you could extend are for example:
JSONRestWebServiceHandler
JSONRestWebServiceServlet (and set your own servlet mapping)
Or create your own servlet which manages authentication which calls the webservice handler.
To restrict allowed queries you can extend the EntityManagerObjectStore and add your own custom code when it is called
to query for data. Then set your class as the component to be used by Texo in place of the EntityManagerObjectStore.
gr. Martin
On 30-04-15 15:06, Mr Cur wrote:
> In Texo, is it possible to:
> 1) login users somehow (present them first a login dialogue,
> and thereafter grant access to JSONTexo)
> 2) and then restrict the allowed queries per user?
>
> The Texo wiki hints to a facility to restrict queries.
>
> Thanks.
>
> -- Cur
>
>