July 2018
Intermediate to advanced
268 pages
7h 36m
English
This is the the most important in this Spring Boot project, where we will set up the authorization server configuration. We will use a new annotation, @EnableAuthorizationServer. Our configuration class will extend AuthorizationServerConfigurerAdapter. We will be using the JWT token store and will also showcase a token enhancer, using which you can enhance your JWT token with more claims, if deemed necessary for your application. The most important method in this configuration class is extracted as the following code snippet:
@Overridepublic void configure(final ClientDetailsServiceConfigurer clients) throws Exception { clients.inMemory() .withClient("oAuthClientAppID") .secret(passwordEncoder().encode("secret")) ...Read now
Unlock full access