I am looking at a Spring boot project which has this code:
public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
oauthServer
.tokenKeyAccess("permitAll()")
.checkTokenAccess("isAuthenticated()");
}
Unfortunately, I am not able to find any resources anywhere (i.e. Google, Spring docs, Spring oauth docs) that explains to me how to actually use AuthorizationServerSecurityConfigurer
. Moreover, I do not understand exactly what tokenKeyAccess("permitAll()")
or checkTokenAccess("isAuthenticated()")
do.
Other than helping me understand what those two functions do, please help me learn where to look for these types of information in the future.