request.ts:129 Uncaught (in promise) OAuthError: The requested feature (Interaction Code flow) isn't enabled in this environment. Ensure that you have Okta Identity Engine enabled and the Interaction Code flow enabled for this application and authorization server.
at request.ts:129:15
I don’t really know what it is, because as you can see in the config, I gave it not to use the classic engine and set useInteractionCodeFlow to true
Hi @Pozdrawiam. Is your org using Okta Classic or Okta Identity Engine?
If you are using Okta Classic, you will need to set useInteractionCodeFlow to false and useClassicEngine to true.
If you are using Okta Identity Engine, you will need to make sure your application and authorization server are both set to use the Interaction Code grant type.
Please let me know if you have any further questions or issues.
Ok i set set useInteractionCodeFlow to false and useClassicEngine to true.
now i have a new error, i will add that on 3.x version it was working with the same clientId etc:
Client authentication failed. Either the client or the client credentials are invalid.
You might also want to check out our migration guide when switching between different major versions of the widget
What type of app are you using? Is it a web app with a client secret or a SPA without one? My thought is that we switched to pkce: trueby default in version 4.x, and your app may only work with Implicit flow of auth code flow. Options for responseType are covered in the AuthJS docs