How can we get access token from single page okta app with grant type as Authorization code from Java code?
redirect to {base_url}/authorize with client_id,redirect_uri,etc… then okta login popup comes out.
after user sign-in, okta push user to redirect_uri with auth code
Your question isn’t very clear.
Is the SPA the one handling user authentication and storing the token client side? Or are you trying to get the users tokens to be returned to the Java app so they can instead be stored server side?