P E N C I L
Login
Configuration mechanism

Main annotation @EnableAuthorizationServer:

creates AuthorizationServerEndpointsConfigurer endpoints (endpoints are authorization endpoints like tokenInfo)

After endpoints is created (post-contructruct)

All Configuration AuthorizationServerConfigurerAdapter is called to override default config

WARN ! For Oauth, must extends OAuth2AuthorizationServerConfiguration this is the default bean if there we don't define our own Adapter.

We can @Autowire AuthorizationServerEndpointsConfigurer to get components (ex: token store)