ADF Mobile: Access to the authentication context

Hello

My app uses against remote WLS basic authentication (cookie JSESSIONID is used to store the token).

A java bean, I would read the name of the authenticated user and store it in the local database. Methods and who or classes provide access to the authentication context?

JDeveloper 11.1.2.4 does not allow me to import something like oracle.idm.mobile. *.

Thank you very much

Daniel

It should be available as: #{securityContext.userName}

Try to watch this value once the user is connected and see if it is correctly set.

Rich.

Tags: Java

Similar Questions

  • ADF mobile: access to the preferences of the java application

    Hello

    Jdev 11.1.2.3.0 + mobile extension.

    Where can I find examples of code or documentation to access preferences (adfmf-application configured. XML) from java code?

    concerning
    Peter

    Here you go:
    http://docs.Oracle.com/CD/E35521_01/doc.111230e24475.pdf

  • ADF Mobile access protected web service with the user name and password

    With Jdev 11.1.2.4 (with the extension of the ADF Mobile) I am creating a data control that uses a SOAP web service. The web service is not protected by a policy of wss, but its point of endpoint URL is only protected by simple HTTP authentication (internal weblogic server is not accessible public.) We use an Apache server that is configured with a location that is a simple proxypass on url of the web service endpoint weblogic. This apache location apply simple HTTP authorization). I can invoke successfully the methods with parser HTTP by simply adding to the request HTTP header "authorization: xxxxxxxxxxxxxxxxxx base =" (where xxx = user name and encrypted password).

    In the mobile application of ADF, I used the DataControls.dcx-> window to connect to the Web Service change and provided the username and password to the URL of the endpoint. The problem is that after the deployment and execution of this application on the emulator (or the device itself), I get no data by the web service since with the HTTP 401 error http server responses. It seems that that the credentials are not deployed to the device, so while the application is running can not find them.

    I searched a lot and found a similar article (quite old) in the RTO by Frank Nimphius here access_protected_web_services_from_adf.htm

    Is there a way to do this, or if I'm missing the entire image?

    Thank you very much.

    Christos

    Check out blog Shay https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from

    or Andrejus http://andrejusb.blogspot.de/2012/11/adf-mobile-secured-web-service-access.html

    Timo

  • ADF mobile application deployment: the Android Dalvik (.dex) file does not exist. (oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)

    Nice day

    I use Jdeveloper 11.1.2.3.0

    I'm getting following error when deploying my first app on the android emulator, please help me solve this problem. The exception log is the:

    [10: 50:12] update Android profile dependencies with FAR profiles created from application projects...

    [10: 50:12]-deployment began.  ----

    [10: 50:12] the target platform's (Android).

    [10: 50:12] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive2."

    [10: 50:12] check the State of the Android Debug Bridge server...

    [10: 50:17] Server Android Debug Bridge started.

    [10: 50:17] check a single Android emulator is online and connected to the ADB server...

    [10: 50:17] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive2."

    [10: 50:17] analysis of the dependence running...

    [10: 50:17] building...

    [10: 50:17] deployment of 3 profiles...

    [10: 50:17] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar

    [10: 50:18] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar

    [10: 50:18] start preparing the package...

    [10: 50:18] check the Application Controller project exists...

    [10: 50:18] checking dependencies of applications...

    [10: 50:18] Validation of the application XML files...

    [10: 50:18] Validation of the XML files in the ApplicationController project...

    [10: 50:18] Validation of the XML files in the ViewController project...

    [10: 50:18] copy of FARs in the application of the Mobile ADF framework...

    [10: 50:18] far from the source of the copy: ViewController...

    [10: 50:18] copy by far the source: ApplicationController...

    [10: 50:18] copy of model Android...

    [10: 50:48] copy of the framework resource files...

    [10: 50:48] copy of resource files java framework...

    [10: 50:57] copy of the common javascript files...

    [10: 51:02] deployment of counting files...

    [10: 51:02] copy of the application image files...

    [10: 51:02] copy of the ADF Mobile configuration files...

    [10: 51:02] .adf files...

    [10: 51:03] copy of file security related to the application of the Mobile ADF framework...

    [10: 51:03] Creation of preferences Android XML files...

    [10: 51:03] creating AndroidManifest.xml file...

    [10: 51:03] Creation of unsigned Android application file...

    [10: 51:31] compile the file of the Android resource identifier...

    [10: 51:33] create file classes.dex Android since the class files...

    [10: 51:33] update of Android application file not signed with content file and .adf DEX...

    [10: 51:33] Server Android Debug bridge closure...

    [10: 51:33] undeployment.

    [10: 51:33] - incomplete deployment.

    [10: 51:33] the Android Dalvik (.dex) file does not exist. (oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)

    Hello

    I found the answer to this error, it's like actually had reinstalled Studio Android, whereby a new directory has been created with the software, called SDK as sdk1. And in my tools-> preferences, path of the plate-shape and tools platform was given as the sdk (old directory). Now, I've updated the path in the new directory as sdk1 and it works fine.

    Best regards,

    Julien

  • ADF Mobile | to view the results in a table


    Hi all

    I use Jdeveloper with ADF Mobile 11.1.2.4.39.64.62 extensions 11.1.2.4

    I must displya quesry results in the form of a table (I'm developing of application for tablets and iPads).

    I don't see any compont to Datacontrols table to remove it as a table on page amx.

    Is it possible that I can display the data in a table in ADF Mobile?

    Help, please.

    Thank you

    Vieira

    Hi Vinay,

    Yes, I understand that the table showing in the window is not the best, but we develop this for the cushions and with highest 7-inch screen tablets.

    I am able to achieve by droping inside the Table list item > row > component cell Format.

    Don't you see the disadvantages of this approach?

    Thank you

    Vieira

  • New guideline of Apple cannot allow ADF Mobile to publish the application in the store in February

    Hi guys,.

    I saw a new rules that sent to the IOS Developer any delay to February 1, 2014 for submission apply new/updated App Store must generate in XCode5 and optimized for iOS7 SDK

    And the current version of the ADF doesn't support or XCode 5 and iOS Mobile 7 SDK.

    Then my current app in the App Store will be a risk with us because we are planning to update the application in the next phase in this month of February.

    So, please fix as soon as possible.

    Ref: https://developer.apple.com/news/

    Hello

    just as an fyi: we are currently working on a new game Patch for ADF Mobile 11.1.2.4 which also addresses the issue of XCODE. Beside that, Timo is correct that the RTO does not help fixing bugs because it is only a forum for communication and assistance

    Frank

  • ADF Mobile: connect with the web application

    Hello

    I'm starting the age of mobile application. (my version of jdeveloper is version 11g 2)...

    I need to know is easy to create applications mobile adf in the ADF web application?

    With regard to this demo:- http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADFMobile/adfmobile.htm how can I adopt for my needs?

    My web application is Version 11.1.2.2.0. So without re-creating this application in higher version (Version 11.1.2.3.0), can't do Mobile App?

    hopping all coordinated to solve my problem...

    Thank you.

    Sorry for the late reply. The ADF webapplication can be made in any version of JDev, since it is just a web service 'plain '. ADF Mobile is supported only 11.1.2.3 (or), but they (the web service and mobile application) do not have to be developed using the same version of JDev.

  • ADF Mobile: What is the AmxAccessorIteratorBinding line item?

    I can get the iterator, but the methods give no idea.

    What I'll throw it AmxAccessorIteratorBinding.getCurrentRow or BasicIterator.getCurrentRow?

    None Returns a specific type, all are subject.

    When I capture in propertyListener, it's the same...

    < amx:setPropertyListener from = "#{bindings.srvIterator.currentRow} '"
    to = "#{pageFlowScope.CurrentRow}" type = "action" / > "

    Any ideas? What is the exact type of throw a line item?

    I'm not 100%, I understand your problem, but that's what you're looking for?
    http://adf4beginners.blogspot.be/2013/01/ADF-mobile-how-to-iterate-over-all-rows.html

  • ADF Mobile Page with the data control of Web Service not showing latest results

    Hello

    I developed a simple mobile application of ADF. It has two functions members and subscriptions. These two pages are part of my Taskflow. On the members page I show all members in a list by using the Web Service method data Find command. In the list item have a listener property Set where I'm storing MemberId in a variable of pageFlowScope for action. On the subscription page, I have a bar graph that gets the data with the help of a Find method in control of data to the Web Service. The find method is based on a view created criteria which has a member ID of input parameter. in the model of ADFBC project. I connected the variable using the AMX page binding. The variable is being levied on the pageFlowScope variable.

    The page displays the chart first to a member. And shows the same graph for the other members. I printed the memberId variable and it shows the value of the respective members. But the cards are not get updated every time I select new Member.

    I use JDeveloper 11.1.2.4.0.

    Any suggestions?

    Thank you

    Mehabub

    Go to the Connections tab, and then click the Green plus sign on the central section - you need to add a 'invokeAction. Give it a name, and then select the iterator that built the table, and that's all you should have to do. The invokeAction fires whenever you visit the page and should update the list.

    Rich,

  • Definition of user access to the specific context.

    Hi experts,

    I have a requitement

    We have some limitations for the user to access specific scenarios. But what is happening is that these users can able to run scenarios in any CONTEXT.

    If we want to restirict the user to access a specific context, how can we do?

    Please advice...

    concerned,
    K

    Hi K,

    Adding a few more points to the previous answer,

    user10439173 correct me if I'm wrong... :)

    1 duplicate the CONNECTION profile provided with ODI (Sunopsis) and rename the copy as MY NG CONNECT.
    2. in the new MY NG CONNECT profile, for the purpose of 'Context', on the ' * view * ""Definition"of the method tab, uncheck"class Privilege ".
    3. assign the new profile MY NG CONNECT to targeted users ODI (Sunopsis).
    4 create/update the user with this profile. Finally, drag & drop on each user name, the contexts to which access must be allowed (since the topology Manager).

    Thank you
    G

  • Photo of ADF Mobile get has the error

    Hello

    brush in my use of the mobile app

    and to deploy to the device

    I run my application when get photo and back to see the picture of my mobile has been lock (blocking) and not something working

    I test on different mobile devices

    I download sample ImageServerUpload

    This example when mobile brush and then upload to the remote server

    I test in emulator is working

    but in the mobile do not work it when take photo after the fact, it

  • Getting error while deploying ADF Mobile App in the android emulator

    Hi all
    I'm getting following error when the mobile deployment app in the android... emulator I went through google search and I did all the steps as follows...


    1 keytool - genkey - v - keystore debug.keystore - alias androiddebugkey - keyalg RSA - keysize 2048 - validity 10000

    I gave the password, last name, organization, State and country
    2 jarsigner - sigalg MD5withRSA - digestalg SHA1-verbose - keystore /Users/Admin/.android/debug.keystore C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1/generalmobileapp.apk
    3 / e - platform-tools/adb install - r C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1/generalmobileapp.apk

    After the above step... I got the SUCCESS message (while performing the steps above in the command prompt).

    Even after this... I get the same error while deploying my application using jdeveloper in the android emulator...


    ERROR:

    [09: 40:02] failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
    [09: 40:02]
    [09: 40:02] command-line execution failed (return code: 0)
    [09: 40:02] run command line: 'E:\android\adt-bundle-windows-x86_64\sdk\platform-tools\adb' EI setup - r "C:\JDeveloper\mywork\GeneralMobileApp\deploy\ANDROID_MOBILE_NATIVE_archive1\generalmobileapp.apk".
    [09: 40:02] undeployment.
    [09: 40:02] - incomplete deployment.
    [09: 40:02] deployment failed due to one or more errors returned by "E:\android\adt-bundle-windows-x86_64\sdk\platform-tools\adb". What follows is a summary of the returned error:
    Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]


    Kind regards
    Nani

    Published by: 962874 on January 12, 2013 06:46

    The emulator can run out of space for applications - so if you have other applications that are deployed to the emulator remove them and then try again.
    Other options here:
    http://StackOverflow.com/questions/2239330/how-to-increase-storage-for-Android-emulator-install-failed-insufficient-Stora

  • ADF Mobile - by increasing the height of the footer

    Hi all

    Is the fixed height of the footer in amx?

    I want to put a listview inside the footer with three rows, but I see only one line preview.

    How can I increase the height of the footer?

    Or y at - it another way to remove the contents at the bottom of my screen?

    Help, please.

    Kind regards

    Deepak

    You should be able to do this in a .css file with:

    . AMX-panelPage-footer {height: 200px ;}}

    Rich.

  • Play Google store does not accept the ADF Mobile apps for tablets

    My ADF Mobile app is published on the Google game, but he says that the app is not compatible with the tablets, for the following reasons:

    1. properly target the Android Versions

    I fixed this by going into the properties of the Application > deployment > Android profile > edit > Options Android > change target SDK API level from 9 to 14.

    Note to the ADF Mobile Team: I recommend that you change the default target SDK API level from 9 to a higher level (Google recommends 14 today).

    2. correctly report physical dependencies

    I understand the problem, but I need help to find a good solution.

    The problem is, when ADF Mobile deploys on the package, it creates an AndroidManifest.xml file and since my application uses SMS, it necessarily adds a < permission > element for telephony.  In general, approval will be "implies" that phone is a "requirement of functionality of the material" unless we also add an element of <>uses feature corresponding with android: required = "false".  However, ADF Mobile not set the < uses > function in the AndroidManifest.xml.

    Does anyone know a good solution for this?  (I searched for a way to configure this in ADF Mobile and in the docs, but it found nothing. "And I can't manually change the AndroidManifest.xml because ADF Mobile it creates in the middle of the deployment process).

    3. take advantage of the extra screen available on shelf area

    I have no start troubleshooting this in detail yet, but I'm curious to know how the Google game store, determines exactly?

    Anyway, if anyone can help me with #2, I would be grateful.  Thank you!

    Patrick

    Edit: Title changed this message, because I believe it is a more serious current problem.  Will respond with more information soon.

    Hi, Patrick, recently Google game made a number of changes, so it is much stricter in terms of supported Android.  Successfully, we applied workarounds and found the combination that seems to work for Google play.  Here are the details based on your questions:

    (1) the level of the API should not matter as long as it's 9 or above - 9 is the current default value.  Nothing specific in ADF Mobile that requires the level more high API.  However, if you are interested you should limit your application to 4.x devices, you can set the minimum and target API level accordingly to assert that.

    (2) by default, ADF Mobile says all the permissions of the device which may potentially be required by the framework.  This is why, for example, even if the application accesses a camera, the AndroidManifest.xml file will still contain references to the permissions of the camera.  Possibility to choose the correct hardware permissions selectively is planned for the next version of Mobile of the ADF.  In the meantime, you can change the AndroidManifest.xml file template in an extension of the ADF Mobile as the workaround.

    (3) Google game uses the element of "Supports the screen" in the file AndroidManifest.xml to determine what factors shape/devices are supported.  Summary of form factors supported and densities are described here: supporting multiple screens | Android developers.  ADF Mobile supports the display of different density already.  In what concerns the size of the screen, you must add the element "supports the screen" in the model of manifest file xml for the size of the screen that you want to support.  For example, if you want to add in support of all devices:

    Android: normalScreens = 'true '.

    Android: largeScreens = "true".

    Android: xlargeScreens = "true" / >

    The Android site would give you definitions of what mean these sizes.

    Finally, here are the instructions on changing the template AndroidManifest.xml:

    -Access file /JDeveloper/JDev/Extensions/oracle.adf.mobile/Android/Oracle_ADFmf_Framework.zip

    -Make a backup copy of the zip file

    -Unzip the file, which would be to extract all files in a directory of 'framework '.

    -Navigate to the framework/template/AndroidManifest.template.xml file

    -Use a text editor to change the permissions of the device, as well as the addition of the screen element supports as indicated above.

    -Zip up the framework directory and name the file zip as Oracle_ADFmf_Framework.zip, replacing the old.  Please make sure that the zip file has the same directory structure exactly as before.

    -In JDeveloper, before you deploy the application, please do a "Clean All" to clean up all the old objects deployment.

    -Deploy the application - the application should now be visible for tablets, as well as with adequate permissions.

    -Download the application on Google game - no further action is necessary in the game of Google around form factors supported and the permissions of the device.

    Now the Android deployment process does not additional validation for the device permissions are actually necessary, therefore, to ensure that these are properly defined.

    I'll also cross post this on the blog of the ADF Mobile team.

    Thank you

    Joe Huang

  • I want to get the path to download forlder in ADF Mobile

    I use adf mobile to build the mobile sample with jdeveloper 11.1.2.4

    and I want to write a file to download the mobile phone but I do not know the path of the download folder as it differs from one mobile phone to another

    can someone give me a method to return the path to the download folder.

    Hello

    not sure what is the download folder, but I guess you download files and search for were to store. See:

    Application container API - 11 g Release 2 (11.1.2.4.0)

    AdfmfJavaUtilities (Oracle Fusion Middleware Java QAnywhere for Oracle ADF Mobile)

    Frank

Maybe you are looking for

  • Warning quota IMAP but I have cleaned already and its use is very low

    I get a warning of Quota IMAP (101%) on one of my gmail email accounts.I read the articles on cleaning and avoid Quota IMAP problems and have done what I can delete and move e-mails.But my space usage report shows that I use only 36MB for this accoun

  • Move to OSX 10.11 (El Capitan)?

    I am currently using OS X 10.10.5 and thought to install 10.11(El Capitan) on my new iMac, however, I have the following problems: 1. on the app store comments 41 people gave 10.11.5 (the latest version?) a star which is the highest rating, 5 stars a

  • Satellite M40X-192: how much of MB's grafic card?

    Hello I use a Satellite M40x-192 and would like to know if the laptop has a 32 MB 3D graphics card? Someone knows this, or can give me a hint how can I know? Thansks for your help. Marcel

  • Help upgrade the RAM HP Pavilion n208tx

    Hello I have a model of HP Pavilion n208tx with one slot containing 4 GB 1600 MHz DDR3L SDRAM. I am the need for India to upgrade my system to 12 GB total RAM. Since I'm totally new to this sort of thing I need help regarding this. As I said, I want

  • Color LaserJet Pro MFPM476 dw: hp color laserjet mfp MFP M476 dw pro

    I get a Message open the front door.  The toner cartridges are brand new HP toner cartridges.  I have it turned on and on and unplugged plugged.  The message does not go far.