Okta register api in java

Hi All,

I am using okta api to register user. Basically my flow is, after user is created, an email will trigger with activationURL. Once user clicks on activation link, it prompts for username and password in okta portal. So here instead of giving credentials in okta portal, I want to give in my webapp. So in my react code, I tried with idx.register(). But I got below exception.

Only confidential clients can use the activation token flow.

So instead of implementing this scenario in react, I would like to try in my Java code. But I don’t find any api for this in Java. My requirement is once user enter the credentials in UI, it should be registered in my app instead of going to okta portal and again redirecting back to my app.

Requesting you to share your thoughts on this.