How to get more information about the user using SecurityContext ADF?

Hello.

In my application I have a table use:

CREATE TABLE ("ADM_USERS"

ACTIVATE THE 'ID' NUMBER(*,0) NOT NULL,

ACTIVATE THE 'U_NAME' VARCHAR2 (30 BYTE) NOT NULL,

ACTIVATE THE "U_PASS" VARCHAR2 (255 BYTE) NOT NULL,

VARCHAR2 (30 BYTE) "NAME."

VARCHAR2 (30 BYTE) 'NAME')

I configured the WebLogic environment using the the "reading- SQL only the authentication provider ' and then I configured ADF Security as ADF authentication -> Forms -authentication.

I connect the user using the method of ""doLogin " and all that working properly. "


public String doLogin() {}

String _username =;

Byte [] pw = _password.getBytes ();

FacesContext fctx = FacesContext.getCurrentInstance ();

HttpServletRequest request = (HttpServletRequest) () .getRequest () fctx.getExternalContext;

try {}

Topic topic = Authentication.login (new URLCallbackHandler (UN, pw));

ServletAuthentication.runAs (object, request);

String loginUrl = "/ adfAuthentication?success_url=/faces/Registry.jsf";

HttpServletResponse response = (HttpServletResponse) fctx.getExternalContext (m:System.NET.FtpWebRequest.GetResponse ());

sendForward (request, response, loginUrl);

} catch (FailedLoginException fle) {}

FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, "Incorrect name or password","Incorrect name or password" "");

fctx.addMessage (null, msg);

} catch {} (the LoginException)

reportUnexpectedLoginError ("LoginException", the);

}

Returns a null value.

}

securityContext.userName returns the value of the 'U_NAME '.

How to make more information on the user connected such as NAME, ID, first NAME?


And the second question:

How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?


Concerning

Darek


securityContext.userName returns the value of the 'U_NAME '.
How can I get more information about the user logged as NAME, first NAME, ID?

You can not.

You need to query DB.

How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?

Record this value in UserData structure so it will be available in the model. http://andrejusb.blogspot.com/2012/05/solution-for-sharing-global-user-data.html

Then use as default expression for your objects of entity attributes (something like: adf.userSession.userData.yourUserDataVar).

Dario

Tags: Java

