authentication of EBS in apex

Hello world

Try to use the same user name and password of the ebs for my standalone application (not integrated with EBS). Using apex 4.2 and Oracle Database 11g Enterprise Edition
CREATE OR REPLACE FUNCTION ebs_authenticate (
   p_username   IN VARCHAR2,
   p_password   IN VARCHAR2
)
   RETURN BOOLEAN
AS
BEGIN
   RETURN (APPS.FND_WEB_SEC.validate_login (p_username, p_password) = 'Y');
END ebs_authenticate;
In Before Header Process

Get Username Cookie :           
:P101_USERNAME := apex_authentication.get_login_username_cookie;
Set Username Cookie Process :

begin
owa_util.mime_header('text/html', FALSE);
owa_cookie.send(
    name=>'LOGIN_USERNAME_COOKIE',
    value=>lower(:P101_USERNAME));
exception when others then null;
end;
Login Process :
wwv_flow_custom_auth_std.login(
    P_UNAME       => :P101_USERNAME,
    P_PASSWORD    => :P101_PASSWORD,
    P_SESSION_ID  => v('APP_SESSION'),
    P_FLOW_PAGE   => :APP_ID||':1'
    );
If I give the ebs username and pwd means, do not connect until it is showing invalid credentials.

Can someone help me in this.

Brgds,
Max

Maybe your answer can be found here:
FND_WEB_SEC. Validate_Login does not

It could be the safe use of fnd_web_sec.

You get also the result of apps.fnd_message.get to determine why authentication fails.

Scott

Tags: Database

