function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ekmekm 

Flex App - Require Secure Connections (HTTPS) issue

Hello,

I'm working with salesforce using an app developed using Flex and ran into an issue that I'm attempting to troubleshoot. Everything was working fine and then in the security settings (set up - administration setup - security control - session settings), we checked 'Require Secure Connections (https)' checkbox. Now the data I have loaded in Salesforce does not display in my Flex app when running from another server either outside or inside our firewall (this setting is a general setting for all who will log into our application).

I'm using the login code found in the samples I downloded from Salesforce (see below).

Does anyone have any suggetions for why my login no longer works?

Thanks in advance for any suggestions one might have.

Regards,

Errol


<salesforce:Connection id="apex"
    serverUrl="https://test.salesforce.com/services/Soap/u/14.0"
    />   


private function login():void {
        var lr:LoginRequest = new LoginRequest(    {    
            server_url : Application.application.parameters.server_url,   
            session_id : Application.application.parameters.session_id,
            username : 'username',
            password : 'password',
            callback : new AsyncResponder(function (result:Object):void
                {
                                  } )
            } );
           
        Util.debug(this, 'apex.login ( ' +ObjectUtil.toString(lr) +'\n);' );   
        apex.protocol = "http";
        apex.login(lr);        
    }

SuperfellSuperfell
I would suspect the apex.protocol = "http"; line to be the problem.