ADF/authentication to connect using the security of ADF (with Page of custom Login)

Hi all!

I am trying to achieve a simple project where I need my Application users to open a session before access to these pages in the application.

I found some tutorials, but most of them manually added user security, and I need them to be ONLY on the database, because I use a Web service to retrieve the data.

Here is my business needs:

  • Create a custom Login page, requesting identification by name of user and password information
  • Extract data using the Webservice (this part is done)
  • If the data matches a Session must be opened.
  • Some data user as username, preferences... must be registered on a SessionBean
  • The session must be opened up to disconnection of the user or the timeout.

Any tips/advice on how to set up the login page and follow the data Session and status?

PS: Using jdev 12 c


Best regards

Luis Cabaco

You can enable the ADF security in your application and configure the authenticator RDBMS on WLS.

http://Biemond.blogspot.BA/2008/12/using-database-tables-as-authentication.html

For the custom login page, see: https://docs.oracle.com/middleware/1213/adf/develop/adf-web-securing.htm#ADFFD2008

Dario

Tags: Java

Similar Questions

  • [Help needed] Several errors in X 40 with ADF security with or without custom login page

    OTN greetings community, I'm sorry to bother you again, but I need help again once, links to the relevant files (pastebin and imgur) are on the bottom of the post in the meantime ill try to explain my situation.

    I use version 11.1.1.7.0 for JDeveloper with (I assume) updates all of the current side.

    In my efforts to learn more about ADF, I had finished the Apps to build with ADF I guide I produce a 'simple' application to manage contacts, companies and their places of activity.

    With all my functions done and tested semi (small scale) I went ahead and and tried implement security.

    So, with the help of Andrejus Baranovskis Entry of Blog (have been using his blog as a source of information, has contributed to many situations, especially related bean) and fireboxtraining (Part1 and Part2) youtube videos, I have 2 pages, a Login Page (a dispatcher Panel 1 facet has only text showing the user names and passwords connection and the 2nd input text facet 2 related to the bean requesting the user name and Word 3rd password a button that calls the doLogin method) and an error page displays just the text.

    So after you have enabled security, create 2 users, create 2 roles of the company, creating application roles 2 and associating all 2 grants of right one to each role app giving privilege to see on the pages I want, I developed (my goal is that in the homepage, using a mixer according to user's role would display a region that all data can be changed or another that all data is read-only but I don't that have not yet implemented).

    So I went on the test page and unfortunately I hit the 1st wall would not display the login page (seemed to be always be update a blank page in firefox) so I checked if the pages are in the anonymous role and they were. So, as I saw in the video I deleted the page definition files in the Databindings.cpx file and I am past the 1st obstacle has shown the login page. So I typed the username and passwords and I hit my second wall (error 404 - Not found), I saw the code, debugged it and found that he wouldn't be able to hang or something like that (forgive me for my brutal inexperience) then I disabled the security and reactivated with pages of default form, and when it prompted me to type the user name and password I had hit my 3rd and last wall (error 401 - no allowed) which we I didn't wait, I went in the jazn-"Data.xml" and looked if the grants/permissions/roles were ok, in my inexperience, I don't find any problem, so beat I come here to seek support.

    Code:

    MyLoginBean

    MyJazn-"Data.xml"

    MyWeb.xml

    Error logs:
    OnDeployment

    OnLogin

    Screenshots:

    404 full

    401 full

    Sorry for the long post and to put the code in another site (not wanted to put this post more than it already is).

    Thank you very much for your time and your support.

    Hello

    Article http://www.oracle.com/technetwork/issue-archive/2012/12-jan/o12adf-1364748.html

    comes with a sample download, run and explore.

    http://www.Oracle.com/technetwork/issue-archive/2012/12-Jan/o12adf-524995.zip

    It includes all your use cases. So I suggest that start here

    Note that following the code has experienced problems with recent versions of the IDE instead of a side server before we recommend (and will amend accordingly our documentation) to use a redirect on the facesContext--> externalContext instead (I'm typing through while it's not his apparent

    recommended and more)

    ' Private Sub sendForward (HttpServletRequest, HttpServletResponse response, forwardUrl String query) {}

    FacesContext ctx = FacesContext.getCurrentInstance ();

    RequestDispatcher dispatcher = request.getRequestDispatcher (forwardUrl);

    try {}

    Dispatcher.Forward (request, response);

    } catch (ServletException to) {}

    reportUnexpectedLoginError ("ServletException", is);

    } catch (IOException ie) {}

    reportUnexpectedLoginError ("IOException", IE);

    }

    ctx.responseComplete ();

    }

    Frank

  • Why can't connect using Apple Airport WIFI of my remote security cameras but can connect using the Xfinity WIFI Modem/Router open?

    Why can't connect using Apple Airport WIFI of my remote security cameras but can connect using the Xfinity WIFI Modem/Router open?

    Two possibilities:

    (1) your airport WiFi might have a network name that is not in line with best practices, wireless

    A good wireless network name is...

    ... In short no more than 20 characters

    Simple... no special characters like an apostrophe, dollar sign, asterisk, etc.

    Compact, without spaces in the name

    For example, a wireless network network name as... red .dfedoryk Apple wireless network... .is not what you want. Something like... .dfedorykwireless. .. masse are much more likely to connect to non-Apple devices.

    Same guidelines your password

    (2) Apple gives the same name to network 2.4 GHz and 5 GHz network that produces double router band.  Some non-Apple devices are confused by the present, you may need to use the option to assign a different name for the network of 5 GHz on the router from Apple. Then, 'point' your device to the network name specific to which you want to connect.

  • Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value.

    Prob Winmail.

    Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value. Do you want to continue? ». This started happening after that my laptop has been reformatted. I have synced with Gmail winmail and followed the instructions to do this correctly. By pressing the tab 'Yes' allows me to use winmail, but it's a little embarrassing.

    Using a digital signature?  Check the settings under Tools | Options | Security and also tools | Accounts | Mail | Properties | Security.

    Also, see here (http://mail.google.com/support/bin/answer.py?hl=en&answer=86382) and make sure that your settings are correct.

    Steve

  • The server that you are connected using a security certificate which cannot be verified... The name main target is incorrect... You want to continue using this server?

    All new computer running windows 7 64 bit, outlook and office 2007 installed, initial problems with the temporary user profiles, follow up advice and removed user profiles in the system registry and all seemed to go well. Computer works for about a week with two user profiles and now all of a sudden I get an error message when I start Outlook and from time to time when you browse the internet, it reads:

    The server that you are connected using a security certificate which cannot be verified... The name main target is incorrect... You want to continue using this server? (If I hit Yes then I can send emails)

    When I open view certificate it says: this root CA certificate is not approved. To enable trust, install this certificate into the store certificate authorities roots of trust. (Attributed to and: Cisco device demo certificate - valid from 10/02/2009 to 03/10/2019).

    Problem is I don't know what the certificate is, what I need, to find out how locate, how to move etc, I have read a few forums, but they are starting to be too technical. I need help for step by step easy.

    I tried to uninstall outlook 2007 and reloading and clearing of the States of ssl in internet options, and then reset by default (as someone suggested), but it made no difference.

    Problem is when you leave the store with the new computer, nobody wants to know you if you need assistance!

    Can someone please help? Thank you

    Hello

    Welcome.

    Just a tip, never download and install anything on your PC, unless you know and trust him.

    > «Computer brand new...» I need help for step by step easy. »

    Contact the PC manufacturer emphatically support team.

    > ".. . Office 2007 installed...

    Support to the: http://answers.microsoft.com/en-us/office/default.aspx#tab=1 and ask your question in Outlook it.

    You can also check if this problem occurs when you use Windows Live Mail, which can be downloaded on: http://download.live.com/wlmail.

    > «Server that you are connected using a security certificate which cannot be verified...» »

    Just learn more about the certification of server to the: http://en.wikipedia.org/wiki/Certificate_server .

    Remember: keep the system tools and security update.

    Success.

    Rgds.

    itconcerned

  • Satellite A300 - does not connect to the secure network to WPA

    Help please... new Toshiba Satellite A300 - running XP Professional with atheros AR9281 (driver 7.6.0.200) wireless network adapter will not connect to the secure networks, WAP, but seems to be fine with the WEP and non secure networks?

    I can connect to my WAP secured network using LAN cable and also if I use an external Netgear wireless adapter, so the problem is probably with this adapter or driver. I updated the bios and tried update driver, but no luck. Current driver is (I believe) more up to date?

    Would be grateful for your help.

    Thank you.

    On the Toshiba site is a newer version of the driver available (7.6.1.149.1)
    Then I would try the new driver.

    Consult the Toshiba site:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

  • Problem with USB auto connect with clients that connect through the Security server...

    Lack of VMware View 5.0.1 with 2 servers connection and a security server. When the clients connect directly to the server connection, USB connection works very well... users can use their USB drives and other devices with their VM. The problem occurs when they attempt to use their USB devices when negotiated through the Security server.

    I know that port 32111 (TCP) must be open between the server security and the connection to the server, but even after doing so it does not always work... customers just to get the scrolling message of office in the USB menu initialization.

    Our current facility is:

    External IP address-> DMZ (Security Server)-> connect to server

    Entrust us our firewall config through our ISP (we are not overloaded with scientists here, it's just me, so things like little help my work load). They are certainly not incompetent (or at least were not in the past). I had to open the external 32111 IP port to the DMZ, then of the DMZ to our connection server that is used for external connections. Everything about VMware View works perfectly for the clients that connect this way, but not USB devices.

    One thing I give is if our having a configuration of VLAN dedicated for customers views influence what either. I'm trying to keep an eye on what ports are open that for our firewall for my records, but I do not see where I openly opened ports on the internal side of security server to our internal network. He must have the port opened directly from the internal face of security server of vmware 32111 discovers clients?

    The firewall Guys tell me that they checked over and over that port 32111 is open throughout the. They also said that they tried to telnet 32111 to our security server port and have nothing back (should have gotten garbage at least according to them).

    An idea of the next steps to take? It is obviously a blocked port, I just have no idea why at this stage.

    I know that port 32111 (TCP) must be open between the server security and the connection to the server, but even after doing it still does not work

    This is not what it takes. The agent is listening on the port 32111, you must open the firewall to allow connections to the Security server for the desktop on port 32111 (same thing you must allow RDP and PCoIP).

    Mike

  • Unable to connect using the current password

    Using the current password which only had 6 characters - have now changed to 8 hope if this helps solve the problem.
    Have you noticed too there was an update of Mozilla on my laptop the day before that this problem then this could be the reason?

    Unable to connect using the current password

    It is far from a complete problem description.
    Please explain in detail

    • what you were doing
    • That's happened

    Using the current password which only had 6 characters

    6 characters is a very weak password. Consider using a password manager to generate longer and more complex passwords and to remember these passwords.

  • When a second (another) user tries to connect using the connection to distance that a message "select a user to disconnect so you can connect.

    Original title: Remote Desktop

    We have Windows Server 2012 essentials (evaluation version) installed and working.  When connecting to even via the remote desktop connection it works fine, but when a second (another) user tries to connect using the connection to remote, a message "select a user to disconnect so you can connect.  The names of the 2 users are displayed the first is the name of the administrator of the local server and the second is the remote desktop user who was first.  We need at least 3 to 4 remote desktop both users to be connected.  Please advice

    Hi BHARATISRANI,

    Thanks for posting in the Microsoft Community.

    Since you are using Windows Server 2012 Essentials, the question you posted would be better suited for COMPUTING public Pro on TechNet. I would recommend posting your query in the TechNet Forums to get help:

    Windows Server 2012 Essentials General TechNet Forums

  • Get rid of the current wireless network connection so that I can set up a new connection using the same IP address.

    Here's my problem: I got a new computer and a wireless network connection has been set up and I could get on the internet. My daughter then wanted to try her new computer and somehow his computer is defined as the network and I can no longer connect to the internet via my computer.

    The second part of my problem is that when I try to configure my computer, I get the message that I need to go to the Micro knowledge base and article 871122.
    I did it.  By following the instructions for Windows configure my wireless, I get as far as the stage of network connections - go to change the settings for this network connection.  It is said that I had to go to the wireless network tab.  There is no tab wireless network I can say to use Windows to configure my network connections...

    I know it is long, but can someone help.  I use Windows XP Prof 2002 with service pack 3 version. Thank you adpotate

    (1) make sure that u run "NET START WZCSVC" on the command-line as soon as u Ouvrezunesession WINDOWS XP (START, RUN, NET START WZCSVC (command line)).

    (2) START, CONNECT, WIRELESS INTERNET CONNECTION

    --> under the 'GÉNÉRAL' tab: (1) right click on the wireless Internet connection; (2) click on properties; (3) make sure that all THE ELEMENTS under the title "THIS CONNECTION USES THE FOLLOWING ITEMS" are COMPLETELY FUNCTIONAL, i.e. UNCHECK THE ONES THAT DO ARE NOT ACTIVE ~!  (I recently turned off AVG and that this item has been inadvertently clicked on ~!) ;

    --> on the 'ADVANCED' tab: run the NETWORK CONFIGURATION WIZARD to reset your network

    3) http://support.microsoft.com/kb/871122 --> RUN 'DIFFICULTY CE PROBLEM' (ms - fix 50469)

  • VPN could not establish a connection to the security gateway

    My VPN connection worked, but now after several hours I can not connect.

    My LAN works. (Windows Server 2003)

    The app:

    Cisco Systems VPN Client

    The error message:

    Opening TCP to 209.189.224.138, port 10000...

    Communicating with the gateway to 209.189.224.138...

    Cannot establish a connection to the security gateway.

    What could be the problem?

    Thank you

    Greg

    Hi greg,.

    on the properties of tunnel-> transport mode, click ipsec over UDP and try to connect... I think that, from now on, you connect via TCP 10000.

    Concerning

    REDA

  • Multimedia file sharing only works if the two devices are connected using the same protocol

    So I'm frustrated!

    I spent an hour trying to get my Windows 7 computer to share my music with my XBox 360. I have two machines on my network, one connected by Ethernet to the router and the other connected by WiFi. I tried everything I could find online to get the WiFi connected machine appears in the "Music Player" on my XBox system - follow all sharing, make sure that my router has UPnP, restarted a bouquet of services, etc..
    Nothing! During this time, my machine connected to Ethernet was watching me in the face. He has appeared on the XBox without problem. I started to compare the settings on both machines and found no difference.
    Then I remembered, boredom, I had setting up WiFi sync for Windows Phone my wife. In fact, it was this session of troubleshooting that lead me to put this machine on the WiFi in the first place! Seems to set up WiFi sync, Windows Phone and the target of the machine must be, not only connected to the same network (obviously), but for some reason any the $ @$ crazy, both connected by WiFi. I just connected this computer by WiFi - not happy, a faster speed with my wired connection - and immediately fixed the problem itself.
    Then, remembering that, I moved my XBox WiFi network and - presto - my second machine appears without a problem.
    My question is... WTF! ???
    This is ridiculous - this is the same network! Why things must be connected using the same protocol?

    Hi, Edward Petersen,.

    Please contact the Microsoft community. I'll help you solve the problem with sharing music using media sharing.

    Some routers isolate the cable connections and wireless, you can check if you have the option in the configuration of the router to share media

    If the problem occurs, you can contact the router manufacturer for assistance.

    Hope this information helps. If you need help with Windows, simply reply that we will be happy

    to help you.

  • Hello I can not connect using the camera Nikon D5 me please

    Hello I can not connect using the camera Nikon D5 me please :)))
    I've heard say that some work and I can not connect! Can someone help me to write on this topic?

    LR supports D5 attach now!

  • After changing the orainventory place im unable to connect using the oracle user

    Hello

    IM using oracle 12 c on rhel 6 after correctly installing the software, I changed the location of oravinventory in/data/houses

    / u01/app/Oracle

    After making these changes im is no longer able to connect using the oracle user...

    also I back return changes I had made to the orainventory folder still unable to connect using the oracle user...

    any help on this would be greatly appreciated

    Sadia. wrote:

    Hello

    IM using oracle 12 c on rhel 6 after correctly installing the software, I changed the location of oravinventory in/data/houses

    / u01/app/Oracle

    After making these changes im is no longer able to connect using the oracle user...

    also I back return changes I had made to the orainventory folder still unable to connect using the oracle user...

    any help on this would be greatly appreciated

    Newer versions of oracle have implemented a great new technology to help solve problems, called "error messages."  Unfortunately, I can't find any reference to an error message named 'is no longer able to connect.

    And why you are moving your site from inventory?  When you have installed oracle, he put the inventory where he wanted.  There is no reason to try to change or replace.

  • A report that will show how a user has used the secure area?

    Hello everyone.

    I need to view a generated in the report on the activities of the Member section to securezone.

    The ideas are greatly appreciated.

    I've tried selecting the protected area (in the areas of Secure), click on action -> View Secure area usage report

    But it just displays: no data available for the period selected. no matter how to set the filter of time.

    Best regards

    Jones

    It seems that it is a duplicate to your message in this thread: is there a report that will show you how a user has used the secure area? . I will follow on this issue on the same thread.

Maybe you are looking for