What is ExternalAuth in psjoa Session connect?

Hi,
I've written a test Java client to connect to PeopleSoft (tools 8.52) using the psjoa.jar as detailed in Programming Component Interfaces in Java[1]. All good, except that this requires me to keep the user's password to use in the connect method.
This method also takes a byte array called ExternalAuth, but I cannot find any documentation on what this is. Does anyone know if this doco exists, and if it is possible to use this instead of the password for authentication. If it was something as simple as retrieving the content from a PS_TOKEN cookie and sending it back as the auth data that would be ideal, but I'd just like to find some doco before just guessing at solutions.
Thanks,
1. http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tcpi/book.htm?File=tcpi/htm/tcpi06.htm

when we look at Component Interface PeopleBooks it says:
Connect
+(not used in PeopleCode)+
Connects to the application server.
Use these interfaces to call with other programming languages.
+Java: boolean connect(long apiVersion, string server, string username, string password, byte[ ] ExternalAuth)+
When I generate the Java code for a Component Interface, it generates the following:
>
//***** Connect to the App Server *****
//if the Jolt Password is to be provided, switch to the the second version of the statement below
if (!oSession.connect(1, strAppServerPath, strUserID, strPassword, null)) {
//if (!oSession.connectS(1, strAppServerPath, strUserID, strPassword, null, strJoltPwd)){
     System.out.println("\nUnable to Connect to the Application Server. Please verify it is running");
     ErrorHandler();
     return;
>
In fact this is the Session Api. When you look at the Api Reference PeopleBooks for the Session Api on the Connect method it says:
PeopleBooks > PeopleTools 8.52: PeopleCode API Reference > Session Class
Session Class Methods
Connect
Syntax
(version, {"EXISTING" | //PSoftApplicationServer:JoltPort}, UserID, Password, ExtAuth)
Description
The Connect method connects a session object to a PeopleSoft application server.
Parameters
version
Specify the API version that the client is expecting. Future releases will use this parameter. For now, you must use a 1.
EXISTING | //PSoftApplicationServer:JoltPort
Specify EXISTING if you’re currently connected to an application server. Otherwise, specify the named application server machine and the IP port to connect to on an application server machine.
UserID
Specify the PeopleSoft user ID to use for the connection. This must be a valid user ID. If you are using an existing connection, you can specify a NULL string (that is, two quotation marks with no blank space between them ("")) for this parameter.
Password
Specify the password associated with the user ID to use for the connection. This must match the password assigned for this user ID exactly. If you are using an existing connection, you can specify a NULL string (that is, two quotation marks with no blank space between them ("")) for this parameter.
ExtAuth
This parameter is required, but it is unused in this release. You must enter a 0 for this parameter.
So this parameter is not used, but still needs to be provided.
In Java supply a null for this parameter.
Hakan

Similar Messages

  • Method Session session.connection() is deprecated - version 1.6

    hi, making migration 1.4 to 1.6 version JDK, the method session.connection() is deprecated, by what method or feature you can run the code without deprecation
    a method which is used:
    public void saveFinding(DasFinding finding) {
    if (finding.getId() == null) {
    Long sequenceNumber = (Long) getSession().createQuery("select count(*) from DasFinding f where f.das = :das").setParameter("das", finding.getDas()).setFlushMode(FlushMode.COMMIT).uniqueResult();
    finding.setSequenceNumber(sequenceNumber.intValue() + 1);
    if (finding.getStatus().equals(FindingStatus.CLONE)) {
    finding.setStatus(FindingStatus.OPEN);
    Session hibernateSession = getHibernateTemplate().getSessionFactory().getCurrentSession();
              hibernateSession.setFlushMode(FlushMode.ALWAYS);
              hibernateSession.saveOrUpdate(finding);
              hibernateSession.flush();
              if (finding.getDescription() != null) {
                   try {
                        ClobSolver.insertClobString("AUD_DAS_FINDING", "DESCRIPTION", "DAS_FINDING_ID", finding.getId(), finding
                                  .getDescription(), hibernateSession.connection());                     
                   } catch (Exception e) {
                        log.error("Comments CLOB not saved for Summary '" + finding.getDescription() + "'(" + finding.getId()
                                  + ") " + "\nException : " + e.getClass().getName() + " Message(s): " + e.getMessage() + " "
                                  + e.getLocalizedMessage());
                        e.printStackTrace();
                   hibernateSession.refresh(finding);
    another method which is used:
    public void saveFindingComment(DasFindingComment comment) {
    if (comment.getId() == null) {
    Long sequenceNumber = (Long) getSession().createQuery("select count(*) from DasFindingComment f where f.finding = :finding").setParameter("finding", comment.getFinding()).setFlushMode(FlushMode.COMMIT).uniqueResult();
    comment.setSequenceNumber(sequenceNumber.intValue() + 1);
    Session hibernateSession = getHibernateTemplate().getSessionFactory().getCurrentSession();
              hibernateSession.setFlushMode(FlushMode.ALWAYS);
              hibernateSession.saveOrUpdate(comment);
              hibernateSession.flush();
              if (comment.getSummaryPosCommission() != null) {
                   try {
                        ClobSolver.insertClobString("AUD_DAS_FINDING_COMMENT", "SUMMARY_POS_COMMISSION",
                                  "DAS_FINDING_COMMENT_ID", comment.getId(), comment.getSummaryPosCommission(), hibernateSession.connection());
                   } catch (Exception e) {
                        log.error("Comments CLOB not saved for Commission Position Summary '"
                                  + comment.getSummaryPosCommission() + "'(" + comment.getId() + ") of finding "
                                  + comment.getFinding().getId() + "\nException : " + e.getClass().getName() + " Message(s): "
                                  + e.getMessage() + " " + e.getLocalizedMessage());
                        e.printStackTrace();
              if (comment.getSummaryPosCountry() != null) {
                   try {
                        ClobSolver.insertClobString("AUD_DAS_FINDING_COMMENT", "SUMMARYPOSCOUNTRY", "DAS_FINDING_COMMENT_ID",
                                  comment.getId(), comment.getSummaryPosCountry(), hibernateSession.connection());
                   } catch (Exception e) {
                        log.error("Comments CLOB not saved for Country Position Summary '" + comment.getSummaryPosCountry()
                                  + "'(" + comment.getId() + ") of finding " + comment.getFinding().getId() + "\nException : "
                                  + e.getClass().getName() + " Message(s): " + e.getMessage() + " " + e.getLocalizedMessage());
                        e.printStackTrace();
    * deleteFindingComment
    * @param comment DasFindingComment
    a another:
    public void saveFindingComment(DasFindingComment comment) {
    if (comment.getId() == null) {
    Long sequenceNumber = (Long) getSession().createQuery("select count(*) from DasFindingComment f where f.finding = :finding").setParameter("finding", comment.getFinding()).setFlushMode(FlushMode.COMMIT).uniqueResult();
    comment.setSequenceNumber(sequenceNumber.intValue() + 1);
    Session hibernateSession = getHibernateTemplate().getSessionFactory().getCurrentSession();
              hibernateSession.setFlushMode(FlushMode.ALWAYS);
              hibernateSession.saveOrUpdate(comment);
              hibernateSession.flush();
              if (comment.getSummaryPosCommission() != null) {
                   try {
                        ClobSolver.insertClobString("AUD_DAS_FINDING_COMMENT", "SUMMARY_POS_COMMISSION",
                                  "DAS_FINDING_COMMENT_ID", comment.getId(), comment.getSummaryPosCommission(), hibernateSession.connection());
                   } catch (Exception e) {
                        log.error("Comments CLOB not saved for Commission Position Summary '"
                                  + comment.getSummaryPosCommission() + "'(" + comment.getId() + ") of finding "
                                  + comment.getFinding().getId() + "\nException : " + e.getClass().getName() + " Message(s): "
                                  + e.getMessage() + " " + e.getLocalizedMessage());
                        e.printStackTrace();
              if (comment.getSummaryPosCountry() != null) {
                   try {
                        ClobSolver.insertClobString("AUD_DAS_FINDING_COMMENT", "SUMMARYPOSCOUNTRY", "DAS_FINDING_COMMENT_ID",
                                  comment.getId(), comment.getSummaryPosCountry(), hibernateSession.connection());
                   } catch (Exception e) {
                        log.error("Comments CLOB not saved for Country Position Summary '" + comment.getSummaryPosCountry()
                                  + "'(" + comment.getId() + ") of finding " + comment.getFinding().getId() + "\nException : "
                                  + e.getClass().getName() + " Message(s): " + e.getMessage() + " " + e.getLocalizedMessage());
                        e.printStackTrace();
    * deleteFindingComment
    * @param comment DasFindingComment
    thanks in advance

    I'am sorry for not using the tags, I wrote quickly, thanks.
    Yes, new version of Hibernate, until today, 3.3.0, hibernate3.jar, don't have replace the metod connection,
    P:S:
    www.hibernate.org recommend using the SPI or DoWork(),
    "Session.connection()" is used in lines of code below:
    public void saveFinding(Finding finding) {
    if (finding.getId() == null) {
    // hibernate 3.2.6 uniqueresult is now int64 => Long
    Long sequenceNumber= (Long)getSession().createQuery("select count(*) from Finding f where f.mission = :mission").setParameter("mission", finding.getMission()).setFlushMode(FlushMode.COMMIT).uniqueResult();
    finding.setSequenceNumber(sequenceNumber.intValue() + 1);
    // CR 1266
    // if the finding status is CLONE, change it to OPEN
    if (finding.getStatus().equals(FindingStatus.CLONE)) {
    finding.setStatus(FindingStatus.OPEN);
    Session hibernateSession = getHibernateTemplate().getSessionFactory().getCurrentSession();
              hibernateSession.setFlushMode(FlushMode.ALWAYS);
              hibernateSession.saveOrUpdate(finding);
              hibernateSession.flush();
    if (finding.getDescription() != null) {
                   try {
                        ClobSolver.insertClobString("AUD_FINDINGS", "DESCRIPTION", "FINDING_ID", finding.getId(), finding
                                  .getDescription(), hibernateSession.connection());
                   } catch (Exception e) {
                        log.error("Comments CLOB not saved for Summary '" + finding.getDescription() + "'(" + finding.getId()
                                  + ") " + "\nException : " + e.getClass().getName() + " Message(s): " + e.getMessage() + " "
                                  + e.getLocalizedMessage());
                        e.printStackTrace();
                   hibernateSession.refresh(finding);
    you can replicate the functionality
    thank you

  • Enhanced session connection to a VM-no audio recording

    I have a set of VMs that I'd like to connect to with enhanced session and audio redirection, but for some reason audio recording has stopped working through the enhanced session connection.  The host is windows 8.1, and the guest is server 2012 R2,
    and I have the correct policies enabled on both host and guest.  I can connect the enhanced session with the "record from this computer" selected for audio capture, but on the guest I only have playback, not capture. 
    What's really strange is that if I connect a second virtual NIC to this VM with a public IP address, I can RDP directly into this machine (through a regular RDP session, not the hyperV enhanced session), and recording redirection works just fine.  So
    far I've tried:
    rebooting host and guest
    disabling and re-enabling audio redirection
    removing the "remote audio" device in the guest's device manager
    I've also tried USB redirection using a USB audio device, and this works through enhanced session, but I'd also like to be able to get an audio connection using just the default audio device.  Anyone have any ideas?

    Hi Chris,
    According to your description , first please ensure that the recording device is redirected to hyper-v host .
    If not , please check the hyper-v host setting .
    I also read the following blog :
    http://blogs.msdn.com/b/rds/archive/2009/05/11/what-s-new-in-remote-audio-for-windows-7.aspx
    "Please keep in mind that audio capture must be enabled in the Remote Desktop Session Host Configuration on the server before it can be used."
    Based on my understanding , you may also need to enable RDSH on hyper-v host then configure desktop experience feature to enable recording .
    Best Regards
    Elton JI
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • REPAPI-26525: session connection attempt failed ...

    I've got following error-code when I'l use the function
    STORECONNECTIONOPEN from the replication OLE control:
    REPAPI-26525: session attempt failed for SYSTEM (@POLITE)
    What's wrong ? Anybody knows this error ? Exists a complete
    documentation of all REPAPI-error-codes ?
    Christian Blaha
    EMail: [email protected]
    [email protected]
    [email protected]
    null

    Christian Blaha (guest) wrote:
    : I've got following error-code when I'l use the function
    : STORECONNECTIONOPEN from the replication OLE control:
    : REPAPI-26525: session attempt failed for SYSTEM (@POLITE)
    : What's wrong ? Anybody knows this error ? Exists a complete
    : documentation of all REPAPI-error-codes ?
    : Christian Blaha
    : EMail: [email protected]
    : [email protected]
    : [email protected]
    The message above says the following
    REPAPI-26525 Session connection attempt failed for name (@name)
    Cause: A connection could not be established to the
    specified database using the provided connection string.
    Action: Check that the user, password, connect string, names
    services, network, and any remote site listener process are
    properly installed and working.
    The description of the messages can you find under the "Oracle
    Lite" Program Group (if you have at least OLite 3.5 installed)
    and take "Oracle Lite Message Help" entry (HTML)
    It seams that you do not specifiy any password within your
    StoreConnectionOpen command. Do it, take whatever you want (if
    you have again 3.5 installed; 3.6 is checking the password if it
    is correct [new feature in 3.6])
    regards
    Adrian
    null

  • Session Connection Pooling

    Hi,
    How can I find / set the size of the session connection pool?
    Thank you.
    Martin

    Martin,
    as Joel already mentioned, if you are looking for restricting the number of database sessions if depends on the operating system/database.
    Have a look at http://download.oracle.com/docs/cd/A97336_01/comm.102/a87562/apptroub.htm#631218
    It's from an older application server documentation and explains what Joel has written about process-oriented/threads architecture.
    Regards
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • ITunes Store for Windows. Everytime I try an access the iTunes Store it takes really long to connect and then it says iTunes store cannot be access. I think I am up to date with iTunes Verizon 11.0.2.26 but no matter what I try it does not connect. HELP P

    iTunes Store for Windows. Everytime I try an access the iTunes Store it takes really long to connect and then it says iTunes store cannot be access. I think I am up to date with iTunes Verison, I Have 11.0.2.26 but no matter what I try it does not connect. HELP Please???

    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • What is the difference between Session timeout and Short Session timeout Under Excel Service Application -- session management?

    Under Excel Service Application --> session management; what is the difference between Session timeout and Short Session timeout?

    Any call made from the API will automatically be set to the “Session Timeout” period, no matter
    what. Calls made from EWA (Excel Web Access) will get the “Short Session Timeout” period assigned to it initially.
    Short Session Timeout and Session Timeout in Excel Services
    Short Session Timeout and Session Timeout in Excel Services - Part 2
    Sessions and session time-outs in Excel Services
    above links are from old version but still applies to all.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • What adapter do I need to connect my 2009 Macbook Pro to my 2007 iMac?

    What adapter do I need to connect my 2009 Macbook Pro to my 2007 iMac? I get really confused with all of the different cables out there an I want to make sure I get the correct one.
    Macbook Pro Model is: Late 2009, 2.26 GHz Intel Core 2 Duo, 8 GB 1067 MHz DDR3, OS X 10.9.4 (13E28)
    iMac Model: Late 2007, 2.4GHz Intel Core 2 Duo, 4 GB 667 MHZ DDR2 SDRAM, OS X Mountain Lion (10.8.5)
    Thanks!

    The 2007 iMac does not support cabled input. see > Target Display Mode: Frequently Asked Questions (FAQ)
    Like Niel suggest's, your only option is to use a network based connection like > ScreenRecycler

  • What cables do I need to connect my 2013 macbook pro to my HD tv? I know I need mini display to HDMI, but male? female HDMI??? and also, do I need a separate cable for sound?

    what cables do I need to connect my 2013 macbook pro to my HD tv? I know I need mini display to HDMI, but male? female HDMI??? and also, do I need a separate cable for sound?

    Actually you need a Thunderbolt to HDMI adapter. It will carry both audio and video.
    This one will work: Mini DisplayPort | Thunderbolt® to HDMI® Adapter w/ Audio Support

  • HT1338 What cable do I need to connect my macbook pro to my television(hdmi)?

    What cable do I need to connect my macbook pro to my television(hdmi)?    

    If your Macbook has a Mini Display port and you want to connect it to an HDMI input on your TV you can use the Apple adapter available here;
    http://store.apple.com/us/product/H1824ZM/A/Moshi_Mini_DisplayPort_to_HDMI_Adapt er
    A similar, non-Apple connector is available on Amazon here:
    http://www.amazon.com/DisplayPort-Female-Adapter-Macbook-Pro/dp/B002HU629E/ref=s r_1_1?ie=UTF8&qid=1325274750&sr=8-1
    Hope this helps.

  • What is the correct adapter to connect my Macbook pro with mini-dvi to my TV with Scart

    I have a MacBook Pro with mini-DVI and I want to connect it to my TV which has only a scart thing.
    Can I use the mini-DVI to Video-Adapter and then a Video to Scart-Adapter?
    Thanks for your help!

    So of course you've corrected the title : "What is the right PLUG to connect my macbook pro to my TV ?"
    OK so a bit more info : my TV is a Sony Trinitron TV.
    It has the yellow/red/white plugs. I don't believe it has anything more sophisticated or recent than that.
    Thanks for your help !

  • What cable do I need to connect my 20in cinema display to my 2008 imac as I want to use it as adual screen?s, what cable do I need to connect my 20in cinema display to my 2008 imac as I want to use it as adual screen?s

    what cable do I need to connect my 20in cinema display to my 2008 imac as I want to use it as adual screen?s, what cable do I need to connect my 20in cinema display to my 2008 imac as I want to use it as adual screen?s

    Hello, depends on which 20in Cinema, but likely...
    Apple Mini-DVI to DVI Adapter
    http://support.apple.com/kb/HT3235

  • What cable do I need to connect my 27 inch iMac to my Cinema Display

    What cable do I need to connect my 27 inch iMac to my Cinema Display to have two displays?

    It depends on what type(s) of video input you have on your TV. If you've an open HDMI port on your TV, you can use a Thunderbolt (Mini DisplayPort) to HDMI adapter and it will carry the sound also. See -> here.
    Good luck,
    Clinton

  • What cable do I need to connect an i-pod classic to a Boze Wave machine?

    What cable do I need to connect an I-pod classic to a Boze wave machine?

    If you're trying to transfer the music, from the Nano to the Air, you have to either download your purchased songs again in the purchased tab of iTunes or sync them to the Air, using iTunes on your computer.
    Its been a few years since I've used a Nano, but IIRC, the only way to get the music on the device to begin with is by syncing with iTunes, so the songs have to be in your iTunes library.

  • What cable do i need to connect my macbook pro to the hdmi input on my tv?.

    what cable do i need to connect my macbook pro to the hdmi input on my tv?.

    hi Sam
    It's actally an HDMI adapter that Apple sells.
    You hook the small adapter up to your MBP and then HDMI cable to your TV. Please note adapter is for HDMI compliant for HDMI rev 1.3 and above:
    My TV, which has DVI port also, besides HDMI gets its best resolution by DVI of which also sell at Apple store for the MBP.
    Bottom line is check w/ your TV manufacture to be sure your flat screen supports 1920 X 1200.
    Let 'er rip and...
    cheers

Maybe you are looking for

  • How could i export a JPanel as a pdf ??

    is there any package to help me encode a pdf from a bufferedImage or what else ?? Thanks @

  • Question on Filter Table button

    Hi, I have a matrix with a column 'Price'. At the bottom of the form i have a button with a edit text, and when i press the button, i read every row of the matrix and i make the total of the column 'Price' and i put this total in the Edit Text. If i

  • Music deleted itself from iPod

    This has happened twice now and I have no idea why. I have a 60GB ipod and when I used it last night eveything was fine and all the songs were there. This morning I turned it one and it seemed to take a while (may have showed an icon I wasn't really

  • I can't open the templates on my Stationery Set app

    I bought the Stationery Set app and can't open any of the templates. When I click the open template button this comes up: Last login: Sat Jan  7 10:55:55 on ttys000 Allys-MacBook-Air:Ladybug.template allydrotar$ How do I open the template so I can us

  • Capacity check problems

    hi, i have some questions for the Capacity check problems in Project System. 1. if one Person is assigned to diffierent Work Centers, for example, person A is assigned to Work Center 01 under Plant 01, and Work Center 02 under Plant 02, how can i do