After reviewing the possible content types, I believe the text/json should be application/json. After making the change, all original code passes tests. This allows for a bit of refactoring in the login if chain that may be more like what you were thinking.
This also "works" - no real need to change it, but I think it is a bit easier to read?
After reviewing the possible content types, I believe the
text/json
should beapplication/json
. After making the change, all original code passes tests. This allows for a bit of refactoring in the loginif
chain that may be more like what you were thinking.This also "works" - no real need to change it, but I think it is a bit easier to read?