Similar Questions

  • Integrate R12.1.3 EBS with APEX 4.2.6

    Hello

    I was following the remark, but I could not succeed with this.

    When I click on the function Menu it's redirecting to: SUMMIT like this login page

    http://XXXXX.xxx.xxx:8080/ADR/f? p = 106:LOGIN_DESKTOP:10653362885847

    What I did is:

    (1) update LaunchApex.jsp it comes to success

    (2) created a blank page in the APEX.

    (3) created a package ebs_authenticate and APPS. XXAPX_SECURITY_PKG package as

    CREATE OR REPLACE FUNCTION ebs_authenticate (p_username IN VARCHAR2 )

    p_password IN VARCHAR2 )

    RETURN BOOLEAN AS

    BEGIN

    IF APPS. XXAPX_SECURITY_PKG.validate_hash (p_username, p_password) THEN

    RETURN TRUE ;

    END IF ;

    RETURN (APPS. FND_WEB_SEC.validate_login(p_username,_p_password) = 'Y');

    END ebs_authenticate;

    /

    CREATE OR REPLACE PACKAGE BODY XXAPX_SECURITY_PKG AS

    g_key VARCHAR2 (100);

    FUNCTION generate_hash (p_string IN VARCHAR2,

    p_offset IN DEFAULT NUMBER 0) EAST of RETURN VARCHAR2

    BEGIN

    IF IS NULL THEN p_string

    RETURNS A NULL VALUE.

    END IF;

    RETURN RAWTOHEX (UTL_RAW.cast_to_raw (DBMS_OBFUSCATION_TOOLKIT. MD5 (input_string = > p_string |) ':' ||

    TO_CHAR (SYSDATE-

    (p_offset / 24 * 60 * 60);

    "HH24MISS YYYYMMDD') |

    g_key)));

    END generate_hash;

    FUNCTION validate_hash (p_string IN VARCHAR2,

    P_hash IN VARCHAR2,

    p_delay to the NUMBER DEFAULT 5) RETURN BOOLEAN IS

    BEGIN

    FOR i FROM 0... p_delay LOOP

    IF p_hash = generate_hash (p_string, i) THEN

    RETURN TRUE;

    END IF;

    END LOOP;

    RETURN FALSE;

    END validate_hash;

    BEGIN

    SELECT encrypted_user_password

    IN g_key

    FROM APPS. FND_USER

    WHERE user_name = 'SYSADMIN ';

    END XXAPX_SECURITY_PKG;

    /

    create or replace procedure ebs_getsession1 (p_username out nocopy varchar2)

    as

    Start

    APPS.wfa_sec.getsession (p_username);

    end ebs_getsession1;

    (4) created in the APEX authentication:

    (5) created get Username Cookie

    BEGIN

    APPS.ebs_getsession1(:P101_USERNAME);

    : P101_PASSWORD: =.

    APPS. XXAPX_SECURITY_PKG.generate_hash

    (APPS. FND_GLOBAL.user_name);

    IF: P101_PASSWORD IS NOT NULL THEN

    (APEX_CUSTOM_AUTH). Login

    P_UNAME = >: P101_USERNAME,.

    P_PASSWORD = >: P101_PASSWORD,.

    P_SESSION_ID = > v ('APP_SESSION').

    P_APP_PAGE = >: APP_ID | » : 1'

    );

    END IF;

    EXCEPTION: WHEN OTHER THEN NULL;

    END;

    EBS links:

    ++++++++++++

    Call of HTML:

    1. LaunchApex.jsp? app = 106 & page = 1

    Hello

    Its solved thank you

    Make SURE APEX AREA and EBS should be to even:

    ex:

    http://xxx.yyyy.com:8000 / OA_HTML

    http://zzz.yyyy.com:8080 / ADR

    Thank you and regards

    Françoise

    Teyseer.

  • Apex authentication scheme 4.02 Apex Bug

    Hello

    I have recently install 4.0.2 oracle apex in Oracle database XE, I created an application with the Apex authentication scheme. The problem I encountered is that Apex is always show the logout button, if I close the browser and open it again and enter my public page of application for the first time that the apex is showing the logout button. When I click on the logout button, the session id changes but Apex continues to show the logout button.

    Is there a solution for this situation?

    Hello

    Go to edit this entry of logout navigation bar.
    The value entered conditionally "user is Authenticated (not public)"

    Kind regards
    Jari

  • Integration of authentication UNIQUE EBS-OBIEE

    Hi all

    We are able to connect to OBIEE of EBS, but we do not find areas associated with this user.

    Can someone please help out me of this edition.

    Thanks in advance.

    Concerning
    Vishwanath

    Make sure that your user group / receive privileges on the domain administration of presentation Services (connect on OBIEE as SADMIN and got to administer Options).

    Kind regards
    Gareth

  • Integration of Oracle Apex 4.0.2 with EBS R12.1.1

    We could integrate Oracle Apex 4.0.2 with EBS R12.1.1 with the help of http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf successfully.

    The document said to navigate from EBS to Oracle Apex without any second login screen (works very well!), but now how we sail to EBS to Oracle Apex (in the same session) without any screen connection again as below

    User login of EBS-->--> Oracle Apex-> EBS EBS

    Please help to achieve this goal.

    Hello

    In your application's authentication scheme in the sign-out URL Section, gives the following

    wwv_flow_custom_auth_std.logout_then_go_to_url?p_args=&APP_ID.:http://xyz.ck.com:8010/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE
    

    Provide your url on ebiz instead of http://xyz.ck.com:8010 in the link above.

    Thus, while pressing the logout link in your apex, you will not be redirected to login ebiz again page, it will be redirect you ebiz menu homepage back in the same session itself.

    This will work for sure.

    Good luck!!!

    Change your login username of "805196" in a meaningful Word.

    Brgds,
    Mini

    -------------------
    If this has answered your question, then awarded points and close the debate.

  • EBS user authentication

    Hi all
    I want to know if there is a function/procedure/package or something in the EBS database where in I'll pass my user & pwd who must be authenticated againist EBS users?
    If there is, can you guys let me know?

    Thank you

    You can use APPS. Package FND_WEB_SEC. See the note below for an example of code:

    Note: 373604.1 - how to integrate the Apex with Oracle e-Business Suite and the configuration of authentication
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=373604.1

    Oracle Apps APIs can be found in [repository integration Oracle | http://irep.oracle.com/] website.

  • Launch Application APEX of EBS

    Hello

    I created an Application in the APEX and want to launch from ebs as a form or a page of the OAF is attached. Could someone let me know the steps for it.

    I need to create a new responsibility for him where it will be attached.

    I use ebs r12 and APEX 4.2

    Read this white paper for the EBS and APEX integration... : http://www.oracle.com/technetwork/developer-tools/apex/learnmore/apex-ebs-extension-white-paper-345780.pdf

    Thank you

    Tony Miller
    Los Alamos, NM

  • APEX authentication method

    Authentication for APEX is work-related, say I create a work environment of HR, I can log in the workplace human resources administrator and choose the authentication method (APEX, Ldap...) to use for my job of human resources. Is it okay for the APEX? Y does it that no detail documents concern the configuration for LDAP authentication? Thanks for your comments.

    Kevin

    Kevin Liao wrote:
    Authentication for APEX is work-related, say I create a work environment of HR, I can log in the workplace human resources administrator and choose the authentication method (APEX, Ldap...) to use for my job of human resources. Is it okay for the APEX? Y does it that no detail documents concern the configuration for LDAP authentication? Thanks for your comments.

    Kevin

    Hey Kevin,

    I do not understand the first question completely, except for the fact that you can choose/set authentication methods for an application (under the shared components). As for the second question on LDAP authentication, there are a number of discussions in this forum that might be useful:
    Re: AD authentication

    ADS with Apex

    Hope the above information helps.

    Thank you
    Rohit

  • Apex 4.2 integration with EBS R12.1.1

    Hi guys,.

    We followed the document "Oracle Applications Express fast track to extend the E-Business Suite Oracle by Rod West, Cabot Consulting [http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf]

    After doing all the steps, when we try to navigate through the application of EBS in Apex application clicking on EBS links menu it ends with error below

    "404 not found".

    ' / OA_HTML/null/pls/apex/f resource not found on this server.

    My display of the url like this [http:// < hostname >: < port Apex > / OA_HTML/null/pls/apex/f? p = 101:1:APPS:]

    Can someone help me in this.

    Brgds,
    Max.

    Hello

    If you do you have changed LaunchApex.jsp and got the same error, then you need to restart your application server because the jsp is cached.

    Rod West

  • Integration of Oracle Apex with EBS R12.1.1

    Dear all,

    We are in the process of integration Oracle Apex 4.0.2 with EBS R12.1.1 with the help of http://www.oracle.com/technetwork/developer-tools/apex/apex-ebs-wp-cabot-consulting-169064.pdf.

    After doing all the steps, the time where we sail of EBS to Apex application clicking on EBS links menu it ends with error below

    "404 not found".

    ' / OA_HTML/null/pls/apex/f resource not found on this server.

    After some tests, I found the code below in "LaunchApex.jsp" in order to get the value of profile (supposed to be "http://myserver:port") of custom system 'APEX_HTTP_SERVER' profile and prefacing of ' / apex/f? ' p = applicationid:page:APPS: ' does not work correctly

    "
    ...

    String l_launcher = ctx.getProfileStore () .getProfile ("APEX_HTTP_SERVER");
    l_launcher = l_launcher + "/ apex/f? p ="+ p_application +": "+ p_page;
    l_launcher = l_launcher + ': APPS: "+ p_item_names +": "+ p_item_values;

    ...

    "

    as we found that the profile custom system 'APEX_HTTP_SERVER' does not exist in the EBS system. But it works without any error page if we encode the URL of the entire application variable in l_launcher apex, but this hard brings us to the page of connection of EBS instead of the Apex application page.

    So I think that we can't work around by using the value of 'APEX_HTTP_SERVER' profile because it has something to do with the EBS application session.

    So could someone please help me how we could create custom profile system "APEX_HTTP_SERVER" or other options to make the transparent integration of apex Oracle with EBS works without any second login page

    Thanks in advance

    Published by: 805196 on August 25, 2011 12:23 AM

    Hi oar,

    you will need to change as the below in the jsp

    String l_launcher = ctx.getProfileStore().getProfile("OAE_LAUNCHER");
    l_launcher = l_launcher + "/apex/f?p=" + p_application + ":" + p_page;
    l_launcher = l_launcher + "::APPS:::" + p_item_names + ":" + p_item_values;
    

    Brgds,
    Mini

    --------------------
    Mark responds promptly

  • Print with APEX and EBS

    Hi gurus
    I have sucessfully integrated APEX with EBS, do a lot of reports on data from BSE.
    These reports are visible on the screen, but now I need a paper printed some of them.
    After having read a lot of literature, I realized that I need a print as BI Publisher server.
    I'm not sure but I think that EBS uses a similar architecture for printing, with a print server actually generate output.
    Is this correct? If that is correct, can I use the EBS for APEX printing print server? How can I do?

    I use APEX 3.2 and EBS 11.5.10

    Thanks in advance
    Oscar

    EBS has a version of BI publisher, but previous assignments, it was noted that the version of bi publisher integrated with EBS is NOT a version that runs with the integration of the APEX...

    Thank you

    Tony Miller
    Webster, TX

  • Integrate form Oracle Application APEX 4.2

    Hi all!

    (Apologies if I'm missing any information, this is my first post here )

    I'm looking to integrate an Oracle form to an APEX application or be able to call an Oracle for an APEX Application form and open the form of the Oracle in a typical session of the EBS Java.

    I've seen several posts on this exact requirement, but none of the information is very current. I saw real Blog: integrating Oracle Forms with APEX which uses APEX$ CALL_FORM but I was not able to find any documentation on how to use this feature.

    I use version 12.1.3 EBS and on a Glassfish Server(I can update this to version 5 if it makes this easier)-4.2.0.00.27 APEX.

    Any information you can provide that I would be grateful.

    Thank you!

    Shelly

    Hello Shelly,

    2605127 wrote:

    Please change your login username of "2605127" to something meaningful. Reference: Video tutorial how to change username available

    I'm looking to integrate an Oracle form to an APEX application or be able to call an Oracle for an APEX Application form and open the form of the Oracle in a typical session of the EBS Java.

    I've seen several posts on this exact requirement, but none of the information is very current. I saw real Blog: integrating Oracle Forms with APEX which uses APEX$ CALL_FORM but I was not able to find any documentation on how to use this feature.

    APEX$ CALL_FORM isn't a documented Oracle procedure. You must build your own procedure CALL_FORM $ APEX.

    Reference: Forms to include in the Apex and read the blog post carefully.

    I use version 12.1.3 EBS and on a Glassfish Server(I can update this to version 5 if it makes this easier)-4.2.0.00.27 APEX.

    There is a lot of material on EBS and APEX integration.

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • How LDAP query within an APEX application?

    Hi all

    I have setup an APEX application that uses the LDAP authentication and I was wondering if it is possible to request information from LDAP to complete the forms once logged into the application.


    Thanks in advance for the support everybody!

    view Oracle database Blog 2.0: using Active Directory to control authentication and authorization at Apex

    on authentication LDAP at the Apex.

  • SSL in the APEX for the LDAP call

    Hi all

    I have to call my Ldap server for the login process. The team of LDAP, asking me to activate the SSL mode in the APEX. They provided the SSL certificate.

    Now, my question is what exactly I need to do to activate the SSL authentication mode in the APEX? Do I need to install any certificate to the server database or Web server to allow this SSL?

    How its work? Any idea would be appreciated. Lack of experience in the networking functionality.

    My Version of Apex: APEX 4.0

    Database: Oracle 10G

    See you soon,.

    San.

    Yes you are right. Configure the SSL certificate in the oracle portfolio.

    Thank you

    Lacombe

  • Personalized with the trusted source authentication

    Hello

    There is a following requirement: since a user application (non-apex) klicks on a link to a page of the apex and must be authenticated without having to type his username and password (without page 101) because it is already identified in this application non-apex.

    My approach: create a procedure that checks if the user is authenticated in a non-apex application. Then create a custom authentication scheme where authentication is my procedure. Then of course change current authentication scheme to my authentication scheme. BUUUT what happens if the user is not properly authenticated in a non-apex application? So I think that the user should see page 101 and type the name of user and password.

    Is it possible to do something like this: If the procedure returns true, then use Custom authentication scheme, if set to false use Apex authentication schema (standard schema)? Or is it not the right approach?

    Thank you very much for your answers.

    Kind regards

    Anton

    PS: I know that some of the discussions in the forum about this, but I don't understand how they can help in my case.

    Hi Anton,.

    Instead of calling APEX_CUSTOM_AUTH. CONNECTION, you can call APEX_CUSTOM_AUTH. SET_SESSION_ID and APEX_CUSTOM_AUTH. SET_USER and use a sentinel of page function. You will have to search this forum for cover page features more information.

    In your authentication custom parameters are user name and password, but you can check what you want and return true or false. If you do not check the password at all you could just always return true and let all users. If you need to decide what information you will use to authenticate users. There are many ways to do what you want. The password technique to generate just allows you to do a little sign outside the authentication function that allows you to have the 2 way authentication. Some users have a password generated for them and others must provide their password. The function of authentication it don't worry about the right controls for two passwords.

    Rod West

Maybe you are looking for