Redirect Uri is taking http over https

We are using okta authentication for our application. We have specified the redirect uri in python application and also okta console as https. but when it is appending all the details like client-id, client-secret , redirect uri to domain application it is appending as http and we are getting 400 error saying redirect uri not matc with the okta console

So the issue is that the redirect_uri included in the /authorize request by your application uses http instead of https? How are you handling the /authorize redirect and configuration of said redirect_uri?