
BalajiG.01890 (Customer) asked a question.
I have a Java spring boot based backend application that is expected to support a local authentication(DaoAuthenticationProvider) as well as OKTA (OidcAuthorizationCodeAuthenticationProvider). The Authentication object for local auth contains JWT & some claims. As part of OKTA integration, I configured spring security with "oauth2Login()" to support OKTA authentication which provides a JSESSIONID instead of JWT. The default convertor "createAuthenticationResult" strips off the access & ID tokens. I would like to define a custom Authentication object to coexist with current local authentication flow.
I am using the redirect approach instead of the embedded widget approach as all my clients can't be trusted.
Any help would be appreciated.

Hi, @BalajiG.01890 (Customer)
Thank you for posting on our Community page!
My advice would be to also leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Thank you for reaching out to our Community and have a great day!
_____________________________________________________________________________
Community members help others by clicking Like or Select as Best on responses. Try it today.
_____________________________________________________________________________