willdurand / BazingaHateoasBundle

Integration of the Hateoas library into Symfony.
MIT License
294 stars 59 forks source link

500 ERROR #68

Closed steve-kouna closed 5 years ago

steve-kouna commented 7 years ago

I had this error { "code": 500, "message": "The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL." } after using exclusion = @Hateoas\Exclusion( excludeIf = "expr(is_granted(['ROLE_ADMIN']))" ) Can anyone help me please

ahilles107 commented 6 years ago

This is User code error connected to authorization. Not connected to this bundle. Tip: Read more about symfony auth (error message tells you a lot about possible issue), and see how is_granted works.