I’ve created an application: OIDC - OpenID Connect → Web Application with authorization code as an grant type. I integrated this with my Spring Boot backend microservice.
The point is I see that during authorization code flow (redirect to okta and go back after succesfull authentication) pkce seems to be enabled.
For confidential clients, the use of PKCE [RFC7636] is RECOMMENDED
Is there a reason for wanting to disable it? Is it causing a problem with a load balancer (or a similar appliance)?
If you are just trying to learn more about OAuth and Spring Security, you can also use Spring Security’s OAuth support directly (the Okta Spring Boot starter just sits on top of this and adds a little sugar*)
If you want to go that path, you can take a look at Spring’s OAuth Guide (it contains a few Okta examples too).