Search code examples
spring-securitypostman

How to enter username and password in Postman for spring security login page from Postman?


I am using Spring boot security to force authentication. So anytime an endpoint in this web server is called, it forces a username/password to be put in.

I’ve played around with the Authorization options available in Postman, but I can not find any that will perform the steps necessary to get me past the authentication. I always get the HTML response of the login page.

Any help or direction would be appreciated.


Solution

  • Find the type of Authorization which is used in your project and select the same in Authorization tab in Postman and pass the user name and password accordingly.

    Authorization