How to log in with user credentials from database table

Hello all.
I have a table named users_1 in my database. This table has columns named username, password, email and userid. On userid, I have put a sequence.
Now, I have manually made 1 row in this table, with in it the user credentials.
How can I edit my application so that I can use these credentials to log onto the application?
Please, a step-by-step text would make me rather happy, instead of getting a link with information that I should read. I've read most of it, and it just doesn't make any sense to me, so I prefer a guide-trough.
Thanks..

Hi Magali,
You want only user from database can access your application.
follow the steps given below.
Step1  :  create function to authenticate users
create or replace FUNCTION  "CUSTOM_AUTHENTICATE" (p_username in VARCHAR2, p_password in VARCHAR2)
return BOOLEAN
is
  l_password varchar2(4000);
  l_stored_password varchar2(4000);
  l_count number;
begin
select count(*) into l_count from users_1 where upper(username) = upper(p_username);
if l_count > 0 then
   select upper(password) into l_stored_password from users_1 where upper(username) = upper(p_username);
   l_password :=  upper(p_password);
    if l_password = l_stored_password then
      return true;
    else
      return false;
    end if;
else
  return false;
end if;
end;
Step2  : create authentication scheme for your application
Go to Application Builder->select your application->shared component->security->authentication scheme->create
a) custom scheme : Based on a pre-configured scheme from the gallery
b) give some name to your scheme like custom_scheme or something
c)scheme type : database account
d) verify function name = return CUSTOM_AUTHENTICATE
e) go to = Login Page
f) Logout url = f?p=&APP_ID.:101 // here 101 is login page no..so you can set your login page no.
step3  : make this scheme as current scheme
select your scheme and click make current
now try to login into your application from your database users..
Hope this will helps you,
Thanks,
Jitendra

