I am learning about spring-security-oauth. I used the schema given here. I have Authorization server and resource server in same application.
In Authorization server configuration, we tell which jdbc data-source to use, but where do we tell that these specific tables are to be used for all info? Is there any default config which comes with spring library? Can we customize the tables? And, lastly, what are the uses of all these tables?
I want to know how these tables are getting used in our configuration.
I have gone through some of these examples:
https://medium.com/@supunbhagya/spring-oauth2-authorization-server-jwt-jpa-data-model-1e458dcdac04
My Authorisation server config looks like this:
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter {
@Autowired
Environment env;
@Autowired
DataSource dataSource;
@Autowired
@Qualifier("userDetailsDBService")
UserDetailsService userDetailsService;
@Autowired
private AppRoleRepository appRoleRepository;
@Autowired
@Qualifier("authenticationManagerBean")
private AuthenticationManager authenticationManager;
@Override
public void configure(AuthorizationServerSecurityConfigurer security) throws Exception {
security.tokenKeyAccess("permitAll()")
.checkTokenAccess("isAuthenticated()");
}
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients
//.inMemory()
.jdbc(dataSource);
}
....