Why will Ecommerce only working with "OAUTH_ENFORCE_SECURE": false?

I got Ecommerce to work on my server, but after a lot of fussing with settings. Where I am at now is that the dashboard loads at 18130/dashboard/, but only if I set “OAUTH_ENFORCE_SECURE”: false in lms.env.json. I have https working on the site, but when I set OAUTH_ENFORCE_SECURE to true I get an error message when I try to go to 18130/dashboard/ “access_denied A secure connection is required.” Even though https seems to be working in the browser.

I am running a hawthorn install.

Why will Ecommerce only work with “OAUTH_ENFORCE_SECURE”: false?
Here is my lms.env.json file.

{
    "ACE_CHANNEL_DEFAULT_EMAIL": "django_email", 
    "ACE_CHANNEL_SAILTHRU_DEBUG": true, 
    "ACE_CHANNEL_SAILTHRU_TEMPLATE_NAME": null, 
    "ACE_CHANNEL_TRANSACTIONAL_EMAIL": "django_email", 
    "ACE_ENABLED_CHANNELS": [
        "django_email"
    ], 
    "ACE_ENABLED_POLICIES": [
        "bulk_email_optout"
    ], 
    "ACE_ROUTING_KEY": "edx.lms.core.default", 
    "ACTIVATION_EMAIL_SUPPORT_LINK": "", 
    "AFFILIATE_COOKIE_NAME": "dev_affiliate_id", 
    "ALTERNATE_WORKER_QUEUES": "cms", 
    "ANALYTICS_API_URL": "dev.cooledu.com:18100", 
    "ANALYTICS_DASHBOARD_NAME": "Your Platform Name Here Insights", 
    "ANALYTICS_DASHBOARD_URL": "dev.cooledu.com:18110/courses", 
    "API_ACCESS_FROM_EMAIL": "info@cooledu.com", 
    "API_ACCESS_MANAGER_EMAIL": "info@cooledu.com", 
    "API_DOCUMENTATION_URL": "http://course-catalog-api-guide.readthedocs.io/en/latest/", 
    "AUDIT_CERT_CUTOFF_DATE": null, 
    "AUTH_DOCUMENTATION_URL": "http://course-catalog-api-guide.readthedocs.io/en/latest/authentication/index.html", 
    "AUTH_PASSWORD_VALIDATORS": [
        {
            "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
        }, 
        {
            "NAME": "util.password_policy_validators.MinimumLengthValidator", 
            "OPTIONS": {
                "min_length": 2
            }
        }, 
        {
            "NAME": "util.password_policy_validators.MaximumLengthValidator", 
            "OPTIONS": {
                "max_length": 75
            }
        }
    ], 
    "AWS_SES_REGION_ENDPOINT": "email.us-east-1.amazonaws.com", 
    "AWS_SES_REGION_NAME": "us-east-1", 
    "BASE_COOKIE_DOMAIN": "dev.cooledu.com", 
    "BLOCK_STRUCTURES_SETTINGS": {
        "COURSE_PUBLISH_TASK_DELAY": 30, 
        "PRUNING_ACTIVE": false, 
        "TASK_DEFAULT_RETRY_DELAY": 30, 
        "TASK_MAX_RETRIES": 5
    }, 
    "BUGS_EMAIL": "info@cooledu.com", 
    "BULK_EMAIL_DEFAULT_FROM_EMAIL": "info@cooledu.com", 
    "BULK_EMAIL_EMAILS_PER_TASK": 500, 
    "BULK_EMAIL_LOG_SENT_EMAILS": false, 
    "BULK_EMAIL_ROUTING_KEY_SMALL_JOBS": "edx.lms.core.default", 
    "CACHES": {
        "celery": {
            "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", 
            "KEY_FUNCTION": "util.memcache.safe_key", 
            "KEY_PREFIX": "celery", 
            "LOCATION": [
                "localhost:11211"
            ], 
            "TIMEOUT": "7200"
        }, 
        "configuration": {
            "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", 
            "KEY_FUNCTION": "util.memcache.safe_key", 
            "KEY_PREFIX": "ip-172-30-0-130", 
            "LOCATION": [
                "localhost:11211"
            ]
        }, 
        "course_structure_cache": {
            "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", 
            "KEY_FUNCTION": "util.memcache.safe_key", 
            "KEY_PREFIX": "course_structure", 
            "LOCATION": [
                "localhost:11211"
            ], 
            "TIMEOUT": "7200"
        }, 
        "default": {
            "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", 
            "KEY_FUNCTION": "util.memcache.safe_key", 
            "KEY_PREFIX": "default", 
            "LOCATION": [
                "localhost:11211"
            ], 
            "VERSION": "1"
        }, 
        "general": {
            "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", 
            "KEY_FUNCTION": "util.memcache.safe_key", 
            "KEY_PREFIX": "general", 
            "LOCATION": [
                "localhost:11211"
            ]
        }, 
        "mongo_metadata_inheritance": {
            "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", 
            "KEY_FUNCTION": "util.memcache.safe_key", 
            "KEY_PREFIX": "mongo_metadata_inheritance", 
            "LOCATION": [
                "localhost:11211"
            ], 
            "TIMEOUT": 300
        }, 
        "staticfiles": {
            "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", 
            "KEY_FUNCTION": "util.memcache.safe_key", 
            "KEY_PREFIX": "ip-172-30-0-130_general", 
            "LOCATION": [
                "localhost:11211"
            ]
        }
    }, 
    "CAS_ATTRIBUTE_CALLBACK": "", 
    "CAS_EXTRA_LOGIN_PARAMS": "", 
    "CAS_SERVER_URL": "", 
    "CELERY_BROKER_HOSTNAME": "localhost", 
    "CELERY_BROKER_TRANSPORT": "amqp", 
    "CELERY_BROKER_USE_SSL": false, 
    "CELERY_BROKER_VHOST": "", 
    "CELERY_EVENT_QUEUE_TTL": null, 
    "CELERY_QUEUES": [
        "edx.lms.core.default", 
        "edx.lms.core.high", 
        "edx.lms.core.high_mem"
    ], 
    "CERTIFICATE_TEMPLATE_LANGUAGES": {
        "en": "English", 
        "es": "Espa\u00f1ol"
    }, 
    "CERT_QUEUE": "certificates", 
    "CMS_BASE": "studio.cooledu.com", 
    "CODE_JAIL": {
        "limits": {
            "CPU": 1, 
            "FSIZE": 1048576, 
            "PROXY": 0, 
            "REALTIME": 3, 
            "VMEM": 536870912
        }, 
        "python_bin": "/edx/app/edxapp/venvs/edxapp-sandbox/bin/python", 
        "user": "sandbox"
    }, 
    "COMMENTS_SERVICE_KEY": "To9hO6oR5VlX3Uwb0eN9lQ4te2xn4shZuKl", 
    "COMMENTS_SERVICE_URL": "dev.cooledu.com:18080", 
    "COMPREHENSIVE_THEME_DIRS": [
        "/edx/app/edxapp/edx-platform/themes"
    ], 
    "COMPREHENSIVE_THEME_LOCALE_PATHS": [], 
    "CONTACT_EMAIL": "info@cooledu.com", 
    "CONTACT_MAILING_ADDRESS": "1333 Somewhere #1, San CA 99999", 
    "CORS_ORIGIN_ALLOW_ALL": false, 
    "CORS_ORIGIN_WHITELIST": [], 
    "COURSES_WITH_UNSAFE_CODE": [], 
    "COURSE_ABOUT_VISIBILITY_PERMISSION": "see_exists", 
    "COURSE_CATALOG_API_URL": "dev.cooledu.com:8008/api/v1", 
    "COURSE_CATALOG_VISIBILITY_PERMISSION": "see_exists", 
    "CREDENTIALS_INTERNAL_SERVICE_URL": "dev.cooledu.com:8005", 
    "CREDENTIALS_PUBLIC_SERVICE_URL": "dev.cooledu.com:8005", 
    "CREDIT_HELP_LINK_URL": "", 
    "CROSS_DOMAIN_CSRF_COOKIE_DOMAIN": "", 
    "CROSS_DOMAIN_CSRF_COOKIE_NAME": "", 
    "CSRF_COOKIE_SECURE": false, 
    "DATA_DIR": "/edx/var/edxapp", 
    "DEFAULT_COURSE_VISIBILITY_IN_CATALOG": "both", 
    "DEFAULT_FEEDBACK_EMAIL": "info@cooledu.com", 
    "DEFAULT_FILE_STORAGE": "django.core.files.storage.FileSystemStorage", 
    "DEFAULT_FROM_EMAIL": "info@cooledu.com", 
    "DEFAULT_JWT_ISSUER": {
        "AUDIENCE": "SET-ME-PLEASE", 
        "ISSUER": "https://dev.cooledu.com:8000/oauth2", 
        "SECRET_KEY": "SET-ME-PLEASE"
    }, 
    "DEFAULT_MOBILE_AVAILABLE": false, 
    "DEFAULT_SITE_THEME": "stanford-style", 
    "DEPRECATED_ADVANCED_COMPONENT_TYPES": [], 
    "ECOMMERCE_API_URL": "dev.cooledu.com:18130/api/v2", 
    "ECOMMERCE_PUBLIC_URL_ROOT": "dev.cooledu.com:18130", 
    "EDXMKTG_USER_INFO_COOKIE_NAME": "edx-user-info", 
    "EDXNOTES_INTERNAL_API": "dev.cooledu.com:18120/api/v1", 
    "EDXNOTES_PUBLIC_API": "dev.cooledu.com:18120/api/v1", 
    "EDX_PLATFORM_REVISION": "open-release/ironwood.master", 
    "ELASTIC_SEARCH_CONFIG": [
        {
            "host": "localhost", 
            "port": 9200, 
            "use_ssl": false
        }
    ], 
    "EMAIL_BACKEND": "django.core.mail.backends.smtp.EmailBackend", 
    "EMAIL_HOST": "smtp.gmail.com", 
    "EMAIL_PORT": 587, 
    "EMAIL_USE_TLS":true, 
    "ENABLE_COMPREHENSIVE_THEMING": true, 
    "ENTERPRISE_API_URL": "https://dev.cooledu.com/enterprise/api/v1", 
    "ENTERPRISE_COURSE_ENROLLMENT_AUDIT_MODES": [
        "audit", 
        "honor"
    ], 
    "ENTERPRISE_CUSTOMER_SUCCESS_EMAIL": "info@cooledu.com", 
    "ENTERPRISE_ENROLLMENT_API_URL": "https://dev.cooledu.com/api/enrollment/v1/", 
    "ENTERPRISE_SUPPORT_URL": "", 
    "ENTERPRISE_TAGLINE": "", 
    "EXTRA_MIDDLEWARE_CLASSES": [], 
    "FEATURES": {
        "AUTH_USE_OPENID_PROVIDER": true, 
        "AUTOMATIC_AUTH_FOR_TESTING": false, 
        "CUSTOM_COURSES_EDX": false, 
        "ENABLE_COMBINED_LOGIN_REGISTRATION": true, 
        "ENABLE_CORS_HEADERS": false, 
        "ENABLE_COUNTRY_ACCESS": false, 
        "ENABLE_CREDIT_API": false, 
        "ENABLE_CREDIT_ELIGIBILITY": false, 
        "ENABLE_CROSS_DOMAIN_CSRF_COOKIE": false, 
        "ENABLE_CSMH_EXTENDED": true, 
        "ENABLE_DISCUSSION_HOME_PANEL": true, 
        "ENABLE_DISCUSSION_SERVICE": true, 
        "ENABLE_EDXNOTES": false, 
        "ENABLE_GRADE_DOWNLOADS": true, 
        "ENABLE_INSTRUCTOR_ANALYTICS": false, 
        "ENABLE_MKTG_SITE": false, 
        "ENABLE_MOBILE_REST_API": true, 
        "ENABLE_OAUTH2_PROVIDER": true, 
        "ENABLE_READING_FROM_MULTIPLE_HISTORY_TABLES": true, 
        "ENABLE_SPECIAL_EXAMS": false, 
        "ENABLE_SYSADMIN_DASHBOARD": false, 
        "ENABLE_THIRD_PARTY_AUTH": true, 
        "ENABLE_VIDEO_UPLOAD_PIPELINE": false, 
        "PREVIEW_LMS_BASE": "preview.cooledu.com", 
        "SHOW_FOOTER_LANGUAGE_SELECTOR": false, 
        "SHOW_HEADER_LANGUAGE_SELECTOR": false
    }, 
    "FEEDBACK_SUBMISSION_EMAIL": "", 
    "FILE_UPLOAD_STORAGE_BUCKET_NAME": "SET-ME-PLEASE (ex. bucket-name)", 
    "FILE_UPLOAD_STORAGE_PREFIX": "submissions_attachments", 
    "FINANCIAL_REPORTS": {
        "BUCKET": null, 
        "ROOT_PATH": "sandbox", 
        "STORAGE_TYPE": "localfs"
    }, 
    "FOOTER_ORGANIZATION_IMAGE": "images/logo.png", 
    "GITHUB_REPO_ROOT": "/edx/var/edxapp/data", 
    "GIT_REPO_DIR": "/edx/var/edxapp/course_repos", 
    "GOOGLE_SITE_VERIFICATION_ID": "", 
    "GRADES_DOWNLOAD": {
        "BUCKET": "", 
        "ROOT_PATH": "", 
        "STORAGE_CLASS": "django.core.files.storage.FileSystemStorage", 
        "STORAGE_KWARGS": {
            "location": "/tmp/edx-s3/grades"
        }, 
        "STORAGE_TYPE": ""
    }, 
    "HELP_TOKENS_BOOKS": {
        "course_author": "http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course", 
        "learner": "http://edx.readthedocs.io/projects/open-edx-learner-guide"
    }, 
    "ICP_LICENSE": null, 
    "IDA_LOGOUT_URI_LIST": [], 
    "ID_VERIFICATION_SUPPORT_LINK": "", 
    "JOURNALS_API_URL": "https://journals.cooledu.com/api/v1/", 
    "JOURNALS_URL_ROOT": "https://journals.cooledu.com", 
    "JWT_AUTH": {
        "JWT_AUDIENCE": "SET-ME-PLEASE", 
        "JWT_ISSUER": "https:/dev.cooledu.com/oauth2", 
        "JWT_ISSUERS": [
            {
                "AUDIENCE": "SET-ME-PLEASE", 
                "ISSUER": "https:/dev.cooledu.com/oauth2", 
                "SECRET_KEY": "SET-ME-PLEASE"
            }
        ], 
        "JWT_PRIVATE_SIGNING_JWK": "None", 
        "JWT_PUBLIC_SIGNING_JWK_SET": "None", 
        "JWT_SECRET_KEY": "SET-ME-PLEASE", 
        "JWT_SIGNING_ALGORITHM": null
    }, 
    "JWT_EXPIRATION": 30, 
    "JWT_ISSUER": "https://dev.cooledu.com/oauth2", 
    "JWT_PRIVATE_SIGNING_KEY": null, 
    "LANGUAGE_CODE": "en", 
    "LANGUAGE_COOKIE": "openedx-language-preference", 
    "LMS_BASE": "dev.cooledu.com", 
    "LMS_INTERNAL_ROOT_URL": "https://dev.cooledu.com", 
    "LMS_ROOT_URL": "https://dev.cooledu.com", 
    "LOCAL_LOGLEVEL": "INFO", 
    "LOGGING_ENV": "sandbox", 
    "LOGIN_REDIRECT_WHITELIST": [
        "dev.cooledu.com"
    ], 
    "LOG_DIR": "/edx/var/log/edx", 
    "LTI_AGGREGATE_SCORE_PASSBACK_DELAY": 900, 
    "LTI_USER_EMAIL_DOMAIN": "lti.cooledu.com", 
    "MAILCHIMP_NEW_USER_LIST_ID": null, 
    "MAINTENANCE_BANNER_TEXT": "Sample banner message", 
    "MEDIA_ROOT": "/edx/var/edxapp/media/", 
    "MEDIA_URL": "/media/", 
    "MICROSITE_CONFIGURATION": {}, 
    "MICROSITE_ROOT_DIR": "/edx/app/edxapp/edx-microsite", 
    "MKTG_URLS": {}, 
    "MKTG_URL_LINK_MAP": {}, 
    "MOBILE_STORE_URLS": {}, 
    "OAUTH_DELETE_EXPIRED": true, 
    "OAUTH_ENFORCE_SECURE": false, 
    "OAUTH_EXPIRE_CONFIDENTIAL_CLIENT_DAYS": 365, 
    "OAUTH_EXPIRE_PUBLIC_CLIENT_DAYS": 30, 
    "OAUTH_OIDC_ISSUER": "https://dev.cooledu.com/oauth2", 
    "ORA2_FILE_PREFIX": "default_env-default_deployment/ora2", 
    "PAID_COURSE_REGISTRATION_CURRENCY": [
        "usd", 
        "$"
    ], 
    "PARENTAL_CONSENT_AGE_LIMIT": 13, 
    "PARTNER_SUPPORT_EMAIL": "", 
    "PASSWORD_POLICY_COMPLIANCE_ROLLOUT_CONFIG": {
        "ENFORCE_COMPLIANCE_ON_LOGIN": false
    }, 
    "PASSWORD_RESET_SUPPORT_LINK": "", 
    "PAYMENT_SUPPORT_EMAIL": "info@cooledu.com", 
    "PDF_RECEIPT_BILLING_ADDRESS": "Enter your receipt billing\naddress here.\n", 
    "PDF_RECEIPT_COBRAND_LOGO_PATH": "", 
    "PDF_RECEIPT_DISCLAIMER_TEXT": "ENTER YOUR RECEIPT DISCLAIMER TEXT HERE.\n", 
    "PDF_RECEIPT_FOOTER_TEXT": "Enter your receipt footer text here.\n", 
    "PDF_RECEIPT_LOGO_PATH": "", 
    "PDF_RECEIPT_TAX_ID": "00-0000000", 
    "PDF_RECEIPT_TAX_ID_LABEL": "fake Tax ID", 
    "PDF_RECEIPT_TERMS_AND_CONDITIONS": "Enter your receipt terms and conditions here.\n", 
    "PLATFORM_DESCRIPTION": "Cool Place for School", 
    "PLATFORM_FACEBOOK_ACCOUNT": "http://www.facebook.com/", 
    "PLATFORM_NAME": "Cool Edu", 
    "PLATFORM_TWITTER_ACCOUNT": "@cooledu", 
    "POLICY_CHANGE_GRADES_ROUTING_KEY": "edx.lms.core.default", 
    "PRESS_EMAIL": "info@cooledu.com", 
    "PROCTORING_SETTINGS": {}, 
    "PROFILE_IMAGE_BACKEND": {
        "class": "storages.backends.overwrite.OverwriteStorage", 
        "options": {
            "base_url": "/media/profile-images/", 
            "location": "/edx/var/edxapp/media/profile-images/"
        }
    }, 
    "PROFILE_IMAGE_MAX_BYTES": 1048576, 
    "PROFILE_IMAGE_MIN_BYTES": 100, 
    "PROFILE_IMAGE_SIZES_MAP": {
        "full": 500, 
        "large": 120, 
        "medium": 50, 
        "small": 30
    }, 
    "RECALCULATE_GRADES_ROUTING_KEY": "edx.lms.core.default", 
    "REGISTRATION_EXTRA_FIELDS": {
        "city": "hidden", 
        "confirm_email": "hidden", 
        "country": "required", 
        "gender": "optional", 
        "goals": "optional", 
        "honor_code": "required", 
        "level_of_education": "optional", 
        "mailing_address": "hidden", 
        "terms_of_service": "hidden", 
        "year_of_birth": "optional"
    }, 
    "RETIRED_EMAIL_DOMAIN": "retired.invalid", 
    "RETIRED_EMAIL_PREFIX": "retired__user_", 
    "RETIRED_USERNAME_PREFIX": "retired__user_", 
    "RETIRED_USER_SALTS": [
        "OVERRIDE ME WITH A RANDOM VALUE", 
        "ROTATE SALTS BY APPENDING NEW VALUES"
    ], 
    "RETIREMENT_SERVICE_WORKER_USERNAME": "OVERRIDE THIS WITH A VALID LMS USERNAME", 
    "RETIREMENT_STATES": [
        "PENDING", 
        "ERRORED", 
        "ABORTED", 
        "COMPLETE"
    ], 
    "SERVER_EMAIL": "info@cooledu.com", 
    "SESSION_COOKIE_DOMAIN": "", 
    "SESSION_COOKIE_NAME": "sessionid", 
    "SESSION_COOKIE_SECURE": false, 
    "SESSION_SAVE_EVERY_REQUEST": false, 
    "SITE_NAME": "dev.cooledu.com", 
    "SOCIAL_MEDIA_FOOTER_URLS": {}, 
    "SOCIAL_SHARING_SETTINGS": {
        "CERTIFICATE_FACEBOOK": false, 
        "CERTIFICATE_TWITTER": false, 
        "CUSTOM_COURSE_URLS": false, 
        "DASHBOARD_FACEBOOK": false, 
        "DASHBOARD_TWITTER": false
    }, 
    "STATIC_ROOT_BASE": "/edx/var/edxapp/staticfiles", 
    "STATIC_URL_BASE": "/static/", 
    "STUDIO_NAME": "Studio", 
    "STUDIO_SHORT_NAME": "Studio", 
    "SUPPORT_SITE_LINK": "", 
    "SYSLOG_SERVER": "", 
    "TECH_SUPPORT_EMAIL": "info@cooledu.com", 
    "TIME_ZONE": "America/New_York", 
    "UNIVERSITY_EMAIL": "info@cooledu.com", 
    "VIDEO_CDN_URL": {
        "EXAMPLE_COUNTRY_CODE": "https://dev.cooledu.com/edx/video?s3_url="
    }, 
    "VIDEO_IMAGE_MAX_AGE": 31536000, 
    "VIDEO_IMAGE_SETTINGS": {
        "DIRECTORY_PREFIX": "video-images/", 
        "STORAGE_KWARGS": {
            "base_url": "/media/", 
            "location": "/edx/var/edxapp/media/"
        }, 
        "VIDEO_IMAGE_MAX_BYTES": 2097152, 
        "VIDEO_IMAGE_MIN_BYTES": 2048
    }, 
    "VIDEO_TRANSCRIPTS_MAX_AGE": 31536000, 
    "VIDEO_TRANSCRIPTS_SETTINGS": {
        "DIRECTORY_PREFIX": "video-transcripts/", 
        "STORAGE_KWARGS": {
            "base_url": "/media/", 
            "location": "/edx/var/edxapp/media/"
        }, 
        "VIDEO_TRANSCRIPTS_MAX_BYTES": 3145728
    }, 
    "VIDEO_UPLOAD_PIPELINE": {
        "BUCKET": "", 
        "ROOT_PATH": ""
    }, 
    "WIKI_ENABLED": true, 
    "WRITABLE_GRADEBOOK_URL": null, 
    "XBLOCK_FS_STORAGE_BUCKET": null, 
    "XBLOCK_FS_STORAGE_PREFIX": null, 
    "XBLOCK_SETTINGS": {}, 
    "X_FRAME_OPTIONS": "DENY", 
    "ZENDESK_CUSTOM_FIELDS": {}, 
    "ZENDESK_URL": ""
}