Become a member
Sign in
Implementing JWT with Spring Boot and Spring Security
1.1K
14
XOOR
Vin001 Gao001
Vin001 Gao001
Sep 9, 2018 · 1 min read

Just curious, why are you using RequestParam in a http post such as /users/signin? Should we use RequestBody instead? Instead of /users/signin?username=<username>&password=<password>, we may want to use the post body:

{
“username”: “admin”,
“password”: “admin”
}

    Vin001 Gao001

    Written by

    Vin001 Gao001

    Write the first response

    Discover Medium

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

    Make Medium yours

    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

    Become a member

    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
    AboutHelpLegal