... exception, creates the 401 and sets it. Then, the ErrorListener that logs is never called.
Why aren't things like 400 exceptions logged? I'm not sure about that. I would expect those to also be logged. My guess is that API Platform is somehow treating those differently, but I can't see where exactly.
Cheers!
... in terminal appears Uncaught AccessDeniedException. So in my DI container it would be tons of error messages about it. API platform catches 401 but does not catch 403 exception. Can you help me with that?Expected behaviour is that AccessDeniedException would not be shown in terminal by default during the tests running
... //github.com/symfony/symfony/blob/5.x/src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php#L127-L136
> Cause API platform does not catches an AccessDeniedException by default
Does it not? I thought it did. What do you see when you get an access denied page? The big HTML page?
Cheers!
Hey Xav,
Thank you for the feedback! :)
Yeah, we're going to release it shortly... it should definitely happen this year, most probably after API Platform v3 tutorial. My wild guess is that it may be start releasing ...
... that repeats itself, so I wonder if it's possible to get errors directly from the api platform so that the errors are separate for each field or something like that
Hey juantreses
If you still can decide whether or not to use JWT you may want to watch this chapter first so you can really tell if you need them or not. https://symfonycasts.com/screencast/api-platform-security ...
Hey!
I followed this tutorial and made remember me working fine. Then I've switched to json_login (I want to make a Vue.js app) by following your Api Platform Security tutorial, but I can't make it work with remember ...
Hi Ryan, I am using API Platform with LexikJWTAuthenticationBundle and Symfony 4.4.
All works but I have no idea how to add some extra data to JWT.
I have configured that bundle to return user email as ...
... class - the most pure solution for whoever is implementing your bundle - https://symfonycasts.com/screencast/api-platform-security/service-decoration#service-declaration-amp-decoration
Cheers!
... haven't been able to figure it out. I can't change the structure of the DB as it was created before using the API Platform.
... 19 & 20 - https://symfonycasts.com/screencast/api-platform-security/plain-password - to where we start encoding the plain-text password automatically. That's the only way to rule out some sort of human error, or database ...
... always our goal - thanks :)
> Can't blame anyone since it's open source project and it's our responsibility to contribute
Yep... this is a real challenge for open source. We try to give back (in this case to API Platform ...
... /getTest_ApiPlatform_ClientService.php on line 19
`
Actually i don't know what is wrong with my configs. I have Api platform 2.5 and symfony 4.3
Regards,
Alexander
... methods, in this tutorial it wasn't needed because Api Platform takes care of all of it for us
If you want to learn more about working with repositories, I recommend you to watch this tutorial: https://symfonycasts.com ...
... that dispatch "messages" into Messenger (this is also something that API Platform has a bit about in their docs).
Cheers!
... to improve DX it would be good if your Symfony 3.4 project uses Symfony Flex, otherwise you would need to create configs and register bundles yourself. I see API platform should work on Symfony 3.4, though probably not the latest version, so if you want to go this way - I think you can try.
Cheers!
... have one repository on github (https://github.com/petre-symfony/Rest-Symfony-With-Api-Platform-Bundle-Tested-With-Behat.git) where I have all the code. Here is one ancient course reworked on novel grounds. The last commit explained where the problem arise. We can download the code from there.
Thank you.
... phpspec tutorial in about a week (not too big), then I'm not entirely sure - we'll be making plans in about a week. But we're targeting API Platform in 2019, Messenger, probably more JavaScript stuff, design patterns stuff, maybe this idea you had, and more. We're going to go as fast as we can :).
Cheers!
|
{ |
|
// ... lines 2 - 5
|
|
"require": { |
|
"php": ">=8.1", |
|
"ext-ctype": "*", |
|
"ext-iconv": "*", |
|
"api-platform/core": "^3.0", |
|
"doctrine/annotations": "^1.0", |
|
"doctrine/doctrine-bundle": "^2.8", |
|
"doctrine/doctrine-migrations-bundle": "^3.2", |
|
"doctrine/orm": "^2.14", |
|
"nelmio/cors-bundle": "^2.2", |
|
"phpdocumentor/reflection-docblock": "^5.3", |
|
"phpstan/phpdoc-parser": "^1.15", |
|
"symfony/asset": "6.2.*", |
|
"symfony/console": "6.2.*", |
|
"symfony/dotenv": "6.2.*", |
|
"symfony/expression-language": "6.2.*", |
|
"symfony/flex": "^2", |
|
"symfony/framework-bundle": "6.2.*", |
|
"symfony/property-access": "6.2.*", |
|
"symfony/property-info": "6.2.*", |
|
"symfony/runtime": "6.2.*", |
|
"symfony/security-bundle": "6.2.*", |
|
"symfony/serializer": "6.2.*", |
|
"symfony/twig-bundle": "6.2.*", |
|
"symfony/validator": "6.2.*", |
|
"symfony/yaml": "6.2.*" |
|
}, |
|
// ... lines 33 - 83
|
|
} |
See Code Block in Script
... do it manually in your app code. For API Platform, that would mean doing it in the "data provider". For example, you could decorate the "Doctrine" data provider - https://symfonycasts.com/screencast/api-platform-extending ...
1026
API Platform
Filter Results