The Resource Owner and Authorization sample application shows you how to create a resource owner to authorize access to your custom resources within your spring-boot app. You can use this code directly in your own applications.