Access should only be granted to applications approved by the team. At the
beginning these will be our own applications but we want to approve apps
from other developers in the future.

Your suggestion works for web applications and we are planning to use it,
but it can not be used for AIR applications.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Sep 26, 2011 at 4:04 PM, Alex Harui <[email protected]> wrote:

> **
>
>
> What kind of access to the web API are you trying to prevent?  What
> configurations need to use the API?  If the API doesn’t need to be used by
> other servers, I thought you could check the headers and make sure the API
> is being called from a client served from your domain and deny all others.
>  I think that’s the point of crossdomain.xml.
>
> -Alex
>
>
>
> On 9/26/11 5:35 AM, "claudiu ursica" <[email protected]> wrote:
>
>
>
>
>
>
> The thing is that most client side apps implement security by obscurity
> which pretty much means that you will never be safe 100%, the only thing you
> do is not putting it in plain sight. So as you continue is add more level of
> obscurity, but as said that will only make it harder still not impossible to
> crack. You can double/triple that by server side checks e.g. trusted ips,
> domains, user etc. Whenever server feels like there is not enough trust
> should deny the connection.
>
> Obviously the topic is large enough to tackle in just a couple of lines,
> hopes this gives you a start ...
> C
>
> ------------------------------
> *From:* Haykel BEN JEMIA <[email protected]>
> *To:* [email protected]
> *Sent:* Monday, September 26, 2011 1:40 PM
> *Subject:* Re: [flexcoders] Restrict access to an API to only allowed
> applications
>
>
>
> Thanks Claudiu,
>
> I have found a PDF of the presentation and on page 4 it says the following
> about protecting sensitive data through embedding:
>
> * Most decompilers don’t look at embedded data.
> * Given that SWF is an open file format, nothing is really stopping them
> from doing this in the future.
> * Useful for quick/dirty storage of WebService credentials.
>
> So this is definitly better than storing the keys in plain text format, but
> still easy to crack.
>
> Any other suggestions.
>
> Thanks,
>
> Haykel Ben Jemia
>
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
>
>
>
>
> On Mon, Sep 26, 2011 at 11:33 AM, claudiu ursica <[email protected]>
> wrote:
>
>
>
>
>
> You can embed the keys instead of keeping them in plain site.
>
> check this session I think you will find some useful stuff:
>
> http://tv.adobe.com/watch/360flex-conference/encrypting-flex-protecting-revenue-by-andrew-westberg/
>
> C
>
> ------------------------------
> *From:* Haykel BEN JEMIA <[email protected]>
> *To:* flexcoders <[email protected]>
> *Sent:* Monday, September 26, 2011 12:00 PM
> *Subject:* [flexcoders] Restrict access to an API to only allowed
> applications
>
>
>
> Hi,
>
> I'm looking for the best and most secure way to restrict access to a web
> API to only allowed applications. The best option I found is to use 2-Legged
> OAuth where applications would get a consumer key and a secret key. The
> problem here is that SWF files can be easily decompiled and the keys
> extracted. My questions here are:
>
> * Does anybody know a way to protect the keys?
> * Is there another authorization mechanism that is better suited for such
> client applications in general (Flash, JavaScript ...)
>
> Thanks.
>
> Haykel Ben Jemia
>
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>
>  
>

Reply via email to