January 2019
Intermediate to advanced
378 pages
11h 35m
English
In many real-time situations, we need to use specific credentials to access the API and not the default one; in such cases, we can enhance our investor service application and secure it with our custom credentials by using few additional out-of-the-box spring modules.
In our investor service, we will have a new class, called PatronAuthConfig.java, which helps the app to enforce the credentials to the URLs that we would like to secure:
@Configuration
@EnableWebSecurity
public class PatronsAuthConfig extends WebSecurityConfigurerAdapter {
.....
As we see in the preceding code block, with a few annotations, we can implement the security. The following code snippet shows an override method implementation as well ...
Read now
Unlock full access