How to have an email link that accesses APEX page w/o logging in again.

Greetings,
It is common in our APEX applications to send email to a user with a link to a specific row of data so they may access the row and approve it. The user who gets the email is already logged into the application, but when they click on the link in their email they are prompted to log in. How do I get around this?
Thanks, Tony
Edited by: cloaked on Jul 5, 2012 2:47 PM

What you need is a custom page sentry setup which detects if there is an already valid session and then uses that.
See {thread:id=2283805} for a fantastic example by Patrick Wolf about page sentry functions. You will need to alter it to retrieve a valid session, through apex_custom_auth.get_session_id.
For some more pointers, take a look at these blog posts
http://joelkallman.blogspot.be/2010/10/custom-authentication-scheme-for-oracle.html
http://zetetic.net/blog/2010/12/10/updating-page-sentry-for-apex-40-upgrade.html
http://timnzblog.wordpress.com/2010/09/13/application-express-and-janrain/
(example code taken from last blog:)
FUNCTION PAGE_SENTRY
RETURN BOOLEAN
IS
    l_username VARCHAR2(512);
    l_session_id NUMBER;
BEGIN
    IF USER != 'APEX_PUBLIC_USER' THEN
        RETURN false;
    END IF;
     l_session_id := wwv_flow_custom_auth_std.get_session_id_from_cookie;
     -- check application session cookie.
     IF wwv_flow_custom_auth_std.is_session_valid THEN
         apex_application.g_instance := l_session_id;
         l_username := wwv_flow_custom_auth_std.get_username;
         wwv_flow_custom_auth.define_user_session(
             p_user => l_username, p_session_id => l_session_id);
         RETURN true;
     ELSE
         OWA_UTIL.REDIRECT_URL('f?p=RPXAUTH:LOGIN:'||
             nv('APP_SESSION')||
             '::::RETURN_APP_ID,RETURN_PAGE_ID:'||
             v('APP_ID')||
             ','||v('APP_PAGE_ID'));
     END IF;
     RETURN false;
END page_sentry;Perhaps others have more recent links, but this is the direction you should be looking at. I haven't set this up myself yet though, so i can't really be of much more assistance on this.

