JMSSecurityExtraBundle
JMSSecurityExtraBundle copied to clipboard
Enhances the Symfony2 Security Component with several new features
[also asked on stackoverflow](http://stackoverflow.com/questions/22571374/how-to-check-if-jms-securityextrabundle-expression-function-exists) I want to validate a configuration file. One of the fields is "credentials" which should accept valid `JMS/SecurityExtraBundle` expression, eg. `isLocalUser()` or `canPublishNews(object)` or `hasRole('ROLE_API')` or...
Hello, Is possible pass a object obtained with paramconvert in @secure annotation ? This is my code: /** - @ParamConverter("construction", class="CliConsCoreBundle:Construction", options={"repository_method" = "findWithJoins"}) - @Secure(roles="ROLE_EXTRANET", options={"construction"}) - @Template */...
Hi. I am using the annotation @Secure in my controller. > @Secure(roles="ROLE_ADMIN") But I am doing an API Rest, i.e I want to send an code http 403, no redirect....
Request is as following: ATM the bundle throws errors when the AopBundle isn't registered. But when using Annotations like @Secure it doesn't throw an error when the DiExtraBundle isn't registered....
Hi, I've got this function in my controller: ``` php
Hi, After upgrade from 1.0.x to 1.2.\* (actually upgrade symfony from 2.0 to 2.1.2) the inheritance of annotation not works any more. And all of my inherited methods become unsecured....
Hi. Is it possible to secure an object by his related entity? Like: ``` php /** * @SecureParam(name="comment.post", permissions="EDIT, DELETE") */ public function editPostByCommentMethod(Comment $comment) { // Checks $comment->getPost() on...
As discussed in symfony/symfony#2347 , all 3th party bundles should document the DIC tags. There is documentation for security.secure_sercice, but security.after_invotation.provider is missing.
When I tried to update my dependencies today, I got this error: ``` Generating autoload files Clearing the cache for the dev environment with debug true [Symfony\Component\DependencyInjection\Exception\ScopeWideningInjectionException] Scope Widening Injection...
I would like to define a custom function implementing some high-level permission check for my app, which would use lower-level functions. For instance, the expression `canUpdate(object)` could then translate to...