Okta Redirection after Springboot 3 migration

Recently we have upgraded spring boot 2.7 to spring boot 3, and the spring security to 6.1, after the migration, during the initial authorization when the user has not logged in it is redirecting to the okta login widget, instead of our application’s login page. Same for signup as well. Spring security also migrated to 6.1, okta spring boot version 3.0.5