Only works using as user name for the connection

Hello

I have a custom authentication method that uses the function which use us our username e_business and the password to connect to the Apex application. The function looks like this:

create or replace
FUNCTION CUSTOM_AUTHENTICATE
(p_username IN VARCHAR2,
p_password IN VARCHAR2) RETURN AS BOOLEAN

BEGIN
RETURN (FND_WEB_SEC.validate_login (p_username, p_password) = 'Y');
END;

Now, what I want to do is create a custom authentication scheme and the function that we'll just login user to the application of the apex by entering his user name and no password is required.

Please help me on this.

Thank you

Stéphane

I have not really undestand why would you want that, but that's:

Let's assume you have a table in the database called "Users" with columns (username, password), your authentication will look like this:

create or replace
FUNCTION CUSTOM_AUTHENTICATE2 (p_username IN VARCHAR2, p_password IN VARCHAR2) RETURN AS BOOLEAN
BEGIN

DECLARE
existsUser NUMBER (1);
BEGIN
SELECT 1
IN existsUser
USERS
WHERE UPPER (USERNAME) = UPPER (p_username);
RETURN (existsUser = 1)
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN FALSE;
END;

END CUSTOM_AUTHENTICATE2;

Tags: Database

Similar Questions

  • How to display the user name for database connection using dreamweaver? [was: help]

    connect display mode database using dreamweaver user name

    LionelLionel wrote:

    OK, sorry 4 that; I use dreamweavercs6 and the script server is php.i as accurate must I set up a server (wampserver) local on my laptop for this level of competence of project.my with scripts php is very limited. and now, after you have created the database (in phpmyadmin), I want to display the user name of the user after login... I need help please.thx

    You want to display it where? On the login page of "success"?

    Add the below to each top of the page:

    Then add the following in the code where you want the ' user name to appear:

  • Using odiRef in the package ODI to get the user name for the object in step OdiSendmail

    Hello

    I'm trying to do something simple and to include the user name in a subject line of a stage of OdiSendMail.  In the Expression Editor for the topic, I use the following syntax, but in vain.

    Send data to HFM starts by < % = odiRef.getUser (String) % >

    What a friend missing here?  I need to replace the string with something like 'UserName' or is there a different setting to spend?  I tried the username, but it did not work.  This syntax is correct or do I have to enter another way?

    Thank you

    T.

    Hello

    getUser has a parameter which is the name of the property to recover, you will probably want the username;

    http://docs.Oracle.com/CD/E14571_01/integrate.1111/e12645/odiref_reference.htm#autoId70

    Something like...

    <%=odiRef.getUser( "USER_NAME" )%>

    See you soon

    David

  • Is it possible to use the registry to change the user name for the account in windows 7?

    I bought a used laptop and the user name has been updated with the old username, but when I changed it all file paths remained the same. Can I use the registry to fix this, or is the only way to create a new account?

    I bought a used laptop and the user name has been updated with the old username, but when I changed it all file paths remained the same. Can I use the registry to fix this, or is the only way to create a new account?

    Hello

    If there are files and settings associated with the old user account that you want to keep, you can use the same procedure to repair a damaged user account. This will name the new account of what you want and keep all the old files and settings.

    Fix a corrupted user profile:
    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    If there is nothing in the old account that you want to keep, you can simply create a new user account with the name that you want to use and then delete the old account.

    Concerning

  • Where Firefox does not user name for the mail from Verizon?

    I use Verizon email with Firefox. The user ID
    for verizon email is email address. However,.
    If you type in something other than error
    the correct user in the box, the computer ID
    dutifully she remembers as well as good
    one! Where Firefox saves these nicks
    for Verizon Mail so that I can kill incorrect
    ones?

    Almost. You need to highlite the problem entry
    then hold DOWN the SHIFT key, and then
    Press delete. I found this answer which
    work by searching the Web led me
    Return to this site. The original question posted
    has been a little words than mine.

    Thank you
    SgrB2

  • The band multiple @domaine used in user name on the integration of commercials with Cisco ISE?

    Hello

    How to remove multiple domain suffixes through ISE with AD user name used as an external identity Source. Username is used in [email protected] / * / format.

    Cisco ISE 1.2 patch introduced 4 Strip prefix or suffix @domaine Kingdom of the username through ISE with AD used as external identity Source. But the documentation is not updated for this feature. I am able to band 1 domain successfully suffix but following conditions listed in the list of suffixes fails to get stripped.

    Any thoughts on the same.

    Thanks Kumar

    In the ISE under Administration > identity management > external identity Sources

    Choose the Active Directory on the left, select your ad server and Advanced settings

    Under identity band of suffix, make sure prefixes band below: is selected (I know, it says prefix).

    In the list of Suffixes box, enter your list of domain suffixes to undress.  The separator character is a comma (,).

    If this does not solve your problem, then I fear that a call to TAC may be in order.

    UPDATE *.

    Spaces are significant characters.  The registration of domains, so as such:

    @domain.com, @domain.local, @testdomain.com

    END UPDATE *.

    Please rate useful messages and mark this question as answered if, in fact, does that answer your question.  Otherwise, feel free to post additional questions.

    Charles Moreton

    Post edited by: Charles Moreton

  • User name for the e-mail settings blackBerry Smartphones

    I forgot the user name I need to access the e-mail settings, I have the password but not the username. I tried all possible user names, I would have given, but none of them works.

    What is the format of the username? It of just a username like "James31" or is it like "[email protected]".

    Can be completely different from your address of Mali? for example email address could be '[email protected]', then the user name should be 'x' or can be like "xdfak"?

    Thank you!

    It doesn't have to be your email address.

    It can be simply "joesmith" or jsmith and does not necessarily match your blackberry.net email address. It may, but is not necessary.

  • Specifying the user name for the collection of statistics of servers windows performance monitor?

    When using load OATS tests collect statistics of servers Windows (perfmon stats), the load test server runs under the user Id must be a member of the monitoring group of the Performance on all Windows servers, I'm watching. I have a user ID standard I use for this type of surveillance. It is automatically configured on all servers in our company. Where can I specify this user ID and password in OATS load tests?

    The only reference I can find in the documentation says to change the user ID and un_mot_de_passe in the Oracle Load Test Agent Serivce. I don't think that's what I want. And there is no installed service named 'Oracle Load Testing Service Agent' on my server in any case.

    Thanks for the help!

    Hello Bob
    You should have a service called Service Oracle Application Testing Suite Agent on each server running a load test agent. If this is not the case, there is a problem it somethere and you can't run a load test.
    This is the service you need to run as the specific user (go to control panel-> service-> change the service to log on under your username).

    And tell us the resultl
    See you soon
    JB

  • How can I change my user name for the profile of apple

    Hi mac tribe is anyway to have the username my apple changed something else?

    If you are referring to your user name of communities of Apple Support, I ask the moderators of Apple for help, but may take several days or more.

  • Two different user names for the same account!

    We bought my son a laptop and have set up a user account for him which is a standard user account and an administrator account to monitor and adjust security settings. However, our administrator account on the configuration page and the login screen is called MumandDad (which is what we want!) but when you go into Windows Live or the list of records or other areas where the username is the user name is Joseph. User account from my son named Joseph on connect to the Setup page and the page, but once again under folders etc. it is called Joseph2 - what should I do so that all folders/accounts read the same as the log in / page of the control panel?

    Joseph2 is not an account name - is the name of the profile folder. If the name of the profile folder generally conform with the name of the account, there is sometimes a difference. There is nothing to worry about - just leave it as it is. Change it and can cause serious problems.

  • Smartphones blackBerry how to retrieve the user name for the email parameter?

    Hi, I need to change my e-mail settings. I tried to do, but he asks my username. I remember my password but not my user name. is there a way you can get it back?

    In this case, the person that you talked was misinformed. You have no free method to contact RIM. The full support of the RIM starts with the carriers. If they can't solve it, they are supposed to degenerate into RIM. But you can't go around them and get rim directly. So, call them climbing back and demand.

    Good luck!

  • Password and user name for the downloadable virtual machine

    Anyone know what is the password to root for Linux servers are downloadable from the site VMmark & gt;  I use the 1.1.1 version guests.

    If you have found this device or any other answer useful please consider useful or correct buttons using attribute points

    Tom Howarth VCP / vExpert

    VMware communities user moderator

    Blog: www.planetvm.net

    Author of the contribution on "[VMware vSphere and Virtual Infrastructure Security: securing ESX and virtual environment | ]. [ http://www.amazon.co.uk/VMware-VSphere-Virtual-Infrastructure-Security/dp/0137158009/ref=sr_1_1?ie=UTF8 & s = books & qid = 1256146240 & sr = 1-1] & rdquo; . Currently available on roughcuts

    Try: vmmark

  • collect the user name for the site module

    I have an account on the site of the add-on (addons.mozilla.com). I can easily change the password, but I forgot my username; How to retrieve it?

    Thank you.

    Roger Blair

    Is it in your password manager?

  • Different PC user name to the user license server names

    Hi all

    I encountered the problem that on some PCs running with a goal of training of RPF of generic user account, the License Manager will not grant one of my licenses in volume. How can I get LabVIEW to communicate with the license server with a different user name for the windows login name? I already tried tools--> user name, but it has not fixed the problem.

    I'm always under 8.2.1 on these computers.

    Concerning

    Oli

    Hi Oli,

    You have licenses based on the user or computer
    licenses? From your description, looks like you have several
    licenses based on users and multiple training computers where windows
    usernames are all identical. Is this correct? If that's the case then
    You should be able to grant a license in volume for this username but it
    you won't concede more than one license under the same name. Change
    LabVIEW settings will not solve this that this problem concerns more with Windows
    and VLM. To resolve this problem, you can either go in windows and create
    new usernames or you can call and we could you spent to get
    computer license and you should be good to go.

    Lars

  • Bytes of TCP IP and subset of bytes for the connection of server and clients

    Hello

    I have a problem on the server and the client connection using the TCP/IP protocol. In the client, I have 41 cases, 1 case of timeout, others are for the case of button when they are pressed and then the LED on the server will be to market and if a click again the led will be off. But when I reached cases 10, 11, 12 up to the 41 (key case), that the LED lights if you click only once, but when he double clicked then the light does not turn off. So, how you solve the problem? Is this subset or bytes to read because the first subset is 1 case but no 10 to 41 will not work, but I change the subset in 2 then the case works for don't light the LED, but it do not work to turn the LED off.

    I also download the vi in this for reference.

    the user name for the client is the user and the password is pass.

    Thank you

    Hi ican.

    you have not changed the customer. See the attached picture. The error in the server side, it's that the 4 was connected on the two functions of split to the length. See Server for the necessary difference image.

    Mike

Maybe you are looking for