Can't use https for my redirect uri

I am building a REST API and I need to put it behind okta. I don’t have access to production okta we have on our company but the admins set up the redirect uri with https.

In my spring boot application the yaml file is:

security:
oauth2:
client:
clientId: clientId
clientSecret: clientSecret
accessTokenUri: https://org-subdomain.okta.com/oauth2/default/v1/token
userAuthorizationUri: https://org-subdomain.okta.com/oauth2/default/v1/authorize
clientAuthenticationScheme: form
scope: openid profile email
pre-established-redirect-uri: https://app-domain/login
resource:
userInfoUri: https:/org-subdomain.okta.com/oauth2/default/v1/userinfo

and my configuration is:
@EnableOAuth2Sso
@Configuration
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {

@Override
protected void configure(HttpSecurity http) throws Exception {
	http.authorizeRequests()
			.antMatchers("/", "/login*").permitAll()
			.anyRequest().authenticated()
			.and()
			.formLogin();
}

Whenever I hit an endpoint of my API where I need to be authenticated I see the request:
Request URL:https://org-subdomain/oauth2/default/v1/authorize?client_id=clientId&redirect_uri=http://app-domain/login&response_type=code&scope=openid%20profile%20email&state=6umudy

and the message: The ‘redirect_uri’ parameter must be an absolute URI that is whitelisted in the client app settings.

So despite I setup https, it tries to redirect to http.

Any ideas on how I can fix this?