Save {{ articles[0].views | formatCount}} Views Join the DZone community and get the full member experience. Join For Free In this post, I will show how to secure your spring boot based REST API. It has been more of a trend to secure REST APIs to avoid any unnecessary calls to public APIs. We will be using some Spring Boot features for Spring Security, along with JSON WebTokens for authorization. User flow in this case is User logs in. We validate user credentials. A token is sent back to user agent.