Similar Messages

  • Created a dynamic form (saved as dynamic pdf) have an email link (that works), when the email is rec

    I have a dynamic form that I created and I need to get it posted but am having some issues.
    1. I need the fields to be optional and it tells me that the information entered is not what was expected
    2. I have a button to click that will send the completed form to a department mailbox, but when the form arrives it is a .xml and only contains the newly entered information. What did I do wrong? I saved it as a dynamic pdf.
    3. Is there a way to send you my form so that we can talk about it together???
    I am on the verge of tears with frustration.....

    Here is the warning message I get.  This is from the Preview PDF mode.
    cid:[email protected]
    I fixed the email buttons like you directed thank you!
    When I tried to the do the file save as for the reader extended pdf, this is all I get:
    cid:[email protected]
    I have working on this since January along with many other projects (mostly presentations) and the department that this form is for is chomping at the bit because they need to track their training requests coming in and are working to shift the process of how you request training for the entire enterprise.  I am attaching the form so maybe you can take a peek at the damage I’ve done ☺  I think it would be helpful if I took a class, everything I’ve done I’ve taught myself with trial and tissues!
    Thank you so very much for your advice and help I truly appreciate it!
    Brenda Beebe-McWhirter, RN |Staff Development Instructor |WellMed Medical Management, Inc.
    Telephone: 210-561-6533 ext 6114  | Fax: 210-617-4091  |  http://www.wellmedmedicalgroup.com

  • I no longer have the email address that is suppose to be my rescue email address.  I am not able to reset my security questions because of this.  I need to know how to reset the rescue email address.

    I no longer have the email address that is suppose to be my resuce email address to reset the security questions.
    How can I reset the rescue email address if I don't have access to it?
    Thanks,
    Wareagleauburnfan

    have a look at this support article.

  • I have two email accounts that my iTunes keeps going from one to the other. How can I make it only be under one email account?

    I have two email accounts that my iTunes keeps getting mixed up. How do I delete one of the emails from my iTunes so it only goes to my .me account?

    Hi Rochdr,
    You can use the following article to help you address this issue with your mail account in OS X:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from the Mail application, with an alert button that indicates unread messages

    I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from the Mail application, with an alert button that indicates unread messages

    Try a search... I'm sure if you put forth a little effort you can find a solution that will work for you.

  • I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from M, with an alert button that indicates unread messages

    I would like to have an email account that is password-protected that I can access on my Mac, Iphone and Ipad, separate from M, with an alert button that indicates unread messages

    Try a search... I'm sure if you put forth a little effort you can find a solution that will work for you.

  • E71 how to remove setup email link from main page

    Recently got a E71 - very pleased with it.    Have installed nokia email and exchange mail - all working fine.   I ended up with 2 "setup email" links on the main page.  One i could select and hide,  the other I cannot.   When ever i boot the phone it trys to start the email setup wizard by default.     I notice from installations I can remove the email setup - will this affect existing mail accounts and would this mean I can't set up any new accounts in the future?
    surely there must be an easy way to remove the icon.    I tried deselcting the wizard from the Modes -> home screen application page but it just comes back after a few minutes.
    very annoying.

    spooky! i found the same solution today, checked back here and you'd beaten me to it!!! DOH!
    posted the following elsewhere.
    i found another solution for removing the email setup link on the homepage (still have the wizard start on boot).  
    MENU -> MODES -> HOME SCREEN APPLICATIONS ->enabled applications ->  untick Intellisync
    the email setup icon now dissapears on my E71.
    I can't find a decent explanation of what intellisync actually does, but all my email is working as before.
    To be honest i could probably just remove the set up program as I won't ever need to add another email account..
    just thought I'd post this anyway."

  • How to create an email link in UIX page

    I am trying to create a simple email link in my UIX page in order to get feedback from users.
    I don't seem to find out how to do it. Can someone please help me ASAP.
    Many Thanks,
    Qian Dong

    Hi Atilio Ranzuglia,
    Thank you so much for the help. It took me a while yesterday trying to figure out how to do
    what I originally thought was a very simple thing, I was unable to find any helpful information.
    Your help saved a lot of time for me, I am very appreciative of it.
    Many thanks again,
    Qian Dong

  • I have three email msgs that i attempted to forward however they cannot be sent and are just "cycling overr and over, any ideas why?

    i have three email msgs that i attempted to forward however they cannot be sent and are just "cycling overr and over, any ideas why?

        Hi benzgotcha32,
    I want you to have the ability to forward any needed emails! Let's review what trouble is preventing the messages from going out. Which device do you have that's not allowing the messages to be sent? What type of email account do you have? Are you able to create a new email and have that successfully send? I look forward to hearing back from you so we can can get this matter resolved.
    Thank you,
    MariaC_VZW
    Please follow us on Twitter @VZWSupport

  • HT2204 I can't update my app because they have an email and that email is not mine so can log in

    I can't update my app because they have an email and that email is not mine so can log in

    A stranger's Apple ID appears on your Mac in conjunction with an update notice -
    https://discussions.apple.com/docs/DOC-5261

  • HT1937 i have old email address that is being used on my apple id and i do not know password I also have another apple id created but when I go to the istore it shows my pld account and i cannot delete and setup the right one

    i have old email address that is being used on my apple id and i do not know password I also have another apple id created but when I go to the istore it shows my pld account and i cannot delete and setup the right one

    No, "My Number" was not listed in my Phone menu, I had to manually type it it.  Is there a way for that number to automatically be listed in that "My Number" spot?  Would that maybe have something to do with my phone number not being listed as an option in the "Send and Receive" spot under messaging???

  • HT201272 Before backing up my old iphone4 I traded it in for an iphone5. All of the apps I purchased I had no problem retrieving from itunes with no charge but I can't download music that I have already paid for that was not backed up w/out paying again.

    Before backing up my old iphone4 I traded it in for an iphone5. All of the apps I purchased had no problem downloading to my new phone from itunes with no charge, but I can't download music that I have already paid for that was not backed up w/out paying again. How can I get these songs to my new phone without having to buy them again?

    Whether you can re-download music depends upon what country that you are in (and whether it remains in the store). If you don't have a Music section in the Purchased tab in the iTunes store app on your phone for re-downloading it, then do you not have you library on your computer's iTunes or on your backup of your downloads ? If not then you could try contacting iTunes Support and see if they will grant you a re-download

  • How to have the format bar on top in pages

    how to have the format bar on top in pages?

    Do you mean Pages, the Word like application in iWork?  If you do, I can ask the moderator move your thread to the Pages forum.

  • My Ipod has been disconnected from the internet.  All efforts to date have failed,including resetting my network settings and trying to log in again.

    My Ipod has been disconnected from the internet.  All efforts to date have failed,including resetting my network settings and trying to log in again.

    Does the iOS device connect to other networks? If yes that tends to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • How can i run unix script from my apex page

    how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page

    I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
    1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
    Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
    2. In Apex,
    a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
    b. I created a PL/SQL process whose source looks as follows:
    shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
    and which was conditioned on the the button P2_RUN_SHELL.
    It works like a charm.
    Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
    Ackness

Maybe you are looking for

  • Open in Camera Raw greyed out (Mac)

    I am unable to open files in Bridge CS3 using this option which is greyed out. I have downloaded the latest upgrade (4.3) twice, checked the location of the plug in (...>CS3>File Formats), purged cache, checked permissions, read forum submissions her

  • CR 2008 on Windows 7, with DataDirect drivers

    When I creata a new report (or open a current report) and try to create a new ODBC connection (or a current one in the old report) I get error: I select Data source, click Next, add the password (to the OracleXE database) and click Finish. The error

  • Illustrator 10 on Windows 7 PC

    I had Illustrator on a workstation running Windows XP Professional Service Pack 3. The OS crashed and I upgraded the workstation to Windows 7 Professional. I reinsallted Illustrator 10 and all seemed to go well - including activation.  When I go to r

  • Time Evaluation.

    Dear Experts, Can anyone explain, how time evaluation schema is linked to time management status in the infotype 0007. Regards, Durga.

  • Work area bar has a mind of it's own!

    Using premiere pro cs4. when i adjust the work area bar to the in and out points i want it changes everytime i zoom in and out of the timeline, it also sometimes follows the red input indicator??? Its driving me crazy! Also i am sending out vision fr