Similar Questions

  • How to get more information about the users in oracle 11g

    Hi all

    I need to know more information on users in oracle 11g.

    1. how to check when user times last connection to the database.
    2. If the user account is blocking why it is blocked? If it is locked trying Loing with wrong password how to check how many times he tried with wrong password... and other reasons also
    3 reaction strives to select user expire date is to show the value empty... we can check expire date by querys or we need to check the profile?
    4. how to check while he was reset his password, the last time.

    Please correct me if am wrong. Thank you

    Concerning

    1. how to check when user times last connection to the database.

    AUDIT

    2. If the user account is blocking why it is blocked? If it is locked trying Loing with wrong password how to check how many times he tried with wrong password... and other reasons also

    Check the profile of this user and attr.

    3 reaction strives to select user expire date is to show the value empty... we can check expire date by querys or we need to check the profile?

    SQL> select EXPIRY_DATE from dba_users ;
    
    EXPIRY_DA
    ---------
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    23-MAY-13
    24-SEP-11
    24-SEP-11
    24-SEP-11
    

    check
    EXPIRY_DATE in dba_users is null

    4. how to check while he was reset his password, the last time.

    SELECT SYS PTIME. THE USER$;

  • I get threatening and abusive emails to a windows live user, how can I get more information about this user to report.

    e-mails in danger

    I get threatening and abusive emails to a windows live user, how can I get more information about this user to report.

    The information is provided in the source of the message. In OE, Windows Mail and WLMail, Ctrl + F3 reveals this.

  • Get more information about the last error in Oracle

    Hi all

    There is a newspaper in a live system where it is possible to see every minute the following error:

    Scan incident [48073]: failed, err = [1858]

    I know that the error may occur primarily when:
    1 try to insert caracter field into a numeric column
    2. use to misuse the function to_date()


    I need more information about this error, it may be the cause of the error in the system and why. Is it possible to see more information about past errors in Oracle? For example, if a query generates an error... is it possible to see in Oracle, the error and the query that caused the error?

    Hope you can help me.

    Thanks in advance.

    Hello

    Your error has been detected by the repository of auto diagnosis, lack of gather incident details correctly. There are a couple of metalink notes apparently relevant, then I would say that you start with the connection a SR with Oracle (for reference, they refer to a bad installation of oracle or a corruption of the oracle software)

    Niall

  • How to get more information in the response from the server "250 OK < additional info here >.

    Hi all

    I use javamail to send e-mail messages through an SMTP server that responds as follows when I finished sending my DATA:

    250 OK < additional information here >

    How can I get the text < additional information here > use javamail?

    I use the javamail 1.4.3 release. Messages are sent using Transport.send (message mime, containers []).

    Thank you very much for your help.

    Best regards
    Antonio

    You will need to manage the object yourself (see the FAQ for examples,
    (or the smtpsend.java demo program), and then use the SMTPTransport.getLastServerResponse)
    method (see the javadocs and the demo program).

  • How do know us that now the user using the server component

    Hi all

    Suppose a user loged in to the siebel application.and requested for an object manager/component.and as the user who got. But this particular component is active in a portion so how do we know that now the user using the component.means Server user is in what server to use this object manager component.


    Concerning
    Remy

    Using Server Manager, to connect without specifying a server, then run a command to sessions list for your device and you will see the user and the server.
    Best regards
    EvtLoglvl

  • How to provide custom information to the user in the InfoBar

    In a previous thread (authorization re - data charges Essbase without erasing existing data it has been suggested that it is possible to provide information to the user via the 'information' window. I guess that this refers to the information bar window that appears when performing different tasks in web client FDM?

    If so, how you get there? The Administrator's guide is only seems to point to Administration | Web settings, where you can customize the behavior of the information bar. But is it possible to load the message and set the type of message (info, warning, error) from a script of the event?

    Yes, you can fill a script of the event. There is an accelerator of General utility to "Display the information bar Message".

  • Windows Explorer has stopped working windows is collecting more information about the windows problem restarts what is the fix

    Is not allowing me to access my computer, don't constantly message restarts message windows.   Process is underway, need help.  I loged as a guest on the computer problem not if badly - however, it does not go to all the pages and begins to have a similar message to say windows cannot open this page, even if it often is in the page and it stops.

    a response would be email to me - thanks

    Hello

    1 have had any changes made to the computer before the show?

    Please follow the steps in the link.

    Important: before you perform an upgrade in-place, you must be prepared for the worst scenarios that led to your existing data on your computer being deleted. These data include data personal, settings, information about the hardware and software drivers. In case of a worst case scenario, you may have to reinstall all the programs. Make sure that you back up personal data to disks or other external storage devices before performing an upgrade on the spot.

    Error: Windows Explorer has stopped working

    http://support.Microsoft.com/kb/2694911

    Reference link:

    Explorer Windows stopped working

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3

  • How to get a glimpse of the Chrome using Adobe Dreamweaver PHP page?

    How to get an overview of the PHP page on Chrome with Adobe Dreamweaver CS 6 using Xampp. When I click on "Preview in Chrome.pic2.png

    When I click 'Yes' and the site configuration parameter, I don't understand what to do in the server side.

    pic3.png

    Click on the sign (bottom left) to create new server details.   See screenshot.

    Your directory of default web in XAMPP's htdocs.

    Folder on the server: C:\xampp\htdocs\yourSiteName

    Web URL: http://localhost/yourSiteName/

    Don't forget to add the template to your test server (Advanced tab).

    Nancy O.

  • How can I use the REST API to get general information of the user (Signature fields)?

    I'm trying to use the API to get the signature of all the users of the system fields. I can see this information in the web browser if I go to settings-> user management-> and selecting the user.

    I would like to know if there is a way to get the information General information (Signature fields) using the API.

    Thank you!

    Hi Sai,

    The REST API exposes the user records (see the following document); However, signature fields are not included. We need to work on this addition to the API (in a later version), but the option is currently not available.

    Please let me know if you have any questions or would like more information.

    Thank you

    Fred

  • More information about the "Windows + r" scam

    Thanks to everyone for this discussion.  Very useful.

    I received the call from the scam yesterday; sounded plausible semi because I had recently presented an MS error report, as well as the scammer had my name and my number.  OK, I was not awake, either.  I follow the 2 steps to the "Run" dialog box  Enter "cmd", and then the event history.  Then I woke up and disconnected, so I think I'm safe.

    My question is, how in the world this crook has my name, phone number, AND the software license number (he read off to me when I used the entry 'cmd')?

    Thank you for any clarification.

    HD

    Scammers are good at what they do.  You name & phone number could be from any source data extraction.  Enter orders that there you probably were for the product number that is the same for all users of win 7 (once again a good guess)

    If you can tell us the orders he had you enter we can give you more information.

  • How to get zone selected by the user in the Managed bean code

    Hello

    In our project, we use af:inputDateto to get details about the information of Date, time, and time zone.

    < af:inputDate label = "#{bundle." LABEL_1}.
    autoSubmit = 'true '.
    value = "#{pageFlowScope.attributeValuesBean.DateTime} '"
    valueChangeListener = "#{pageFlowScope.resourceCreateEditBean.pageValueChangedListener} '"
    ID = "id3" >
    < af:convertDateTime type = "both" timeStyle = timeZone = "#{"long"pageFlowScope.resourceCreateEditBean.preferredTimeZone}" / > "
    < / af:inputDate >

    the value attribute of date. MinValue is mapped with pageFlowScope.attributeValuesBean.dateTime which is a java.util.Date.

    for specific details, I used following code

    SimpleDateFormat sdf = new SimpleDateFormat ("dd MMM yyyy hh: mm: z");
    String s = sdf.format (date);

    which returns the date in the format "dd MMM yyyy hh: mm: z". However, this API will always return timezone of server, and in accordance with our project we need the details of the user selected time zone.

    is it possible to get the time zone selected by the user on the dateTime picker?

    Ajay,

    When LOV TimeZone is active on the date picker, it is not possible to retrieve the time zone selected by the user. There is an enhancement request filed for this feature.

    Since this is a known issue, there is a way to accomplish what you want:

    (1) the date picker does the conversion of the local time zone to UTC (GMT) time and provides a Java Date object.
    In order to bypass this conversion, you can use one of the techniques is:

    It's basically asking for the date picker to convert time UTC time UTC (no conversion) :-)

    (2) separate the zone LOV the date picker. You can use the function af:getCommonTimeZoneSelectItems() for this purpose.

  • Cannot see the details of the certificate when you try to display more information about the certificate. Need a fix as soon as possible!

    When you click on the padlock to the left of the URL > right arrow > and then click more information > to view details about the certificate Details page > view certificate, I see nothing and nothing shows me the certificate. I need this job to be able to view Details of the certificate and encryption information pages

    Hmm, you are using the all-in - One Sidebar extension? It has a compatibility issue with the Page Info dialog box in Firefox 42. See: FF42 - view Page Info - media tab is missing.

  • How to get emails hidden with the user names and passwords

    Husband hiding accounts email and user name and passwords for online dating sites

    Crisnray1994 said

    Husband hiding accounts email and user name and passwords for online dating sites

    Hello

    We hope that you do well. I'm sorry, that would be a violation of the privacy policy of Mozilla that we work hard to maintain.

    I would say to him talk about it perhaps?

    Hope you will be able to get to the bottom of this somehow.

    -Michael

  • Satellite A660-10 x - need more information about the password in the BIOS mode

    Hello

    When I go to the bios there are Security tab when I have things like user password, password mode password hdd/ssd and supervisor + user password hdd/ssd.

    I have not found no documentation mode "password hdd/ssd" is for and what is the difference between 'User only' and 'user + Master' and how it works.

    Could you please give me some info, how does it work?

    Best regards

    Hello

    This is a password disk HARD useful summary:
    http://APS2.toshiba-tro.de/KB0/TSB6B01MC000CR01.htm

    _HDD password user and HDD Master Password: __________
    There are two levels of password of HDD, HDD user password and the HARD drive password. If two levels of HARD drive password have been registered, you can access the HARD disk by entering one of them. Password of TOSHIBA (TPU) utility supports only the HARD drive password. If you want to register both, open the CONFIGURATION of the BIOS. If the HARD drive password has been saved, the drive HARD master password cannot be saved

    I hope this helps a little

Maybe you are looking for

  • the TAB how can I open in window 1 (24.0 Firefox)

    I need to open a large number of themin any case THX YARENTY

  • Satellite A210-019: startup: error - tcrdmain.exe R6025

    My new computer during startup comes up with the message: error when startingc:\Program files Toshiba------fash card\ tcrdmain.exe R6025 pure vitual fuction call All the solutions out there would be a help

  • Synchronization between the 3 devices

    All my music on iTunes is currently on my MacBook. I want to be able to access it through my iPad and iMac, too. But it does not appear on these devices, even if I have home sharing and my settings are configured to synchronize. What I'm doing wrong,

  • Spotlight search in compressed .zip files

    I was told that Mac, including users with the Mavericks can search files in compressed .zip files. I had an experience of zip files using the 'Compress' command of the Mac, then threw the original uncompressed files and emptied the Recycle Bin. Spotl

  • 9401 on cDAQ9178 acquisition of 2 coders

    Hello I have a problem to pour two acquisitions buffered on a NI9401 card mounted in a cDAQ9178. If I try to do a task (in MAX) with ctr0 and ctr1 Escalin 9401, I got a message telling me that I can't have just a meter by task. If I spot two do, exec