Any pointers on implementing user authentication in Adobe AIR application ?

Hello
I am using an AIR 3.0 to create my client that connects to my server LCDS application that uses oracle XE database. I now need to implement the user authentication & access controls to GUI screens. Any pointers that show best practices in this regard or get me started...
thanks
RK

You can use the mechanisms built into the AMF protocol, or manage the session manually by passing around an authentication token generated on the server.
Here is some basic info on AMF sessions: http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=services_security_5 .html
It's written for BlazeDS, but the principal is the same.

Similar Messages

  • Any pointers for implementing the train steps

    I am trying to setup the train steps (with "
    Max Visited" behavior) on the latest ADF release.
    I tried to use the train demo code. But could not get the train steps working.
    Are there any pointers for implementing the train steps using <af:train> in a detailed manner?

    Hi,
    you are from Oracle, so please
    - don't ask questions about internal JDeveloper builds on a public forum
    - never broadcast internal server URLs to public
    There is an internal forum for this
    Frank

  • Question:-Is there any way to disable the installation location/folder of da Adobe AIR Application?

    Is there any way to disable the installation location/folder of the Adobe AIR Application or can we skip that part automatically?

    xmlns:mx="library://ns.adobe.com/flex/mx"  is the spark mx address, which is completely different than the original 2006 mx library. 
    The thing is:  I love AIR, hate spark, loved the 2006 pre-spark functionality.  It is so much more convenient and user friendly.  Given the choice between having the display seperate from the  processing, or having it be convenient and easy  to work with, I choose the later option.
    For the most part it seems like the AIR api is like a layer on top of the spark - flex system..   I would like to be able to over lay the same AIR functionality on top of the the old system....
    Possible or no?

  • Deployment of an Adobe AIR application in an enterprise environment

    Dear Team members,
    first of all my apologies for posting this thread in more than one forum (see Installations Issues) but the argument is very important to us and I don't know where discuss it.
    I would like to post a question to you regarding deployment doubts that we are trying to address.
    My company is working on the new version of our primary application previously built as a J2EE application with some reporting functions with Flex, and we want to use AIR in order to leverage its possibilities:
    Seamless integration with existing application functionalities (implemented as standard JEE web application pages) thanks to the integrated HTML capabilities
    Improved integration of the user interface with the desktop
    Native processes to provide additional functionalities
    Our application is targeted to pharmaceutical industry, subject to FDA regulations, and it affects more than 5000 users for each customer, so we have some specific requirements affecting the deployment and distribution of the software:
    Allow to run multiple versions of the software on the same client machine (to support test and acceptance activities in addition to the production environment)
    Minimize the effort of the initial setup on each client
    Manage the version upgrades without manual activities on each client
    Keep the test/acceptance and production environments strictly aligned to improve effectiveness of formal validation (ideally, an application once validated should be transported in production without any source code modification, recompilation or repackaging)
    The current browser-based strategy is perfectly fit to these requirements, and in the shift towards a desktop-based strategy we need to continue satisfying them as much as possible. We evaluated the standard distribution strategy of Adobe AIR applications, and noticed several attention points in this scenario.
    The first issue we encountered is the back-end services endpoint discovery problem. Simply hardcoding a server URL in the packaged application could be a viable solution for public internet-accessible applications, but we need to support multiple customers in their intranet, and each one typically requires multiple environments for the application (acceptance, production, etc.). Maintaining dozens of different packages of the AIR application to support all these customer environments clearly is not the solution. Neither we want to force thousands of different users to enter and maintain the correct server location in their local preferences.
    So, we thought to use a badge hosted in the back-end application to run the local AIR application: using the underlying API, we could activate the application specifying also the network location of the back-end services. We could also rely on the badge to install the application (and the AIR runtime if necessary)… however, application packaged as native installers cannot be installed, upgraded, or launched by the badge API (and we need to package ours as native to use native processes).
    We also noticed that multiple versions of an AIR application cannot be installed side-by-side in a client machine, and that the installation and upgrade of the application can be performed only when the local user has administrative rights on the machine (using standard or native packages), forcing us to rely on external software distribution systems in some customer scenarios (introducing additional complexities in the release cycle).
    At this point, in our opinion the standard deployment strategies of Adobe AIR applications are unfit for enterprise environments. In the enterprise world, many of the applications have migrated to a completely browser-based solution, while others enhanced their client layer to comply with the requirements, for example installing only a thin portion of the client code and allowing to connect to multiple server versions/environments with it (e.g. the SAP GUI universal client). Without smarter deployment and distribution tools, AIR applications currently are a step back compared to web applications in terms of manageability.
    So, we are trying to develop a solution to address these problems, with some concepts similar to JStart: install on the client machine a launcher application capable of being activated from a web page, dynamically locate, download and run the actual client bytecode, transparently enforce client software updates, and supporting multiple applications (and multiple versions of the same application). However, we are facing many technical problems due to internal architecture of AIR and we already spent a considerable amount of effort trying to find a solution. We are now thinking to return on the choice of AIR, going back to Flex.
    What is the position of Adobe on this argument? Is Adobe aware of these issues and are there any plans on this topic? Any advice?
    Thank you in advance

    For those following along, Oliver Goldman will be answering this post in future articles on his blog.
    Many great comments and questions here. I’m working on some follow-up posts to address these; nothing I could cram into this comment field would really do your query justice. - Oliver Goldman
    Pursuit of Simplicity
    Chris

  • Error using as3corelib in Adobe AIR application

    I have created a new Adobe AIR application (HTML/JavaScript) in Aptana Studio.
    To implement the password protected db, i am trying to implement the EncryptionKeyGenerator class from the swf file of as3corelib.
    However, when i try to access it's functions, i get the following error
    Value not a constructor. So i am not able to access the functions of the class.
    Can anyone help me..?

    Thanks 4 the reply...
    I downloaded as3corelib library from http://code.google.com/p/as3corelib/downloads/list, extracted the library.swf file from the available as3corelib.swc file, included it to the lib tab of my application, renamed it as EncryptionKeyGenerator.swf and i've done the following:
    <script type="application/x-shockwave-flash" src="lib/EncryptionKeyGenerator.swf"></script>
    function init(){
    var ekg;
    if(window.runtime)
                        if(!ekg)ekg={};
                       ekg.EncryptionKeyGenerator=window.runtime.com.adobe.air.crypto.EncryptionKeyGenerator;//from a document over net
                        keyGenerator=new ekg.EncryptionKeyGenerator();
    On running my application, it says Value not a constructor.
    However, i downloaded a installer package, EncryptedDBHTML.air  over the net and when i used the EncryptionKeyGenerator.swf file from this package in my application, it worked. Now, the available codin used this:
                       ekg.EncryptionKeyGenerator=window.runtime.com.adobe.data.encryption.EncryptionKeyGenerato r;
    I tried using the above package name, however i end up with the same error.
    Any help is appreciated..

  • Adobe Air Application only works using Super Administrator account on Windows XP

    Good day
    i really need some help. I developed air application that uses remote service, sql lite etc. It is working on my computer WIndows XP sp2. To test, i even created a guest account and it works fine. But when i deployed it to our client, the application doest work. Only the login page appears. I ask the it personnel there and ask if there are any restriction on the account of the user and said there is none because they are using Domain account. But when the super administrator is logged in, it works
    Your help will greatly apprciated

    Your help me, I iwill greatly apprciated
    HELP MALAYSIA
    Date: Thu, 21 Oct 2010 20:54:19 -0600
    From: [email protected]
    To: [email protected]
    Subject: Adobe Air Application only works using Super Administrator account on Windows XP
    Good day
    i really need some help. I developed air application that uses remote service, sql lite etc. It is working on my computer WIndows XP sp2. To test, i even created a guest account and it works fine. But when i deployed it to our client, the application doest work. Only the login page appears. I ask the it personnel there and ask if there are any restriction on the account of the user and said there is none because they are using Domain account. But when the super administrator is logged in, it works
    Your help will greatly apprciated
    >

  • What are the System Requirements for Web Server hosting Adobe Air application

    Working on a project that is using Adobe Air . The Adobe support site has system requirements for the client side application, but for the server side, what are the system requirements?
    Using a Windows server, would expect to have approx. 100 concurrent connections at any given time.

    Adobe AIR applications are installed on the end user's computer. They are not hosted on a web server. You can deploy an AIR file, which is the installer file for an AIR application, via your web server.

  • Need better alternative to Adobe AIR Application Installer

    In order to build a double-clickable desktop application,
    apparently one has to use the Adobe AIR Application Installer. This
    is bad for a few reasons:
    It's not scriptable.
    It hard-wires the name of the swf file to load into the
    generated binary.
    For Mac OS X, the "swf launcher" should be a simple "launcher
    stub". The name of the swf file to load should be read from the
    Info.plist file. If it did this, then the stub could be the same
    for all applications. For Windows, there could be a simple XML
    config file in the same directory as the app that serves the same
    purpose as Info.plist on the Mac.
    I hope Adobe addresses this soon.

    quote:
    Originally posted by:
    mattkane
    How about creating your native launcher app with the whole
    AIR client in the Resources folder. When you launch your app it
    launches your server executable, then after its done its stuff it
    launches the AIR app.
    You could make the launcher app itself headless so you don't
    get two dock icons.
    This doesn't address the need to have a non-GUI alternative to
    the Air Application Installer so builds can be completely
    automated.
    It definitely breaks the drag-and-drop of a file onto the
    application's icon.
    I never said I have 2 Dock icons. (I already solved that
    problem by making the server "faceless" by setting LSUIElement to 1
    in the server's Info.plist.)
    Why do I want completely automated builds? Aside from the
    ease of just being able to type "ant" and press Return, any real
    development group has things such that a "build machine"
    automatically rebuilds the app (on all platforms) after ever
    developer check-in to check for accidental build breakage. Those
    builds also become available to QA for them to test.
    Ever time some new development tool comes out where the
    authors provide a GUI tool (presumably because they think GUI =
    easy), I have to wonder, "What were they thinking?" If the authors
    are themselves developers, how can they not see how crippling not
    providing an all-command-line tool-chain is? Don't all non-trivial
    development groups do automated builds as described above? The only
    answer I can think of is that some
    PHB
    somewhere thought it would be a "neat idea" to have an
    "easy-to-use" GUI application (because that sells to other PHBs).
    As to drag-and-drop: presumably, the swf launcher that gets
    generated properly handles drag-and-drop of files onto the
    application's icon and Does The Right Thing when it happens (where
    "right thing" usually means simply opening the document dropped
    onto the icon). Now, since my launcher gets launched instead, that
    breaks drag-and-drop unless I implement that functionality myself.
    The way I've implemented my launcher is such that, after the
    fork(), it's the parent process that exec's itself into the client
    thus keeping the original process ID. The hope is that Launch
    Services on the Mac, when handling and drag-and-drop event, will
    send said event to the original process -- which is now the client
    -- and everything Just Works. I have yet to get around to testing
    this (I'm busy with other things at the moment); but, if it turns
    out that my hope isn't fulfilled, well then I can fall back to
    keeping my launcher running to get and forward the OpenDoc
    AppleEvents from my launcher to the swf launcher.
    So, anyway, back to my original plea: Adobe,
    please just give us a command-line replacement for the Air
    Application Installer (preferably just a launcher stub that reads
    Info.plist). Thanks.

  • Adobe Air application with Oracle??

    Hi there,
    I am a newbee on this forum as well as for developing Adobe
    Air applications. Can any one tell me whether i can use oracle as
    database for adobe air apps or not. What about SQL Server instead
    of SQLite.
    Thanx in advance. Awaiting for your quick & favourable
    reply.
    Regards,
    Harish

    You can use java and servlets to talk to the database. If you
    have your servlet setup, just have it output xml and your flex can
    process the results:
    <mx:HTTPService id="dbService" useProxy="false"
    method="GET" result="processResults" url="{servletURL}"/>
    Then you call something like this in Actionscript:
    private function init():void {
    var s:String = 'args';
    var params:Object = {};
    params[s] = s;
    params["password"] = password;
    params["user"] = user;
    dbService.send(params);
    You can then handle the results in a method:
    private function processResults(event:ResultEvent):void { }
    or access them directly in an object via
    dbService.lastResult.
    Hope that helps. It would take a lot of time to explain it
    more in depth and there are certainly other ways to accomplish
    this.

  • Running Adobe AIR applications without having Adobe AIR installed

    Is running Adobe AIR applications without having Adobe AIR
    installed possible?
    Why wouldn`t it be?
    And if not, when will it be possible?
    Thank you.

    There's no technical way this could be possible. It's like a
    .swf playing without the Flash Player installed, or a Java applet
    without the Java Virtual Machine. Or even like a Windows
    application running without Windows. :)
    There are, however, 3rd party wrappers out there to turn AIR
    apps into native OS apps (basically it wraps the AIR Runtime inside
    a native OS executable, like .exe). One that I can name off the top
    of my head is the Shu wrapper. This is like the old school Flash
    projectors, like Zinc and mProjector. The user doesn't have to
    install anything to run native executables.
    I would be surprised if Adobe has any plans to make an
    executable wrapper for AIR, but I don't know anything. I would like
    to see .air files be able to run in the AIR Runtime without having
    to actually install the .air package, though.

  • Problem with Expose and Adobe AIR application -can't click on app in Expose

    I just installed a new Adobe AIR application called TwitterLocal. The app was working fine until I accidently hit some keyboard shortcut and the application window disappeared. I figured I accidently assigned the window to some other "space," however I do not have SPACES turned on. Furthermore, when I select EXPOSE, I can now see the content of the application's window, however if I click on the app (which takes on that grey-highlight appearance when you mouse over it) the desktop returns to its normal position. I can see via the top status bar that the app is currently selected, but I cannot access the app window.
    Is there any way to send an app that was "sent" to expose back to the normal desktop? I've tried rebooting and even uninstalling/reinstalling the app but it is still lost in expose.
    Any thoughts on this would greatly be appreciated.

    Solution was to change display to lower resolution, then the Adobe AIR app TwitterLocal became visible on the standard desktop and I was able to click on and move the app window towards the left of the desktop. Once I switched the resolution back, everything was ok.

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • Adobe Air application installation using the bundled runtime installer

    Hello.
    We plan to develop application for different platforms with Adobe Air and testing installing Air applications with bundled runtime installer on different platforms. It's ok with Windows and Mac OS, but we got troubles with "silent" installation on Ubuntu OS 9.10.
    I tried to install Adobe Air application with bundled runtime, like in this document in part "Silent installation":
    http://help.adobe.com/en_US/air/redist/WS485a42d56cd19641-70d979a8124ef20a34b-8000.html
    using command-line:
    "sudo ./MyInstaller -silent simple-air-air-application-1.0-SNAPSHOT.air"
    and installation fails. Installation log looks like this:
    [setup:2306][INFO] Runtime Installer begin with version 2.6.0.19140 on Linux x86
    [setup:2306][INFO] Commandline is: -silent simple-air-air-1.0-SNAPSHOT.air
    [setup:2306][INFO] No installed runtime detected
    [setup:2306][INFO] Invoking Application Installer for combined install
    [setup:2306][INFO] Launching subprocess with commandline /tmp/air.QMrLZl/build/opt/Adobe AIR/Versions/1.0/Adobe AIR Application Installer -runtime /tmp/air.QMrLZl/build/opt -silent -withRuntime -url file:///tmp/air.QMrLZl/simple-air-air-1.0-SNAPSHOT.air
    [setup:2306][ERR] Subprocess app installer failed (-1)
    [setup:2306][ERR] Runtime Installer end with exit code 7
    P.S. We tried do the same on Linux Mint 10. Everything's fine, application getting installed well.

    Thanks for the reply and solution MrSykes.
    I uninstalled adobe AIR and ran a file and registry cleaner to delete any left over files and installs.
    Then installed the v.15 Adobe AIR beta as recommended.
    The cleaners I used (ccleaner & jv16 power tools) did find some temporary install files and remnants of the Video Alchemy install.
    Tried the install again and still no installation window displays.
    I'm running Windows 7 on my PC and even changed the installation file compatibility to Windows XP service pack 2 to no avail.
    Funny that it installed fine on my notebook with Adobe AIR latest version running Windows 7.
    I'm watching task manager as I'm attempting the install and videoalchemy.exe has some cpu usage then drops to zero activity.
    Then Adobe AIR application Installer starts up then cycles to zero cpu activity.
    I'm stumped on this one :-(
    Thanks again for investing the time on my behalf.
    Regards
    Stephen

  • Adobe AIR Application won't install

    Also, tried reinistalling latest version of Adobe AIR but a message appears saying that the latest version of Adobe AIR is already installed, even though I thought I had unistalled it with the help of Microsoft Fix it (i.e. it no longer appeared in the least of programs installed on the computer).
    I am using a Samsung laptop with Windows 7.
    Following my latest attempt to install the application, I located the Adobe AIR log:
    [2013-11-29:20:21:14] Runtime Installer begin with version 3.9.0.1210 on Windows 7 x86
    [2013-11-29:20:21:14] Commandline is:
    [2013-11-29:20:21:14] Installed runtime (3.9.0.1210) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2013-11-29:20:21:18] Launching subprocess with commandline c:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Resources\Adobe AIR Updater -installupdatecheck
    [2013-11-29:20:21:18] Runtime Installer end with exit code 0
    [2013-11-29:20:21:37] Application Installer begin with version 3.9.0.1210 on Windows 7 x86
    [2013-11-29:20:21:37] Commandline is: "C:\Program Files (x86)\Mr Smooth\MrSmooth.1.0F.air"
    [2013-11-29:20:21:37] Installed runtime (3.9.0.1210) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2013-11-29:20:21:37] Got an unexpected fatal error while loading SWF: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="app:/Adobe AIR Application Installer.swf" errorID=0]
    [2013-11-29:20:21:58] Application Installer begin with version 3.9.0.1210 on Windows 7 x86
    [2013-11-29:20:21:58] Commandline is: "C:\Program Files (x86)\Mr Smooth\MrSmooth.1.0F.air"
    [2013-11-29:20:21:58] Installed runtime (3.9.0.1210) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2013-11-29:20:21:58] Got an unexpected fatal error while loading SWF: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="app:/Adobe AIR Application Installer.swf" errorID=0]
    [2013-11-29:20:22:03] Application Installer begin with version 3.9.0.1210 on Windows 7 x86
    [2013-11-29:20:22:03] Commandline is: "C:\Program Files (x86)\Mr Smooth\MrSmooth.1.0F.air"
    [2013-11-29:20:22:03] Installed runtime (3.9.0.1210) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2013-11-29:20:22:03] Got an unexpected fatal error while loading SWF: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="app:/Adobe AIR Application Installer.swf" errorID=0]

    Please note that I managed to resolve this myself by first of all deleting the Adobe AIR folder contained within C\Program Files (x86)\Common Files of my hard drive and then re-attempting the Adobe Air application installation. This immediately caused a prompting of an update to Adobe AIR, which I ran. It  seems that the Adobe AIR application installation package contained an older version of Adobe AIR than was already installed within the 'Common Files' folder, and this apparently led to the error (sorry, I cannot explain it any more technical terms than that!).

  • Incorrect functionality of Embedded tag in html page, displaying object on top of all layers of Adobe air application native window

    Title
    Incorrect functionality of embed tag in html loader for adobe air development
    Description
    Problem Description: If we had loaded youtube.com video url in a view stack and navigate to other index of stack or away from we UI screen within the same native window video or embeded tag of flash player or any other embed object will be displayed on top of all screens layer in same position of where the object should be placed in side of html loader only.
    Steps to Reproduce:
    1) go to http://get.straweb.com/StraWebBrowser/StraWebBrowser.air download and install
    2) load 2 tabs and in the 3 tab load video player of youtube.com which will a sample video
    before completing the load of 3 tab which trying to load video from youtube.com, navigate to other tabs 1 or 2 in few second once the flash player of youtube.com video player is load it will display in the current tab or UI screen.
    3) Try navigating to other tabs than youtube.com loaded tab you see the flash player is on top it stable.
    4) navigate to 3 tab and try to navigate to other tab you can observe that so how it will not show that flash player and only visible in that 3 tab which is fine.
    Actual Result: Embedded tag of html page displaying on top of all layers of Adobe air application native window
    Expected Result: Embedded tag of html page should only displayed in side htmlloader
    This you can replicate in any adobe air plugin update and on any Hardware and Environment.
    Applicable to all sdk versions of adobe air.

    Adobe Bugbase: Bug 3823839 Incorrect functionality of embed tag in html loader for adobe air development

Maybe you are looking for

  • Is Adobe Element 11 compatible with Windows 8.1?

    Is Adobe Element 11 compatible with Windows 8.1?

  • White screen on startup wNo apple logo?

    iMac running Lion was being used to browse the internet when the screen just went white.  These are the things I have tried, Resetting SMC, Resetting PRAM, it won't boot in Safe Mode, off install disks or the Lion Flash Drive.  The only thing that ha

  • Online game not working

    I am trying to play spades on msn games and it says it requires internet explorer 7 or later and is not working on safari or google chrome. Is there any way around this? If not how can I download IE 7 for free? After I click on the game and click pla

  • InDesign CS5 crashes when clicking on Edit menu or context menu

    I had this infuriating problem with InDesign CS4, found a few references to others having the same issue, but never any real solutions.  This problem seems to in InDesign CS5 as well. With a document open, if I click the Edit menu or right-click anyw

  • IPad no longer updates or installs apps

    My iPad 2 cannot install or update apps. Memory is plentiful and the iPad has never been jail broken. They just sit forever "waiting". Power off and on did not help. Anyone else experiencing this problem? Thanks for any help on this problem.