Flex client side authorization

Hi I am creating a flex client application with J2EE server.
I want to implement authorization of logged in user based on his
role, in flex client side.
I can implment authorization of resource access like calling
destinations, server resources etc. :) But i want to authorize user
to access some perticular component, say in current visible state
eg. I have two users in my application with user roles
ROLE_ADMIN and ROLE_USER. What i want is ROLE_ADMN user should be
able to see all components in current view state whereas ROLE_USER
user should not see update report panel. Now this is at low lever,
i can easily do it with if ... else for checking users role. But if
we go on web application level, the scope is larger and we have
lots of authorization components there. is there anything in flex
sdk like secuirty taglib we have for spring?

thanks for the reply. but my concern is that might run into
unmanageable code as i have thousands of components on application
and lots of user roles with distinct access ... it would be
something like
visible = ({UserAuth.ROLE_ADMIN || UserAuth.ROLE1 ||
UserAuth.ROLE2 || UserAuth.ROLE3 })
or
visible = ({UserAuth.ROLE_ADMIN || UserAuth.ROLE3 ||
UserAuth.ROLE4 })

Similar Messages

  • I need user management system in PHP recommendations to work with Flex client side

    Hi All,
    I have a very big project that involves PHP server side (That i have to develop) and Flex client side. I was wondering it there is a ready made PHP user management system that i can use to provide me:
    - user login/logout
    - forgot my password functionality
    - register (better with captcha)
    Does someone can recommend this kind of php system?

    Hi, guys
    Free and open source PHP User Management Scripts. These scripts  provide a solution of creating a membership system of a website.
    Some PHP user management scripts listed on PHPKode.com. which you can choose the right php user management to meet your demands!
    Hopefully can help you!
    Best regards!
    Anny

  • CF Flash Remoting (Ex 9 for CF) Missing Flex (Client-Side) Solution File

    Looks like there is no Flex solution file for Ex9 for CF,
    just the server-side code.
    As a workaround, you can download the LCDS solution, and make
    a modification to make it work with CF Flash Remoting.
    Replace ReservationForm.mxml's <mx:RemoteObject> tag
    with the following:

    Awesome

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • WebDynPro ABAP in adobe flex client

    Hi,
    I have some WebDynPro ABAP applications.
    I want to run them in adobe flex client as rendering medium.
    Is it possible.
    Best Regards
    Sid

    >
    Robert Gaertner wrote:
    > Good to know. That kinda sounds as if the webdynpro app itself will not have to be modified at all. Does this apply to CE webdynpro only or will be NW7.0 webdynpro apps supported the same way? How's the xBCML code generated? Will the CE be an requirement?
    That is correct - the apps do not have to be modified in any way.  Web Dynpro was designed years ago with this kind of future in mind.  The application rendering is separated in layers. One of those layers is the UI rendering itself.  It was strickly designed so that we could "plug-in" new rendering engines over time. 
    So what technically happens is nice bit of OO magic.  There are multiple implementations of each UI elment rendering class, but they all have the same interface.  That way the rendering engine can determine what kind of client it is building the UI for at runtime and substitute a different rendering engine by calling the correct subclass.  The first rendering engine that SAP supplied for Web Dynpro is what is called the Unified Renderer.  This is what produces the HTML and JavaScript UI that we run today in the browser.  In NW 7.0 EnhP1 ABAP and NW 7.1 CE EnhP1 we have actually rewritten this Unified Renderer completely - improving performance and adding in more AJAX functionality.  So this same plug-in rendering technology can be used to seemlessly overhaul the HTML renderer as well. 
    With this plug-in rendering technology we were able to build an XML based renderer.  This XML formatted output is what we call xBCML (Extensible Business Client Markup Language).  Actually if you compare the two rendering engines it is much easier to build an XML description of the UI then it is to build HTML/JavaScript. This nice, neutral XML description of the UI elements and their properties can then be sent to the client machine over HTTP/HTTPS and interpreted by different technologies.  We use this same XML format within a Flex, Silverlight, and .Net Client Renderer.  This is how SAP has built the Flex Client, Flash Islands, Silverlight Islands, and the NetWeaver Business Client Smart Client Renderer.
    On the ABAP side of the house for Web Dynpro we are bringing all of this new rendering technology to the 7.0 release via Enhancement Packages.  The dependency of the Business Suite to run on top of NetWeaver 7.0 is a pretty much a driving factor to make sure that new Web Dynpro technology for ABAP must make it into the 7.0 code line to be effective.
    The Java side is less clear.  We have really focused future enhancements to Java Web Dynpro within the 7.1 CE codeline.  Our current plans are to deliver this functionality to WD Java via CE  (some of it is already there in CE 7.1 and some will come later with CE 7.1 EnhP1). I would be a little suprised to see a backport effort to 7.0 Java given the focus on CE.  I realize that this leaves ESS/MSS in a strange location - so if there was customer demand around that application it might be the only thing to lead to a selective backport - but I certainly can't confirm that this will happen.

  • How do I get an XML file on the client side hard drive

    Is there a way to get XML files from a Flex form and get it
    to the hard drive on the client side? I realize Microsoft got
    impaled by allowing this sort of thing with ActiveX. We would like
    the app to be browser based but need XML files dropped off on the
    hard drive. There is an application running locally that needs to
    consume them. Can I run flex standalone without web services and
    still access the hard drive? Seems robust enough to do so.

    dadanas wrote:
    Hi Simcah, I have a similar problem. Have you found out any solution?
    thanks, dan
    You need to ask the printing service provider. Dealing with color totally depends on the printing process involved and of course the machines used.

  • BlazeDS and Flex Client Deployed on Different Servers

    Hi, I setup a BlazeDS AMF endpoint on a different server from the server where my Flex app is deployed. I get the following error from my Flex app when trying to use this endpoint:
       faultCode: Client.Error.MessageSend
       faultDetail: Channel.Security.Error error Error #2048 url: 'http://cafrfd1y5css50.itsdo.abc.com:7000/sfaflexservice/amf'
       faultString: Send failed
       rootCause:
           [ChannelFaultEvent
            faultCode="Channel.Security.Error"
            faultString="error"
            faultDetail="Error #2048 url: 'http://cafrfd1y5css50.itsdo.abc.com:7000/sfaflexservice/amf'"
            channelId="my-amf"
            type="channelFault"
            bubbles=false
            cancelable=false
            eventPhase=2]
    Btw, this setup works fine when my Flex app runs on AIR or as a Flex app (in a browser) from Flex Builder.
    This looks like a crossdomain policy issue, so I setup a crossdomain.xml file on the BlazeDS server. When I point my browser to http://cafrfd1y5css50.itsdo.abc.com:7000/crossdomain.xml, I see the following:
        <?xml version="1.0" encoding="UTF-8" ?>
        <cross-domain-policy>
           <allow-access-from domain="*.abc.com" />
        </cross-domain-policy>
    Looks good, but I get the same error...
    So I monitored the interaction with Fiddler to see if the crossdomain.xml file is loaded. It is. When the service is activated, I see the following GET command in Fiddler:
         GET /crossdomain.xml HTTP/1.1
         Host: cafrfd1y5css50.itsdo.abc.com:7000
    And the response contains the contents of the crossdomain.xml file, so I don't know what's going on.
    My configuration is:
    -- Browser: IE7 or FireFox v3.5 with Flash Player v10.
    -- Flex app uses the 3.4 SDK and is deployed on a Tomcat v6 server.
    -- BlazeDS server is WebLogic v9.
    -- Endpoint definition from services-config.xml on the BlazeDS server is:
       <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
         <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
       </channel-definition>
    -- Endpoint in the Flex app is defined as follows:
       <channel alias="FlexBean">
          <channel_def>my-amf</channel_def>
          <endpoint>http://cafrfd1y5css50.itsdo.abc.com:7000/sfaflexservice/amf</endpoint>
          <destination>FlexService</destination>
       </channel>
    Any ideas would be much appreciated...
    thanks,
    matt

    Thanks for the reply, Alex.
    I tried setting the domain in the crossdomain policy file to "*", but I got the same error, so I turned on client side logging. The error in the log was:
    Error: [strict] Ignoring policy file at http://cafrfd1y5css50.itsdo.abc.com:7000/crossdomain.xml due to missing Content-Type.
    See http://www.adobe.com/go/strict_policy_files to fix this problem.
    Using Fiddler, I checked the content-type that WebLogic was using for crossdomain.xml. Much to my surprise, there wasn't a content-type in the response, only content-length. So in the web.xml file for this application, I added the following:
    <mime-mapping>
        <extension>xml</extension>
        <mime-type>text/xml</mime-type>
    </mime-mapping>
    Now, the crossdomain.xml file is served with a content-type of "text/xml", and the call to the BlazeDS endpoint works.
    Thanks for steering me in the right direction, Alex.
    cheers!
    matt

  • Client side transaction support?

    Hi,
    I am curious if anyone knows of any client side AS3/flex
    transaction library out there. Specifically client side, not
    anything server side.
    For example I have one operation that does 2 distinct
    operations, if any one of them fails I need to rollback both of
    them. An example would be a class that is responsible for modifying
    a file on disk and then updating a local database on the client
    (regardless of implementation sqllite, xml, textfile etc). Should
    either of these operations fail I would like to rollback the
    file/db to it's original state.
    Does anyone know of any client side AS3 transaction library
    that defines interfaces for such a framework? Thanks!

    The problem is that NTLM is a Microsoft proprietary authentication mechanism.
    I believe there are some products in the JavaMail Third Party Products page
    that support NTLM.
    http://java.sun.com/products/javamail/Third_Party.html

  • [svn] 4815: Feature: Client side load balancing.

    Revision: 4815
    Author: [email protected]
    Date: 2009-02-03 10:47:12 -0800 (Tue, 03 Feb 2009)
    Log Message:
    Feature: Client side load balancing.
    QA: Yes
    Doc: Yes
    Checkintests: Pass
    Reviewer: Seth
    Details: Added client side code for client side load balancing as described in 2 tier messaging spec.
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/Channel.as
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/config/ServerConfig.as

    Hi,
    please find here an Whitepaper with the information
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-11gr2-client-failover-173305.pdf
    kind regards

  • [svn] 4814: Feature: Client side load balancing.

    Revision: 4814
    Author: [email protected]
    Date: 2009-02-03 10:44:03 -0800 (Tue, 03 Feb 2009)
    Log Message:
    Feature: Client side load balancing.
    QA: Yes
    Doc: Yes
    Checkintests: Pass
    Details: Added server side code for client side load balancing as described in 2 tier messaging spec.
    Modified Paths:
    blazeds/trunk/modules/common/src/flex/messaging/config/ClientConfigurationParser.java
    blazeds/trunk/modules/common/src/flex/messaging/config/ConfigurationConstants.java
    blazeds/trunk/modules/common/src/flex/messaging/config/ServicesDependencies.java
    blazeds/trunk/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.java

    Hi,
    please find here an Whitepaper with the information
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-11gr2-client-failover-173305.pdf
    kind regards

  • Generate PDF from VC without using BI-JAVA or PDF convertor on client side

    Hi there
    I need to generate a PDF from Visual Composer
    a pdf final result,  generated by several BAPIS, several tables , logo, static text, etc
    but I do not want to use the two solutions below described.
    I want to use a component or something installed on the server, to facilitate user's life.
    Is there any PDF convertor in R3? I have to install an Adobe Component?  other idea?
    a. In this thread ilustrates how to generate a PDF in a very simple way using a print function
    and a PDF convertor previously installed.
    Re: How to export from VC a bapi output table to a PDF file
    b. I have read another solution that uses the PCD location of the Web Analizar (BI-Java).
    Thanks, Alex Market

    Again, NO BI-JAVA. NO PDF convertor on client side.
    My idea is to create a Flex component with the PDF convert library.
    Something like this,
    http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zinc-or-air-flex-or-flash/
    Then embed it to the Visual Composer
    like Amir Mimran show us in this  "How to guide"
    Re: NEW: Flash Component Consumption in Visual Composer 7.01 SP5
    The problem that I see is
    our installation is 7.0 SP18, we have to upgrade to 7.01 SP5 at least,
    the Flash Components feature is available on 7.01 SP5 (NetWeaver 2004s Enhancement Pack 1, SP5)
    and more important, currently, this functionaily is only available in Windows Platform.
    Unix flatform will be supported from ehp1 sp6, according to this post
    VC model including flash component is not visible in run-time.
    regards, Alex

  • How can we execute an *.exe that is present on the client side from Server.

    Hi
    My application users would be having their own exe's installed on their machines. Using a wizard thay would be providing the path where the executable would reside on their machine and this information will be store in our data base. So how can we provide the user the capability of executing the exe from my application that is a server based.
    Thank you in advance.

    basically... drop the requirement as it is simply impossible. Whatever the executable is doing, perhaps you can mimic it in an applet, javafx, flash, silverlight, flex or whatever similar platform you want to use. Doing anything to or with that which resides on the client side is off limits to you and with very good reasons. Just think about the horrible things you could do to a computer if you had access to it through a simple webpage!

  • Flex client can SEND but not RECEIVE messages from BlazeDS

    Hi there,
    I built a sample chat application that should be able to send/receive messages from a JMS topic. However, I am only able to SEND messages, I am not able to receive them. Any advice/suggestions would be GREATLY appreciated as I am seriously stuck.
    My setup:
    - BlazeDS Turnkey
    - FioranoMQ JMS provider on remote machine
    What I know:
    - My MXML code is good. I am able to use the exact same code and get both subscribing and publishing working when I use 'ActiveMQ' instead of 'FioranoMQ' as my JMS provider
    - FioranoMQ JMS provider is working fine, my test Java clients can both subscribe and publish to the same JMS topic that the Flex app uses
    - Publishing from my Flex app is working because my Java client is able to receive messages from the same topic whenever Flex messages are sent to FioranoMQ
    - My Flex app is supposedly 'subscribed' to and 'connected' to the correct (streaming-amf) channel. I know this because the MXML 'Consumer' object's "subscribed" and "connected" properties are true and no fault events appear whenever I issue "consumer.subscribe()" in my Flex app.
    Sample debug console log:
    (I tried sending 8 JMS messages from my Java client code to the 'mytopic' topic that my Flex app is using. The end of the log shows that SOMETHING is happening after sending these messages, but notice the actual 'message' is never streamed even in the log!)
    [BlazeDS] 01/27/2009 FlexSession created with id '72D3E6EED1364AD328F342F1AF59FF
    69' for an Http-based client connection.
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/1)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
    operation = 5
    correlationId = ""
    clientId = null
    timestamp = 0
    body = (Object #1)
    headers = (Object #2)
    DSMessagingVersion = 1
    DSId = "nil"
    timeToLive = 0
    destination = ""
    messageId = "AECE3D84-789C-29B7-3413-197C7A48A7D2"
    [BlazeDS] 01/27/2009 Serializing AMF/HTTP response
    Version: 3
    (Message #0 targetURI=/1/onResult, responseURI=)
    (Externalizable Object #0 'DSK')
    (Object #1)
    DSMessagingVersion = 1.0
    DSId = "ED38E721-2609-CF34-62A2-28D918C4BB8F"
    1.233083202182E12
    (Byte Array #2, Length 16)
    (Byte Array #3, Length 16)
    (Byte Array #4, Length 16)
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Endpoint with id 'flextest-streaming-amf' is streaming mess
    age: Flex Message (flex.messaging.messages.AcknowledgeMessage)
    clientId = null
    correlationId = open
    destination = null
    messageId = ED38E793-E519-95BB-3E4C-1A7E8D716951
    timestamp = 1233083202229
    timeToLive = 0
    body = ED38E793-E50A-2500-E2F5-7525401FD8CE
    [BlazeDS] 01/27/2009 Number of streaming clients for FlexSession with id '72D3E6
    EED1364AD328F342F1AF59FF69' is 1.
    [BlazeDS] 01/27/2009 Number of streaming clients for endpoint with id 'flextest-
    streaming-amf' is 1.
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/2)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
    operation = 0
    correlationId = ""
    clientId = null
    timestamp = 0
    body = (Object #1)
    headers = (Object #2)
    DSEndpoint = "flextest-streaming-amf"
    DSId = "ED38E721-2609-CF34-62A2-28D918C4BB8F"
    timeToLive = 0
    destination = "flextest-message-destination"
    messageId = "5ED8AAA4-BDA8-C8E4-D85B-197C7AC5E83A"
    [BlazeDS] 01/27/2009 JMS consumer for JMS destination 'mytopic' is starting.
    [BlazeDS] 01/27/2009 JMS consumer for JMS destination 'mytopic' is

    Hi Alex, thanks for your advice. I tried reading the client-side logs, but it just physically shows what I was saying earlier - that the consumer is connected and subscribed, but no messages are coming through to it.
    I've attached the output of the 'flashlog.txt' file. For the particular session shown, the flex application was sent 8 JMS messages, but as you can see nothing got through. I put a 'trace' message in the message handler function (for my consumer object), but it never gets called.
    'E2513351-75DA-0837-7263-3807B91D9630' consumer set destination to 'flextest-message-destination'.
    '7D784A40-DBBB-71F1-4029-3807B91D45E3' producer set destination to 'flextest-message-destination'.
    'consumer' consumer subscribe.
    'flextest-streaming-amf' channel endpoint set to http://localhost:8400/FLEXTEST/msgbroker/streaming-amf
    'flextest-streaming-amf' channel settings are:
    'flextest-streaming-amf' pinging endpoint.
    'flextest-streaming-amf' channel is connected.
    'flextest-streaming-amf' channel sending message:
    (mx.messaging.messages::CommandMessage)
      body=(Object)#0
      clientId=(null)
      correlationId=""
      destination="flextest-message-destination"
      headers=(Object)#0
      messageId="8A592005-3C8A-4C6C-B074-380857710C00"
      operation="subscribe"
      timeToLive=0
      timestamp=0
    'consumer' consumer connected.
    'consumer' consumer acknowledge for subscribe. Client id '37CC5DED-A019-7110-3C89-A9926835103E' new timestamp 1233595684954
    'consumer' consumer acknowledge of '8A592005-3C8A-4C6C-B074-380857710C00'.
    Seems to me there can only be two explanations: either my BlazeDS configuration is incorrect (which is unlikely given that everything works if I use a ActiveMQ as my JMS provider with only trivial changes to my configuration), or there is some bug within BlazeDS that is preventing it from working properly with FioranoMQ. What do you think?

  • Capturing flex client's subscribe, unsubscribe event on server.

    Hi
    In my app, I have Flex client Consumer subscribed to BlazeDS server. Server allocates some resources when client subscribes. Server needs to free up resources when client Consumer unsubscribes. I am not able to figure out the way to hookup in those events. Please tell me if there is any listener (or any other mechanism) available on server side.

    Hi Jitendra,
    Take a look at the code example for the MyBlazeDSListener in this thread on the forums.
    http://www.adobeforums.com/webx/.3c064925/4
    A MessageClient is created when a Flex client Consumer subscribes to a destination on the server and is destroyed when the Consumer unsubscribes, so to tell when the client subscribes and unsubscribes you can use a MessageClientListener.
    Hope that helps.
    -Alex

  • Client side caching

    Hi all,
    I wonder how client side caching (in memory) would work with BlazeDS.
    There was a project called FAST that would support client side caching for Remoting:
    http://www.adobe.com/devnet/flex/articles/fast_userguide.html, but this doesn't seem to work for Flex 3.
    Do I have to invent my own caching mechanism?
    Without client side caching support I don't see how an application build on BlazeDS remoting would ever scale to many users.
    Regards,
    Markus

    Hi Markus. I took a look at that FAST project. There isn't anything like that in BlazeDS currently. It probably wouldn't be too hard to port that code to make it work with Flex 3 but it's usefulness looks somewhat limited. There doesn't look to be any way to timeout a request that has been cached for example which I think most people would want. If you think this is something that would be useful you can log an enhancement request in Jira.
    http://bugs.adobe.com/jira/browse/BLZ
    As to your point about not seeing how an application built on BlazeDS remoting would scale, I think it's a fairly common practice to not expose functions to the end user that directly call backend services. It's pretty straightforward, for example, to request some data when the application loads and then refresh the data at some interval. You don't need a caching API to do this.
    -Alex

Maybe you are looking for

  • Sony kv-32510hs and apple tv

    Has anybody out there have this combination?? I want to buy apple tv but don't want to find out that I have to send it back because aple tv will not work with this model. I can use either DMI or component.

  • Problem when joining the domain MDT 2012

    Windows 2008 R2, MDT 2012 Update 1 Hi, CustomSettings.ini is configured to create computers in different OU's depending on their gateway. Works well.<o:p></o:p> But when the computer exists it won't move the computer to the right OU. How can I make i

  • STO- committed quantity

    Hi All, While we are creating the PO in STO process from 1000 plant to 2000 plant with reference pruchase requisition in sales order, the committed quantity is not coming. These both plants are under the same company code. But plant 1000 is procuring

  • OAS 4.0.8.1 On RH62 with JDK118

    Hi I recieve an error while starting owsctl start -l www Error: A failure occurred ( Permission denied ) when assigning a port ( domain: s4life, address: 0.0.0.0, port: 80 ). Error: Failed to start the server. Error: The server could not initialize I

  • Image Slider with scrollbar

    I have made my own scrollbar with a Constrain to Line Behaviour on my scroller. The scroll bar has a specific length and on this same length from above, i want a "thumbnails gallery" image, where you click on thumbnail and it maximizes on a different