A B
Thanks for a quick reply. I had below question added to the question after you had replied, so you may not have seen this part.
It looks like the link that you added may have that example. I have not used groovy before, but I presume from how the code looks, I can use the code in java almost as is. I presume I will have to add the maven dependency for spring-boot-starter-oauth2-client and com.okta.spring:okta-spring-boot-starter:1.0.0. Is this correct?