How to secure REST API with Spring Boot and Spring Security?

后端 未结 4 1603
抹茶落季
抹茶落季 2020-12-02 04:58

I know that securing REST API is widely commented topic but I\'m not able to create a small prototype that meets my criteria (and I need to confirm that these criteria are r

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 05:26

    To validate REST API there are 2 ways

    1 - Basic authentication using default username and password set up in application.properties file

    Basic Authentication

    2 - Authenticate using database (userDetailsService) with the actual username and password

    Advanced Authentication

提交回复
热议问题