Hello,
I have successfully deployed a simple python flask app that uses Flask-OIDC to authenticate to our orgs okta server. Everything works perfectly when the redirect_uri is http like this:
http://stizzle2.azurewebsites.net/authorization-code/callback
If I try and switch it to https like this:
https://stizzle2.azurewebsites.net/authorization-code/callback
it does not work and I get a 400 response:
Description: The ‘redirect_uri’ parameter must be a Login redirect URI in the client app settings: https://[ommitted].okta.com/admin/app/oidc_client/instance/0oa1kcgem6f9vTsOn0h8#tab-general
I have https in my client_secrets.json and also in my application config in my orgs okta server. I noticed this is the url that is sent to my orgs okta server from my client:
https://[ommitted].okta.com/oauth2/v1/authorize?client_id=[ommitted]&redirect_uri=http%3A%2F%2Fstizzle2.azurewebsites.net%2Fauthorization-code%2Fcallback&scope=openid+profile+email&access_type=offline&response_type=code&state=eyJjc3JmX3Rva2VuIjogIlRrTUpZMXU4NTNDYzl4RVlQa2ZLaE8tRkJPY0pFMFVnIiwgImRlc3RpbmF0aW9uIjogImV5SmhiR2NpT2lKSVV6STFOaUo5LkltaDBkSEE2THk5emRHbDZlbXhsTWk1aGVuVnlaWGRsWW5OcGRHVnpMbTVsZEM5c2IyZHBiaUkub01uRzRfZ0pacVM5UFpSRERCT2NJSzdOdnVJWG16QW5KUEd1UXRoa2F1cyJ9
I noticed “http%3A%2F%2Fstizzle2”. Shouldnt it be sending “https%3A%2F%2Fstizzle2”?
Any ideas on why it works via http, but doesnt work via https?