Open koemeet opened 7 years ago
Does it help to define zones so that the OAuth routes are not covered by any zone?
@xabbuh My oauth routes live inside /api
, for now I solved it by removing the array normalization. But I am sure that more people stumble upon this issue.
When using the
FOSOAuthServerBundle
in combination withFOSRest
you end up with an issue that the array normalizer converts an token request from underscored to camelcase. Because of this the token request will fail, since the OAuth2 server needs the parameters to be underscored.To fix this I tried doing this:
Is there currently a good way to solve this? It should be possible to disable the request manipulation that fos rest does for certain requests.