Custom Authentication okta sso with Spring security

Can we have a customized authentication service from okta such that authentication can be done using okta sso and authorization has to be done by an already existing framework which used spring boot oAuth.