Similar Messages

  • Logging into app using credentials from database table and not APEX default

    Hi,
    I am new to this forum and also APEX, I have had a play around with APEX and liked what i have seen.
    I am currently trying to change the log in process on one of my applications from the APEX default of Application login to a get the credentials from a table within my database schema,
    Could anyone please point me in the right direction to find out how to do this please. either tutorials or guides would be good. or even better if u can talk me through it that would be great :)
    Many thanks
    J

    I guess I am confused.. Do you want the users information to come from a table you develop where they would have to enter in a login id & password, or as your question seemed to ask, you don't want ANY login form, just a table that will determine who they are when they login?
    I guess I jumped the gun.. If you want to have a custom authentication (One based upon your table) see this link: http://djmein.blogspot.com/2007/07/custom-authentication-authorisation.html
    Thank you,
    Tony Miller
    Webster, TX

  • How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk

    How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk.i did try all the options but I can not find the phone number to call from Croatia,
    I can not change my Apple ID to the old mail (not possible!)
    The old mail don't accept the new password..
    I can not delete the Icloud all the time asking my the password of the old mail!
    I realy need help

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • I set up a new user on my network today and am now in a location without access to that network. I just set her up as a user on her macbook but I can't log in with her credentials. Is that because I am not on the network and it is the initial setup?

    I set up a new user on my network today and am now in a location without access to that network. I just set her up as a user on her macbook but I can't log in with her credentials. Is that because I am not on the network and it is the initial setup?

    You need to set the option to create a mobile account using the Directory Utility app. 

  • How do I run a user account from an external HD?

    How do I run a user account from an external HD? I will be away from my desktop iMac and want to use our MacBook Pro overseas for two months with my iMac user account copied to an external drive.

    1. WARNING: This procedure is for advanced users only. Some third-party software may not work as expected, or may not work at all, if the home folder is moved.
    2. Back up all data.
    3. Copy your home folder to the desired location, which must be on a volume of type "Mac OS Extended (Journaled)" with file ownership enabled, as shown in the Finder Info dialog. Encryption is optional. The volume must be on a local storage device, not on the network, and it must be mounted automatically at startup — before any user logs in. A disk image will not work.
    The name of your home folder is your short user name. Do not rename it. Do not copy the "Users" folder.
    5. Select
     ▹ System Preferences ▹ Users & Groups
    Click the lock icon and authenticate. Right-click or control-click your name in the account list, and select Advanced options from the popup menu. In the sheet that opens, change the location of the home directory. Log out and log back in.
    6. Test. If you have problems, reverse the above steps. If you got this far, you should have no trouble doing that. If everything works as you expect, delete the original home folder.

  • [svn] 3026: Bugs: LCDS-370 - Passing user credentials from Flex app to WAS 6.1 returns java. lang.ClassCastException

    Revision: 3026
    Author: [email protected]
    Date: 2008-08-28 11:35:50 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Bugs: LCDS-370 - Passing user credentials from Flex app to WAS 6.1 returns java.lang.ClassCastException
    QA: Yes
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-370
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/websphere/flex/messaging/security/WebSphereLoginCo mmand.java

    Please test with the new Java Plug-In available in 6u10 at http://jdk6.dev.java.net/6u10ea.html. The Java/JavaScript bridge has been completely rewritten and is now more complete and portable than ever before. Longstanding issues should be fixed with this new version. Please try it and post if you continue to have problems.

  • How can I transfer two user names from an iMac to a new macbook?

    How can I transfer two user names from an iMac to a new macbook?
    got a new laptop and need to transfer two usernames to it, complete with all documents help?

    Assuming you haven't already set up a user, the easiest way is to use the Setup Assistant during first boot of the new Mac, with the two Macs connected by firewire.
    You'll be prompted to migrate from a choice of sources - choose "from another Mac", select the catagories of data you want to transfer and follow the instructions.
    More info here, in Pondini's FAQ; http://pondini.org/OSX/SetupAsst.html

  • Can't access a school web site that I've used for years-can't log in with user and password. All other bookmarks are fine-tried several things including re-install-Other browsers are O.K.

    I have an iMac-have used Firefox exclusively for years. I can't access a school web site-can't get past the log in with user ID and password. Screen stays at log in screen. Tried clearing history-tried uninstall and re-install. All other web sites/bookmarks work fine. Thanks in advance.

    Try clearing the cache and deleting cookies for the site, this can sometimes resolve problems accessing sites that used to work. See [[how to clear the cache]] and [[deleting cookies]] for details.

  • How to delete user SAP* from database in MaxDB

    I´m unable to login with user SAP* into client 000 but in other clients.
    How can I delete the user SAP* from client 000 that I can login with the standard password?
    Is it possible within a transaction in another client or only on DB?

    Hi Damian,
    You need to connect to MaxDB SQL studio using user SuperDBA,admin
    Run the following commands
    select bname from <SAPSCHEMA>.USER02 where bname='SAP' and MANDT='000;*
    This will list user SAP* from client 000
    delete from <SAPSCHEMA>.USR02 where bname='SAP' and MANDT='000';*
    This will delete SAP* from client 000.
    Regards,
    Deepak Kori

  • Safari won't let me log in with my credentials

    When I use this forum in Firefox, I can log in with my credentials (email address, password) fine. When I try to use Safari to log in, it keeps wanting me to create a new account with my AppleID.
    Can I join these two sets of credentials? If so, how do i do that?
    If I cannot join these sets of credentials, how can I make Safari let me log in with the credentials I know work?

    capaho wrote:
    Does your original account contain any accented letters or characters?
    This would be a system issue that needs to be addressed by Apple. If an account can be successfully created with accented letters, there shouldn't be any subsequent login errors, as text encoding and parsing should be the same in both cases.
    I think the problem may be more likely related to glitches on specific co-located servers, as may have been the case with the bouncing "Report this Post" messages that I reported in another thread.
    The case that ~Bee mentioned is being addressed and is not related to the configuration issue you are referring to.
    Eric W.

  • How do I change my user id from dsgence to dsgrence? Under the menu / title I keep getting where you would see a pop-up message title "know your rights" how do I get rid of that also?

    How do I change my user name from dsgence to dsgrence? Under the title bar where you would see pop-ups a message "know your right" keeps coming up every time I reboot?

    You can post a request in the contributors forum if you want to change the user name.
    *https://support.mozilla.org/en-US/forums/contributors
    Add [ATTN ADMIN] in front of the subject title to get the attention of a forum Administrator.
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/kb/Preferences+are+not+saved

  • How to make report with access 2010 from SharePoint Discussion lists 2013

    HI,
    I want to make an access report from SharePoint Discussion lists 2013. When i open the list with access, the body of the list is in HTML format in access. Also if i reply something to one subject in the discussion, the reply is not mapped to that subject
    but instead it is shown as a separate entry in the database.
    Anyone can please help?
    SAN
    Santhiya
    Santhiya

    Hi Santhiya,
    I have seen a similar post from you, my understanding is that you wonder that the reply is mapped to the related subject. You can take a look at Daniel's reply in the following thread:
    http://social.technet.microsoft.com/Forums/en-US/dfb5bcb9-0076-412a-b34f-46aa9cfba876/how-to-make-report-with-access-2010-from-sharepoint-discussion-lists-2013?forum=sharepointgeneral
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How do I chat with a representative from Verizon?

    How do I chat with a representative from Verizon?

    Hello all! Keitoflan has some good suggestions! I would also recommend that you use the "Contact Us" link at www.verizonwireless.com. You can also call us from a non-VZW phone by dialing 800-922-0204. I'm also readily available to assist you, djyaweh! All you have to to do is post your concerns here or you can send me a Direct Message. Either way, I'm happy to help!
    DionM_VZW
    Follow Us on Twitter @VZWSupport

  • TA24960 How do you set a user photo from your photo library?

    How do you set a user photo from your photo library?

    What version of OS X are you running?

  • Hi I have iPhone 4 crack screen how much to replacement with anther one from apple store ?

    Hi I have iPhone 4 crack screen how much to replacement with anther one from apple store ?

    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task. Start with Google to search for these.

Maybe you are looking for

  • A pop-up window in Java

    Hello I have a neat little Java applet menu and would like a link from the menu to open up a pop up window in another frame. I know this can be done in Java, but is there any information anywhere which I could read to show me how to do it? Basically,

  • Can anyone recommend a Hard Drive handycam?

    Apologies for reposting this, however my original post was misleading. I had put HD handycam (which in the real world means high def) when I meant HDD (hard disk drive). Here is my corrected post: Can anyone recommend a Hard Disk Drive handycam that

  • HT1947 Rotate is not possible!!!! With new iOS 7?????????

    Is anybody to know what is up?

  • Keine Vorschau von PSD-Dateien in Photoshop Elements 10

    Hallo! Wenn ich in Photoshop Elements 10 ein Verzeichnis mit PSD-Dateien öffne, so werden diese nicht mehr in "Minibild" angezeigt. Es ist nur ein ein blaues Icon mit der Schrift PSD zu sehen. Erst beim anklicken mit der Maus wird das Bild unten groß

  • All events and albums are gone from iPhoto

    My library is still in the same location and still 540GB big, but when I open it there is nothing in iPhoto.