This is an example on how to use either spring-session or spring-security-oauth2 for securing a resource
Thanks to Roman Shcherbakov for suggestion at https://stackoverflow.com/questions/48328062/how-to-protect-the-same-resource-using-both-spring-session-and-spring-security-o/48384859#48384859