How to check the access to a resource for RESTful mechanism in the body of the controller?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to check the access to a resource for RESTful mechanism in the body of the controller?

igilfanov
Grails 2.4.4

How to check the access to a resource for RESTful mechanism in the body of the controller?



--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/90e8190c-0f51-4b46-b4cd-3465eb831a86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to check the access to a resource for RESTful mechanism in the body of the controller?

sbglasius
Perhaps you should look at Spring Security and the Spring Security REST plugin: http://grails.org/plugin/spring-security-rest

I have not used the later, but I'm pretty sure this is what you are looking for.


Best regards / Med venlig hilsen,
Søren Berg Glasius

40 Stevenson Ave, Berkeley, CA 94708
Mobile: (+1)510 984 8362, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.

On 5 January 2015 at 02:15, Ильдар Гильфанов <[hidden email]> wrote:
Grails 2.4.4

How to check the access to a resource for RESTful mechanism in the body of the controller?



--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/90e8190c-0f51-4b46-b4cd-3465eb831a86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAGY%2BWWSJAp7-S8WnpJQO%3DAgE39SvGzpwqwWKmYPPT6Q6LK7RBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to check the access to a resource for RESTful mechanism in the body of the controller?

Owen Rubel
In reply to this post by igilfanov
Well this is done without the controller in the Grails API Toolkit. 

You create an apiObject which is cached  at runtime (so that proxy, apigate, facade and external tooling all have equivalent access and can read), which maps all api callable uri resources and ROLES. 

Then when called, the handlerInterceptors does checking PRIOR to controller and AFTER controller and handles formatting based on client request.

It's all abstracted and automated.

On Monday, January 5, 2015 2:15:44 AM UTC-8, Ильдар Гильфанов wrote:
Grails 2.4.4

How to check the access to a resource for RESTful mechanism in the body of the controller?



--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/df2ab1bc-dfd8-41e4-81ed-39a6acc34c0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.