Onboard Sucessfactor as WebService Application using OAUTH authentication

Has any one onboarded SuccessFactor as webservice app using OAUTH authentication to pull custom attributes which is not available for SuccessFactor OOTB connector ? I was able to onboard it using BASIC AUTH however since BASIC auth is being decomm, Our client want us to move to OAUTH authentication using SAML Bearer. If you have implemented , can you please share some idea and if possible sample code, that would be great help!