<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008bPAqSCAWOkta Classic EngineAuthenticationAnswered2023-01-05T16:15:52.000Z2023-01-04T05:34:27.000Z2023-01-05T16:15:52.000Z

BalajiG.01890 (Customer) asked a question.

How to define a custom authenticationResultConverter (OAuth2LoginAuthenticationFilter class)

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.


  • User16594883467582706479 (Customer Support Online Experience)

    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.

    _____________________________________________________________________________

     

     

     

    Expand Post
This question is closed.
Loading
How to define a custom authenticationResultConverter (OAuth2LoginAuthenticationFilter class)