Creating a recordset filtered by login credentials

Hello everyone... I'm really hoping I can get an answer to
this...
I've created a login page using the "login user" behavior and
it works perfectly. But I'm having trouble identifying the user
after they've logged in. For example, I may want to greet them by
name "Hello Michael!" after they've logged in... for the life of me
I can't get it to work.
I've tried using the POST variables sent from the login form
and I've tried using cookies set from the login form... neither
works.
When I test the recordset in the recordset dialogue box
(where it asks you to provide a value for testing) it works, so I'm
just totally confused.
How can I perform a database query using the data supplied at
login? (Login being the inherit "login user" behavior in DWCS3)...
Seriously, I can't tell you how much I would appreciate some
help here... Maybe it's because it's 3:15am and I'm tired... but
I'm pulling my hair out.
GRACIAS.

I solved my problem and I thought I'd come back and post it
here in case anyone else has the same problem.
The log-in server behavior creates a session variable for the
username submitted on the login page. The variable is called
"MM_Username". You can use that session variable as your filter
criteria on following pages to call that user's record from the DB.
Hope that helps...

Similar Messages

  • How to pass login credentials dynamically to secured partnerlink in a BPEL

    Hi,
    I am trying to invoke a secured web service from a BPEL.And requirement is to dynamically pass the username and password . I have done the following steps to pass the login credentials to the partner link.
    Infact I have followed one of the oracle forums.BUT ITS NOT WORKING.
    ====================================================================================================
    1. Imported the xml schema "oasis-200401-wss-wssecurity-secext-1.0.xsd"
    2. Created a variable "SecurityContext"
    <variable name="SecurityContext" element="ns2:Security"/>
    3.Created a copy rule.
    <copy>
    <from>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:Username>myusername</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">mypassword</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </from>
    <to variable="SecurityHeader"/>
    </copy>
    4. Added the following xml to the invoke operation.
    <invoke name="Invoke_1" partnerLink="UnitHealthService"
    portType="ns1:UnitHealth" operation="queryUnitHealthInfo"
    inputVariable="Invoke_1_queryUnitHealthInfo_InputVariable"
    outputVariable="Invoke_1_queryUnitHealthInfo_OutputVariable"
    bpelx:inputHeaderVariable="SecurityContext"/>
    5. Deployed the BPEL sucessfully.
    6. Output message given by BPEL console is
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is a28500bf6f4d1dc9:- 488f4503:1215f79430f:-7d71. Please check the process instance for detail.</faultstring>
    </Fault>
    7. In the VISUAL flow diagram , message generated by the Invoke activity is as below:
    <summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized</summary>
    So FINALLY ITS NOT CONNECTING.
    ====================================================================================================
    When I created the properties and hardcoded the username and password like below, its worked.
    <property name="basicHeaders">credentials</property>
    <property name="basicUsername">myusername</property>
    <property name="basicPassword">mypassword</property>
    Can anyone suggest HOW CAN I DYNAMICALLY PASS USERNAME AND PASSWORD to the secured web service via partner link??
    Thanks,
    Kumar

    I have tried it but itwas not working..
    I am not able to set exactly the copy rules given in that blog as that blog has wsse:password king of assignments where as when I try to assign , I have the asignment like /ns2:password .
    Am I mising something here?
    I have imported only oasis-200401-wss-wssecurity-secext-1.0.xsd.
    Thanks,
    Kumar
    Edited by: GenuineOracle on Jun 2, 2009 5:38 PM

  • How to change the error message Invalid login credentials

    Hi all,
    How to change the default error messages .
    1) In the Login page while giving wrong username or password .It showing
    Error message "Invalid login credentials".
    But requirement is change the above error message.
    2) I need to change the error message instead of "1 error has occureed"
    Thanks in Advance
    Sudhakar

    On the Login Page of the application create a 'Before Header' process with this code if  apex_application.g_notification ='Invalid Login Credentials' then
             apex_application.g_notification :='Your Altered Failed Login Message Here';
      end if;varad

  • Operating System Login Credentials

    I have setup an Oracle 11g Database and have a question about backing up the database. Currently, I have logged into the database via Enterprise Manager. I have browsed to the Availability->Backup settings and I see that at the bottom of the page I need to supply Operating System Login Credentials.
    Do I need to create these credentials? If so, can I have a little help to do this, or if not, how to I retrieve these details?

    996403 wrote:
    I have added the 'log in as batch job' priviledge to the Administrator user.
    I have then setup a password for the Administrator.
    I then try and log into Oracle via the Enterprise Manager with the Administrator user details, but get the "Your username and/or password are invalid." error.When you "log into Oracle via the Enterprise Manager" you are logging into the database itself. You need to use a valid database account and password. You originally asked about being prompted for host credentials once you were logged in to Enterprise Manager and wanted to execute certain functions. That's not the same thing.
    To initially log in to EM, you supply database account credentials. If a function within EM needs to interface directly with the OS, it will need host (OS) account credentials.

  • EssBase: Login fails due to invalid login credentials

    I am currently running Hyperion System Planning 9, authenticating users through my LDAP server and am having a problem creating new users. I have gone through what I believe are the steps I need to take and have created my users but now when they try to login to EssBase, through the excel add-in, I get this message: "Login fails due to invalid login credentials"
    I have searched the forums and the Essbase knowledge base and have come up empty. The only thing I have found is this:
    "You just need to provision your shared services user with access to Essbase. Right-click on your user, select provision and then give them the required Essbase rights."
    I have provisioned my users several times and made sure that they are added to the correct groups but they still can't log in.
    Has anyone had this issue before?
    Thanks,
    J

    Another point that you need verify, the service sequence:
    1. Start the analytic Services
    2. Star analytic Administration services.
    regards,
    Wallace

  • Authentication - "Invalid Login Credentials" ? ? ?

    Hey guys,
    Need some help regarding Log in.
    I have a table in the database (table name USER_SECURITY) which has the list of users who are authorized to log in to the application.
    I have to incorporate this in the application page
    Could you please help me with the logic how to go about it in APEX
    Thank You for your help and suggestions
    Jesh

    Hi,
    I did try the link and it helped me understand alot, [ http://djmein.blogspot.com/2007/07/custom-authentication-authorisation.html]
    and I tried an example as mentioned in Duncan Mein's Blog and it did work, but then when I try to use it in my application and entered the username and password it says *"Invalid Login Credentials".*
    Here's the code I used:
    The table was already created in the database: ASQ_USER_SECURITY
    has four columns: USER_ID, USER_ROLE, USER_NAME, PASSWORD
    Created an Application Security Package
    CREATE OR REPLACE PACKAGE app_security_pkg
    AS
    PROCEDURE add_user
    p_user_id IN VARCHAR2,
    p_user_role IN VARCHAR2,
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    FUNCTION get_hash
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN VARCHAR2;
    PROCEDURE valid_user2
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    FUNCTION valid_user
    p_username IN VARCHAR2
    ,p_password IN VARCHAR2
    RETURN BOOLEAN;
    END app_security_pkg;
    CREATE PACKAGE BODY
    CREATE OR REPLACE PACKAGE BODY app_security_pkg
    AS
    PROCEDURE login
    p_uname IN VARCHAR2
    ,p_password IN VARCHAR2
    ,p_session_id IN VARCHAR2
    ,p_flow_page IN VARCHAR2
    IS
    lv_goto_page NUMBER DEFAULT 1;
    BEGIN
    IF UPPER(p_uname) = 'ADMIN'
    THEN
    lv_goto_page := 1;
    ELSE
    lv_goto_page := 1;
    END IF;
    wwv_flow_custom_auth_std.login
    p_uname => p_uname,
    p_password => p_password,
    p_session_id => p_session_id,
    p_flow_page => p_flow_page || ':' || lv_goto_page
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END login;
    PROCEDURE add_user
    p_user_id IN VARCHAR2,
    p_user_role IN VARCHAR2,
    p_username IN VARCHAR2,
    p_password IN VARCHAR2
    AS
    BEGIN
    INSERT INTO app_users (USER_ID,USER_ROLE,USER_NAME, PASSWORD)
    VALUES (p_user_id,p_user_role,UPPER (p_username),
    get_hash (TRIM (p_username), p_password));
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    ROLLBACK;
    RAISE;
    END add_user;
    FUNCTION get_hash (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN DBMS_OBFUSCATION_TOOLKIT.md5 (
    input_string => UPPER (p_username)
    || '/'
    || UPPER (p_password));
    END get_hash;
    PROCEDURE valid_user2 (p_username IN VARCHAR2, p_password IN VARCHAR2)
    AS
    v_dummy VARCHAR2 (1);
    BEGIN
    SELECT '1'
    INTO v_dummy
    FROM ASQ_USER_SECURITY
    WHERE UPPER (USER_NAME) = UPPER (p_username)
    AND PASSWORD = get_hash (p_username, p_password);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN raise_application_error (-20000, 'Invalid username / password.');
    END valid_user2;
    FUNCTION valid_user (p_username IN VARCHAR2, p_password IN VARCHAR2)
    RETURN BOOLEAN
    AS
    BEGIN
    valid_user2 (UPPER (p_username), p_password);
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN RETURN FALSE;
    END valid_user;
    END app_security_pkg;
    When I tried to Create a Test User it worked and added a record in the database
    exec app_security_pkg.add_user ('RS','E','jesh','goodone')
    Create your own Authentication Scheme
    Authentication Function Section: RETURN APP_SECURITY_PKG.valid_user
    Switch on your Custom Scheme: made it “My Auth Scheme”
    Also Altered the Login Process on Page 101
    app_security_pkg.login (P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID );
    This is pretty much what was there in the Duncan Mein's Blog
    Thank you for having a look at the code
    Appreciate your help
    Jesh

  • Using login credentials from the first page

    Hi guys hopw one of you will help me!!
    I a jsp page which takes the username and password.(this is login.jsp)
    If the login is successful the page enters into another jsp which has a list of what the user wants to do.
    Everything is working fine at tht moment.
    But my major concern is say if i give the following ur to login:
    http://localhost:8000.login.jsp
    and enter the username and password.After succesfully logging in I have another jsp(register.jsp)
    with the following functions:
    Delete user
    create user
    The problem is if i give the following address in my browser:
    http://localhost:8000/success.jsp directly this page is being displayed without checking for the login credentials.
    Is there a way where i can check the username and password before the page is being displayed.(remeber I dont have username and password text boxes in each page).
    Thanx in advance.

    Yes you can do this search the forums with the search bar to the left looking for login routines and session variables.
    You put the result of your loging routine (pass or fail) into a session variable. All protected pages then check this session variable, and redirect to the login page if it is not correct.
    Search for session variables.

  • Restart Admin Login Credentials in Apex 4.0 & Oracle 11gr2

    Hi all,
    We face a major issue. We are unable to connect our admin account for some unknown reason. We keep receiving the following message "Invalid Login Credentials". We tried to change the admin credentials with sqlplus.
    We tried the usual procedure "apxchpwd" successfully, but we still cannot log in.
    We then tried to create a new admin2 account with the following pl/sql block.
    SQL> connect APEX_030200 as sysdba
    Enter password:
    Connected.
    SQL> begin
    2 wwv_flow_api.set_security_group_id(p_security_group_id=>10);
    3 wwv_flow_fnd_user_api.create_fnd_user(
    4 p_user_name => 'admin2',
    5 p_email_address => '[email protected]',
    6 p_web_password => 'admin2') ;
    7 end;
    8 .
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> commit
    2
    SQL> commit;
    Commit complete.
    SQL> alter user APEX_030200 account lock;
    User altered.
    SQL> quit
    We cannot connect with either admin & admin2.
    Any good idea?
    Roger

    Hi,
    I'm not expert on this area, sorry.
    I would check what like FLOW% and APEX% users there is in database.
    Also query DBA_REGISTRY what is current/valid APEX version.
    Then try again with correct APEX versions scripts reset ADMIN password.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Report Viewer asking for Login credentials on Non-Development PC

    I have created several reports within Crystal 2008(using the push method). I run these reports in a VB6 application using the Report Viewer. Reports without sub-reports will run on both the development and non-development PC. If I try to run a report with a sub on a non-development PC it will prompt the user for login credentials.
    I can run the same report(with a sub) in development or on a PC with Crystal 2008 and Visual Basic installed. I have created a setup.exe to install this on the pc and included both the Crystal runtime 2008 and Crystal Report Viewer 2008 as prerequisites.
    Any help would be appreciated

    We created a form in Visual Studio 2008 that holds the Crystal Report Viewer.  We then used Interop to wrap the assembly into a usable reference for the VB6 application. 
    This was working fine when we were using the pull method for the report but once we changed the code to use the push method reports with subs will ask for a login. No matter what is entered the report will not print to the screen.  The reports without a sub will print just fine.
    Not sure what to look for next?
    Thanks for your quick response.

  • Pass login credentials into a test-path cmdlet

    Here is the scenario. I'm creating a SQL Server Job that will use Powershell to test if a session could be made to a remote server before creating one. I was able to successfully create a cmdlet that will test a path that connects to a remote shared server
    on the same domain. The remote server I'm trying to connect to is on a different domain so I need to pass along the login credentials. I'm stuck in finding the correct way to perform this. Is there a way to pass the login information without a prompt? Below
    is my test-path command I want to use.
    If(Test-Path -path \\IPADDRESS\Folder\subfolder)
        write-error "Remote connection test passed successfully"
    else {Write-Error "Could not connect successfully to "\\IPADDRESS\Folder\subfolder" -EA Stop}
    Also I was trying to use PSCredential to achieve this but was unsuccessful and received an error. Below is the powershell commands and error message.
    $SecurePassword = Read-Host -Prompt "Enter password" -AsSecureString
    $UserName = "DOMAIN\User"
    $Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $UserName, $SecurePassword
    PS C:\Windows\system32>  If(Test-Path -path \\IPADDRESS\Folder\subfolder $Credentials)
    >>   {
    >>
    >>     write-error "Remote connection test passed successfully"
    >>
    >>
    >>   }
    >> else {Write-Error "Could not connect successfully to "\\IPADDRESS\Folder\subfolder" -EA
    Stop}
    >>
    Test-Path : A positional parameter cannot be found that accepts argument 'System.Management.Automation.PSCredential'.
    At line:1 char:14
    +  If(Test-Path <<<<  -path \\IPADDRESS\Folder\subfolder $Credentials)
        + CategoryInfo          : InvalidArgument: (:) [Test-Path], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.TestPathCommand
    Thank you in advance

    Hi DBA_attack,
    Thanks for your posting.
    If there also occurred error after add the parameter -Credential, please also note: This parameter -Credential in test-path is not supported by any providers installed with Windows PowerShell.
    You can also try to use Invoke-Command with the credential who has the permission to access the tested file path.
    I hope this helps.
    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.

  • Pick the login credentials from text file

    I have written a login code in on-logon trigger. Currently the login credentials are hard coded in it. I want to pick them from properties file (text file). How can i do that?

    This solution is too easy.
    Try Single Sign On if it's possible in your environment. Create an Oracle Internet Directory with the informations needed and run your form against it.
    That's the most secure way you can implement. Don't do it hardcoded or use selfwritten encryptings.
    Gerd

  • Batch schedule won't allow me to enter "login credentials"

    Hello All,
    A most random thing happened today. I am on version 11.1.2.3.500 of EPM and was in the process of creating a Batch (for test) and after doing this successfully a number of times (10+), I deleted the batch I had created attempting to create a new one. However, this time, the database connection has come up blank as can be seen below.
    The 2 fileds highlighted below were originally editable, and the userid was filled in with "admin". I would normally just enter the password and proceed, however in this case, I can't write anything into either of the 2 fields highlighted below.
    This naturally creates a problem as I can not now see the dimensions from the reporting database - so can not select any dimensions!
    I've powered down the virtual machine, restarted my services (2x) and everything else looks and works fine except for this issue.
    Any ideas?
    Regards
    Dermott

    Thanks for the reply LRBS. I did spend some time going through the logs but they turned up empty and here's why...
    It turns out it was a corrupted BATCH. Somehow, each time I created a new "Batch Schedule" and used my original batch as a reference it made it impossible to edit/enter the correct login credentials for the server element.
    Hopefully this helps someone else in the future.
    Action: "Delete and recreate your Batch if you get this error."

  • SQL statement limit in creating a Recordset?

    Using CS3 SQL 2008 - I am trying to create a recordset and when I paste my SQL statement of 405 lines into the SQL section / box it only copies about half of the code. Any idea why? IS there a limit as to the number of lines of code in a recordset. I have a huge case statement is why this is so large. Any help is appreciated.

    I solved my problem and I thought I'd come back and post it
    here in case anyone else has the same problem.
    The log-in server behavior creates a session variable for the
    username submitted on the login page. The variable is called
    "MM_Username". You can use that session variable as your filter
    criteria on following pages to call that user's record from the DB.
    Hope that helps...

  • Htmldb login credentials invalid

    Hi,
    this is what i did. i backed up the 3 htmldb schemas long back. and now i imported the shemas into my new target database. i installed the http server in my win xp system connecting to my target database and when i try to login into the following pages
    http://localhost:7777/pls/htmldb and
    http://localhost:7777/pls/htmldb/htmldb_admin
    i get error saying login credentials invalid
    i am not able to login for both INTERNAL workspace as well as for the workspace that i created before.
    how can i reset the login and be able to login.
    i am not sure whether this error is because of password obfuscation.
    i am copying my marvel.conf file below, please have a look at it.
    Alias /i/ C:/oracle/product/10.2.0/http_1/htmldb/images/
    <Location /pls/htmldb>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString localhost:orcl ServiceNameFormat
    PlsqlNLSLanguage AMERICAN_AMERICA.WE8MSWIN1252
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
    PlsqlDefaultPage htmldb
    PlsqlDatabasePassword @BYLvtjinyJPWqEnRMD9fYtI=
    Allow from all
    </Location>
    Can someone help me solve this problem.
    Thanks,
    Philip.

    zvika--
    i gave you our email address yesterday when i responded to your post at...
    can't login to htmldb
    ...so i'm not sure why you're asking for it again. anyhow, i see your email now and will respond in a bit.
    regards,
    raj

  • Create an Admin user to login Oracle BPM worklist

    Hi All,
    I want to create an admin user same as weblogic to login Oracle BPM worklist application. Can any one tell me how to create an admin user to login BPM worklist
    Regards,
    Kiran

    Hi,
    I am able to login into the BPM worklist with weblogic & xelsysadm. But when i click on a approval task its redirecting to small pop-up with OIM login page again and after providing the credentials still its showing login page.
    What is the reason for that.
    I have done few changes in OIM weblogic console for OAM IdentityAsserter and OUDauthenticator to login to BPM worklist. For both I made control-flag as sufficient  and /integration i kept in the excluded state in the OAM console.
    Any help is appreciated
    Regards,
    Kiran

Maybe you are looking for