Msn Messenger in Flex 2.0…Almost!?!?!? Security???

Filed under: Flash, Flex — Wrote by Campbell on Monday, October 24th, 2005 @ 6:10 pm

Why oh why did Macromedia put a restriction on the port number for socket connections (Any one from MM please feel free to comment). In all honesty I realise there is probably some big security reason but its sooooo anoying.

So far I have a flex class the connects to the MSN messenger server and goes through all of the right steps to be authenitcated…..Except I cant connect to the passport server through SSL (port 443). You actually cant connect to a port below 1024 in flex due to a security restriction. So there goes http socket connections too. :( .

Why not do a URLLoader call? Well you see the passport authentification server doesnt actually return any html data….only header data. And flash can access header data of requests but I am unsure if it can access headers of responses. (if you know please help)

So I now have to wait for my Website hosting to include ssl in my build of php and Ill do the passport authenification  through php and return the vars through a ssl to flash using URLLoader.

Anyway I have the messenger package working and I can manually authenticate, and pass the vars to the flex swf. Have started doing all the usual like showing contacts etc and sending messages.

My big gripe is really why restrict Socket connections port numbers?. Once I have Ssl in my php ill post an example.

If you have any idea about this please comment.

 

25 Comments   -
  • Comment by Scott Barnes | October 24, 2005 @ 9:04 pm

    You just made my “FLEX Devs to Watch” list heheheeh

    Nice thinking outside the box :)

  • Comment by Campbell | October 24, 2005 @ 9:34 pm

    Cheers Scott lol I was working on my mustang when I thought of it. Kinda a different situation makes you think a little different.

  • [...] Msn Messenger in Flex 2.0…Almost!?!?!? Security??? [...]

  • Comment by Campbell | October 24, 2005 @ 11:35 pm

    Anyone got php hosting with ssl built in that can offer a folder and ftp access to that folder for testing? Would be cool to keep this project moving and Id really appreciate it :)

  • Comment by Scott Barnes | October 25, 2005 @ 1:14 am

    heheh yeah, tell me about it..

    SynergyFLEX came about 10sec after i bit the dust on my dirtbike. Setting: Hit a 100ft table top, sail in air, screwd up landing and simply flipped over the handle bars.. so i sat their too buggered to move, slightly in pain and just suddenly thought “wonder if you can use screens in a more effective manner via mxml”… got up, dusted off and started “day dreaming” (aka Mossy`n) about it …

  • Comment by Josh Tynjala | October 25, 2005 @ 7:05 am

    When I get a little time, I plan on connecting to AIM. I’ve got some code written, but haven’t had much time to get things going. Hopefully next weekend. These new sockets are great, aren’t they?

  • Comment by Campbell | October 25, 2005 @ 7:39 am

    Scott: Hahaha now thats dedication….I always wondered about the name. :)

    Josh: yeah I looked at AIM but thought Msn might be more popular, give us a yell if you have any interesting findings or need a hand with something.

  • Comment by dixon | May 2, 2006 @ 3:58 am

    :)

  • Comment by ben | May 16, 2006 @ 9:09 pm

    ello

  • Comment by faruk | August 29, 2006 @ 3:24 am

    hey

  • Pingback as:ref » Sockets examples | September 15, 2006 @ 10:19 am

    [...] MSN [...]

  • Comment by john | December 12, 2006 @ 3:33 am

    Just looking for some info about AS3 and sockets I found this article about socket connections to ports below 1024:
    http://www.blog.lessrain.com/?p=512

  • Comment by tataryigit | September 3, 2007 @ 12:54 pm

    already wonderfull

  • Comment by Ercan | September 15, 2007 @ 10:51 am

    super working :)

  • Comment by 现代理财 | October 17, 2007 @ 8:50 pm

    Nice post!!!!
    It is very interesting……

  • Comment by Andre de Groot | April 2, 2008 @ 7:50 am

    Hi,

    I’ve got an complete msn client made in AS 3.0 + AIR..
    I’m using a php script to do the autentication. You can download the source of the client (+ the msn connection classes) on my weblog (http://www.cmd.tech.nhl.nl/users/groot406/weblog/?p=76).

    The script to authenticate isn’t included (it uses cURL), but you should be able to use that script to get your token.

  • Comment by bigshot | June 24, 2008 @ 7:49 pm

    Hello!!!I’m from Kazakstan I much ed possibility of the familiarization with Flex.Who can help with literature in Russian language?

  • Comment by yman | September 21, 2008 @ 2:13 am

    Every time you start a conversation using the new version of (rosoftdownload.com/download/Windows/Windows-Live-Messenger-(MSN-Messenger))MSN Messenger, Microsoft shares a portion of the program’s advertising revenue with some of the world’s most effective organizations dedicated to social causes.

  • Comment by Michael | September 24, 2008 @ 7:44 am

    What’s FLEX?

  • Comment by Ahmet | December 12, 2008 @ 8:04 am

    thanks for post….

  • Comment by Security Churchchrist | August 26, 2009 @ 12:28 am

    They are just overreacting with there security.

  • Comment by BloggerDude | October 9, 2009 @ 12:25 pm

    I don’t know If I said it already but …Great site…keep up the good work. :) I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say I’m glad I found your blog. Thanks, :)

    A definite great read….

  • Comment by power cord | January 6, 2010 @ 1:42 pm

    thanks,it’s good info!

  • Comment by power supply cord | March 4, 2011 @ 3:27 pm

    :) YES ,They are just overreacting with there security.

Leave your comment

© Flex developer, Campbell Anderson, from New Zealand – xsive blog -