Testing spring security with Postman

后端 未结 4 2258
渐次进展
渐次进展 2021-02-13 02:06

I have configured a form-base authentication using Spring security. It works fine when I log in using the login form in my web application.

It also works with cURL:

4条回答
  •  梦如初夏
    2021-02-13 02:34

    You can achieve authentication/authorization in postman through various authorization types given in postman dropdown under Authorization tab.

    Below is the step to use Basic Auth which by default spring security provides.

    In spring security you can customize your credentials in application.properties file as given below.

    spring.security.user.name=yer spring.security.user.password=galem

提交回复
热议问题