SAPUI5 and BPM: User authentification

Hi there,
my UI5 application to claim and complete BPM tasks works now.
The only remaining issue I have is about user authentification.
To secure my UI5 application, I've modified web.xml and web-j2ee-engine.xml int the following way (according to this blog):
web.xml
<security-constraint>
     <web-resource-collection>
          <web-resource-name>ApproveRequest</web-resource-name>
          <url-pattern>/*</url-pattern>
     </web-resource-collection>
     <auth-constraint>
          <role-name>ApprovalWorkflow</role-name>
     </auth-constraint>
</security-constraint>
<login-config>
     <auth-method>FORM</auth-method>
     <realm-name>ApprovalWorkflow</realm-name>
</login-config>
<security-role>
     <role-name>ApprovalWorkflow</role-name>
</security-role>
web-j2ee-engine.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:noNamespaceSchemaLocation="web-j2ee-engine.xsd">
     <spec-version>2.4</spec-version>
     <security-role-map>
     <role-name>ApprovalWorkflow</role-name>
     <server-role-name>Administrator</server-role-name>
     </security-role-map>
</web-j2ee-engine>
My user is coming from Active Directory and assigned to the UME role "Administrator".
If I open my UI5 application, the standard SAP login form is displayed.
But after successful login my application fails when the oData model is created:
var oDataModel = new sap.ui.model.odata.ODataModel(taskDataSvcURL, true);
In the debugger I get the following error message (and nothing in NWA logs):
Uncaught TypeError: Cannot read property 'dataServices' of undefined
If I'm logged into to some SAP standard application (NWA, Portal) before calling my application, everything's working fine.
Thanks in advance.
Best regards,
Thorsten.

Hi,
I solved it myself with the help of our basic admin.
Go to "NWA->Configuration->Security->Authentification and Single Sign-On".
Then select "SAP-J2EE-Engine" and click on "Edit".
Search you SAPUI5 application and set "Used Template" to "Ticket"
Afterwards it works for me.

Similar Messages

  • How to internationalize BPM Notifications and the User Interfaces ?

    Hi masters.
    Could anyone say me the better way to internationalize, translate the texts of the BPM Notifications and Adobe Forms and WebDynpro user interfaces ?

    Hi Lehcim,
    Have a look at the src\bpmn folder of your process. For example if your process is called demoprocess, you'll find demoprocess.bpmn.xlf file there.
    If you open that file it should be opened with the S2X editor. Have a look at the Resource Text Tab, you'll find all the texts of your process there. That means e.g. Activity names etc. but also the Texts you have used in your Notification activities.
    Internationalisation works now like the aforementioned WebDynpro internationalisation.
    In short terms: you copy the xlf file, add the iso language code (e.b. demoprocess.bpmn_de.xlf), then open the new xlf file and translate the texts.
    Just post again if my explanation wasn't clear enough.
    Cheers, Marcel

  • Business Rules and BPM

    Anybody here knows the difference between Business Rules and BPM..
    We can do pretty much everything with a Business Rules Engine as we would do with BPM , then in which scenario should we use BPM and in which scenario should we use Business Rules Engine?
    Ofcourse Business Rules Engine has more complex set of rules than any BPM product in the market for .eg. ILOG Business Rules...

    BPM and a rules engine are different. Both are important, but they have different uses.
    Oracle BPM Studio is used by Business Analysts and Developers to model processes, integrate underlying components (including business rules) and develop user interfaces.
    There's an Engine that executes the processes that have been modeled. It sends the work item instances to the right person or persons with the right data when the work item reaches an interactive activity in the process. Similarly the Engine has invokes the underlying components specified in the process when the work item instance reaches an automatic activity.
    There's an out of the box Workspace runtime that lets end users manage and run their work item instances as they flow throughout the processes.
    We can business rules inside the processes, but one does not replace the other.
    Dan

  • Need SAP BPM User Guide/Manual/ Tutorial

    Hello  All
    We are looking for a user guide /user manual/ tutorial for BPM within CE72 , preferably  in a pdf format.
    Can you refer us to such a document(s)
    Many Thanks.

    Hi,
    Please look at this below links for BPM
    [About BPM|SAP NetWeaver Business Process Management Resource Center] and [Netweaver and BPM Concepts|Netweaver and BPM concepts;
    [SAP NetWeaver Composition Environment 7.2|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20d1fefa-ebf6-2c10-3eba-d12473683ff8?quicklink=index&overridelayout=true]
    [BPMu2013 End-to-End Process Implementation|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d07f3e88-554f-2b10-3cbf-ab8afea51b9f?quicklink=nw-bpm-info&overridelayout=true]
    Hope this helps!!
    Thanks & Regards
    Vijay K

  • Lock sys and system user

    Dear all,
    We have 10.2.0.4 on solaris 10.
    Currently we had I.T audit on our environment and auditor commented to lock sys and system user and use one user with any name (not oracle generic name) and grant him sys and system privilege and to use this user for admin purposes. is this right ?.. is this recommended ?
    Please advise

    Hello,
    I think it's not a right way to lock SYS.
    More over, if you connect as OS Administrator (root for Unix/linux) on the server and use
    OS Authentification then, you can connect on SYS AS SYSDBA anyway.
    So, in fact, it's not possible to lock out SYS even if you execute the following:
    ALTER USER SYS ACCOUNT LOCK;If you want to prevent access on SYS you should set a complex and long password and
    apply the same rule for the Administrator / root OS user.
    These passwords must be known by very few and well - identified people and written nowhere
    (in any files or scripts).
    More over, you should limit DBA roles to SYS and SYSTEM and remove this powerful Role
    from other Oracle Users.
    Then, you may enable session AUDIT so as to control the connexion on the database and,
    create a LOGON TRIGGER so as to check the login, workstation, program of the end users
    who connect to the database.
    On 10g, EM DBConsole shows an alert everytime a User is connected with SYS.
    Please, find enclosed, an interesting document written by Pete Finigan on this topic:
    http://www.insight.co.uk/files/presentations/Hacking%20and%20securing%20Oracle.pdf
    Hope this help.
    Best regards,
    Jean-Valentin

  • Portal WebService User Authentification error

    Hello all,
    I created a portal webservice similar to the one described in tutorial "Creating a Web Service in Enterprise Portal 6.0".
    When I tried to test it in Enterprise Portal Web Services Checker I got the error below:
    <b>The User Authentification is not correct to access to the Portal Service com.sap.portal.prt.soap.ContentService or the service was not found.</b>
    I already added group Everyone to my service in Portal Permissions and it still does not work.
    I read weblogs below but none helped me:
    1 - Unable to access portal service from web service..........urgent
    2 - IllegalAccessError when calling a WebService
    I checked the proxy settings and it seems to be ok.
    Does anyone have another suggestion?
    Regards,
    Mauricio

    I found the reason.
    I did not check End User checkbox for the Everyone group we inserted into Permissions of the Web Service.
    Regards,
    Mauricio

  • What do *you* need to know to be successful with Workflow and BPM?

    All,
    The Workflow and BPM Survey, sponsored by ASUG - but not limited to ASUG members - will close on October 24.
    This information will be shared (with identifying characteristics removed) with ASUG, DSAG, VNSG, and SDN-ers to help target areas in which the various user groups and SAP can target upcoming webcasts and presentations. 
    You do not need to be an ASUG member to fill out this survey! All responders are welcome, and as is usually the case with a survey, the written-in responses are very valuable.
    Although this survey asks for name and company affiliation, all identities will be kept confidential.
    Please help us (SAP, SDN, ASUG, other user groups) help you, by telling us about what you need to see for educational content.
    http://ws.asug.com/ss/wsb.dll/5/ASUGSAPworkflowBRMsurvey.htm
    Please feel free to share this link with other WF/BPM Professionals. The survey will close on October 24, 2008.
    Thanks for your input!
    Sue

    It's a XYZ stage. I have a COM dll to use it. I did an instrument from this dll and everything was working fine untill I uninstalled LabWindows. IVI shared components seems to be having problems as I coundn't uninstall it when I tried to do a clean reinstallation. Maybe the issue comes from there..
    I am using the error variables and the error pop up does pop up but no other "system" error as IVIdll is missing or something like this..

  • SAPUI5 and OData dynamic Login

    can anybody share some standard code that sapui5 and odata dynamic login screen navigation ?
    Means User has to pass input Username and Password atrun time and get login.
    Thank you in advanced

    I am getting error at validation time but in browser it is working fine.
    The error is Unauthorised credential.
    I want to pass the credential in the following fields when I enter login ,I want to pass the values to SAP.
    I am using the following code:
    var oLayout = new sap.ui.commons.layout.AbsoluteLayout({width:"340px",height:"150px"});
    oLayout.addStyleClass("CustomStyle"); //Add some additional styling for the border
    var oLabel = new sap.ui.commons.Label({text:"User Name"});
    var oNameInput = new sap.ui.commons.TextField({width:"190px"});
    oLabel.setLabelFor(oNameInput);
    oLayout.addContent(oLabel, {right:"248px",top:"20px"});
    oLayout.addContent(oNameInput, {left:"110px",top:"20px"});
    oLabel = new sap.ui.commons.Label({text:"Password"});
    oPWInput = new sap.ui.commons.PasswordField({width:"190px"});
    oLabel.setLabelFor(oPWInput);
    oLayout.addContent(oLabel, {right:"248px",top:"62px"});
    oLayout.addContent(oPWInput, {left:"110px",top:"62px"});
    var oLoginButton = new sap.ui.commons.Button({text:"Login",  press :"login", width:"133px"});
    //oLoginButton.attachPress(login());
    oLayout.addContent(oLoginButton, {left:"110px",top:"104px"});
    // Attach the layout to the page
    oLayout.placeAt("content");
    </script>
      <script>
      login : function(oEvent) {
          jQuery.sap.require("sap.ui.model.odata.datajs");
          var serviceURI = "http://192.168.0.7:8000/sap/opu/odata/sap/YNEW_SRV/";
                    var username = sap.ui.getCore().getControl("oNameInput") .getValue();
                    var password = sap.ui.getCore().getControl("oPWInput") .getValue();
          var request = {
                    headers : {
                                      "X-Requested-With" : "XMLHttpRequest",
                                       "Content-Type" : "application/atom+xml",
                                       "DataServiceVersion" : "2.0",
                                       "X-CSRF-Token" : "Fetch"
                                                                           requestUri : serviceURI,
                                                                           method : "GET",
                                                                           user : username,
                                                                           password : password
                                                                   OData.request(request, function(data) {
                                                                           alert("success");
                                                                 }, function(err) {
                                                                           alert('Error Code:'+ err.response.statusCode);
      </script>
    Thank you Naveenraj

  • My lock screen just shows a black background and a User Name/Password dialog after opening the screen from sleep. How do I get it back to where it blurs my desktop image with the dialog and my account image displayed?

    I'm not sure when it began, but now my Macbook Air only shows a black background and a User Name and Password dialog box when I wake it from sleep. It used to show my desktop background blurred with my user name and icon displayed with only a text field for entering my password. I'm currently using Yosemite (OS X 10.10.1) and all updates have been done. Any help or suggestions would be greatly appreciated as I know this isn't a real problem, just an annoyance since I couldn't find how to change it back in the System Preferences.

    I just have to point out that after looking at a related post (https://discussions.apple.com/message/22661092#22661092), it brought to memory that my issue most certainly began happening after I added some DoD certificates to the keychain. This obviously has something to do with it, but it still leaves me wondering what actually causes this to happen. :/

  • Error while creating a workspace and workspace user

    Hi Everyone
    I have installed oracle 11.1.0.7 on our server and the os is windows server 2008. I tried creating a new workspace and workspace user using the repository assistant on the server itself i mean i am using OWB which comes along with the 11g database. It is installing 60% and at the end it gives me this error:
    The warehouse builder workspace installation failed Java.Sql.SQLexception ora -00942 table or view does not exist
    How can i deal with this error? any suggestions ?
    Thanks & Regards
    Subhasree

    Hi everyone,
    I got the same problem. It is very urgent to get an answer.
    Thanks
    Siegwin

  • What  is difference between user group and reference user group?

    hi
    guys,
            what  is difference between user group and reference user group? 
    your regards
      p.suresh

    Hi ,
    Chk the link below for your clarifiacation.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/5c/c1c81c445f11d189f00000e81ddfac/frameset.htm
    Hope it helps.
    Regards,
    Amit
    Edited by: Amit Kotwani on Sep 2, 2008 2:15 PM

  • Brand new MBP and the user directory is corrupt?

    hi, i just installd my new MBP and did a sync of my G5 settings (all except bookmarks) added a few things to my desktop and when i rebooted the desktop was cleared and the home directory was missing "Movies" "Music" "Pictures" in the left most column. all that is left is "Applications" and my user home symbol.
    i tried to create a new user and when i did so was given a message that the "home" folder could not be located. weird.
    anyway. i also installed a canon IP4300 driver. can anyone tell me what may be going on? do i need to erase the drive and do a fresh install?
    UPDATE: i see what happened! the User directory somehow got into the Applications folder! no idea how. but i can't seem to get it out. can anyone help me out?
    thx
    Message was edited by: Frank Jacob

    Open the Applications folder and drag the Users folder inside to the top level of the hard disk; you may need to press the Command key when dragging the item and/or provide an administrator username and password. When done, log out and back in. If only the home folder is present in the Applications folder, move it to the Users folder. Rename existing items as needed.
    (25013)

  • SRM Post Installation - Webadmin and EBP users

    Hello SRM gurus,
    I am new to SDN but I am familiar with SAP Basis Administration. I have recently installed the SRM 5.0(NW04s). I configured the shopping cart link and the integrated ITS. I was asked to create userid for webadmin (who creates users through the browser). I searched through SDN but was not able to find it. Please let me know the procedure to get the webadmin and creation of EBP users. I appreciate your time and business. Thanks in advance. Waiting for your replies......
    Raj

    Hello Raj,
    1. Create webadmin user in SU01 transaction, assign SAP_BBP_STAL_ADMINISTRATOR role
    2. Go to USERS_GEN transaction and create user from existing SU01 user
    3. Go to PPOMA_BBP transaction and search the created webadmin user, Select position level and check the ROLE attributes. If no ROLE attributes are maintained, add SAP_BBP_STAL_EMPLOYEE
    4. logon to SRM with webadmin user
    Regards,
    Masa

  • How to change the Default login script and the USER login script in Netware3.12

    I need to cut down the disk map from Neware 3.12 in Win98 client's PC.
    please tell me
    how to change the Default login script and the USER login script in
    Netware3.12 ?
    Or is there any other ways to do this thing?
    Thanks a lot!

    On 4/6/2006 [email protected] wrote:
    > how to change the Default login script and the USER login script in
    > Netware3.12 ?
    Please repost in the discontinued.forums.
    Edison Ortiz
    Novell Product Support Forum SysOp
    (No Email Support, Thanks !)

  • How do we reset password for SAP* and DDIC user in SAP R/3 ECC 6.0?

    Hi,
    How do we reset password for SAP* and DDIC user in SAP R/3 ECC 6.0?
    I tried with acual method as below from client '000':
    DELETE FROM USR02 CLIENT SPECIIED WHERE BNAME = 'SAP*' AND MANDT = '001'.
    After this when I tried to logon '001' using SAP* with password PASS it is giving  the message that Incorrect logon and password.
    (Also when I checked for 'SAP*' in 001 it looks like it is not got created as I queried as below:
    SELECT SINGLE * FROM USR02 CLIENT SPECIFIED WHERE BNAME = 'SAP*' AND MANDT = '001'.)
    Can anybody throw some light on this? RewardS is guranteed for solutions!
    -B S B

    Hi again:
    I forget to tell.
    You must restart the system. So, that a new user with the name "sap*" gets generated with password "pass"
    Hope this wil help,
    Eric

Maybe you are looking for