[Texo] Restricting queries to users [message #1694088] |
Thu, 30 April 2015 09:06  |
Eclipse User |
|
|
|
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
|
|
|
Re: [Texo] Restricting queries to users [message #1694164 is a reply to message #1694088] |
Fri, 01 May 2015 05:37  |
Eclipse User |
|
|
|
Hi Cur,
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
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.07668 seconds