How can I user api authentication using bearer token and user name of authorization in Spring boot with Auth 0

I have a requirement to authenticate using a token and authorization using userName

There are two Quickstarts for Java Spring MVC and Spring Security, did you have a look at the them already?

General info on API: