July 2018
Intermediate to advanced
336 pages
9h 23m
English
The following OAuth2AuthorizationServerConfigurer will configure all the necessary filters required to run an Authorization Server:
@Configuration@EnableAuthorizationServerpublic class OAuth2AuthorizationServerConfigurer extends AuthorizationServerConfigurerAdapter { @Autowired private AuthenticationManager authenticationManagerBean; @Override public void configure(ClientDetailsServiceConfigurer clients) throws Exception { clients.inMemory().withClient("angularjsapp").secret(" {noop}angularjs123").authorizedGrantTypes("password"). scopes("read,write"); } @Override public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.authenticationManager(authenticationManagerBean ...
Read now
Unlock full access