You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 even hasRole('ROLE_A') or hasRole('ROLE_B') (see docs).
So.. given a string... how can I validate it's a valid JMS/SecurityExtraBundle expression without actually running the expression?
At the moment of config validation I don't have any security context (nor object context), only the credentials string, so running the expression is impossible.
The text was updated successfully, but these errors were encountered:
also asked on stackoverflow
I want to validate a configuration file. One of the fields is "credentials" which should accept valid
JMS/SecurityExtraBundle
expression, eg.isLocalUser()
orcanPublishNews(object)
orhasRole('ROLE_API')
or evenhasRole('ROLE_A') or hasRole('ROLE_B')
(see docs).So.. given a string... how can I validate it's a valid JMS/SecurityExtraBundle expression without actually running the expression?
At the moment of config validation I don't have any security context (nor object context), only the credentials string, so running the expression is impossible.
The text was updated successfully, but these errors were encountered: