Public and Authenticated App with Authorization Scheme once per session

I have a question . . .
Let's say I have an application and at the application level I have an authorization scheme (auth1). If auth1 is set up to evaluate once per session, does it authenticate for the public user, then pass me back to the page and then check then evaluate the auth1 scheme. Or does it evaluate the auth1 scheme, then log in, then return to the page. Is it the same regardless of authentication scheme (e.g. Oracle SSO).
It may make a big difference. If the authorization sheme is based upon the user (most will be) then setting it to evaluate once per session can be a real problem. If it evaluates before the user logs in, then it won't really work.
This is an even bigger question when the application does not have a authorization scheme at the application level and allows public pages. If a page that is not public has an authorization scheme set, and the user goes directly to that page, it seems to authenticate the authorization scheme and then logs you in, but does not re-evaluate authorization scheme after you are logged in. Is this accurate? I realize that I could set it up to evaluate for every page view, but I really only need it once after login.
Is this clear?

Anton,
It seems that all authorization schemes that are set to evaluate once per session are evaluated with the beginning establishment of a session.Sort of correct. Authorization schemes don't get evaluated until the component that uses them is considered for rendering or processing. So if the authorization scheme is attached to a page, it won't fire until the page is requested. If another component uses that scheme first, the evaluation will happen then and will not happen again during the session.
What if I have another page that is not public. If it is the first page I go to, what happens. Obviously, I get redirected to login, then login. Do the authorization schemes get evaluated at this point?Yes, assuming the authorization scheme is used by the page, the scheme is evaluated during the first rendering or processing of the page in the session, after the authentication step.
Now, what if I have a page that is public, but also has an auth scheme (odd, but could happen). Now what happens, does the auth scheme get evaluated before or after login?During the rendering or processing of the page after the authentication step. For a public page, the authentication step is performed up to the point where it determines that no authentication is required.
OK, now let's add in Application level auth scheme. I can have public or private pages. If I go to a private page, when does the app level auth scheme kick in? How about for a public page?When an application uses an authorization scheme, it gets evaluated before the authorization scheme (if any) for the page that is being requested, so the public/private property of the page doesn't matter.
General advice: when an authorization scheme uses :APP_USER, it doesn't work well to have it fire once per session because it'll get run before authentication to the application occurs, which sets APP_USER. You can have such schemes fire once per page view and for PL/SQL function-type schemes, have them give a "pass" when the current page is the login page, that kind of thing.
In addition, if the overhead of running a scheme is high, one can set an application-level item to indicate that a once-per-page scheme has already run satisfactorily. The PL/SQL-type schemes can access the value of such an item to skip the expensive part of the evaluation and return true immediately.
Finally, the htmldb_application.reset_security_check API can be called in order to reset the "fired" status of all authorization schemes in the session, allowing them to be re-evaluated if/when they are encountered again in the session.
Hope this helps,
Scott

Similar Messages

  • I installed indesign CS5 on new macbook pro and keeps freezing with spinning wheel once the app opens. Is there an issue with OS Mav or font issue or a plist I can pull. All other Adobe products work.

    I installed indesign CS5 on new macbook pro and keeps freezing with spinning wheel once the app opens. Is there an issue with OS Mav or font issue or a plist I can pull. All other Adobe products work.

    Migration should never be done with any Adobe program.
    If you have done Migration, you have to UNINSTALL first (if even possible) and then download Adobe Creative Cloud Cleaner Tool and run that also. When this is done, restart your computer and install the programs from an original Adobe Installer.
    Other question is, if your OS is supporting that version. You can try it, it is not officially supported, but it might work.
    But CC will work, upgrade to CC2014 (without additional cost), use that as it is better anyway.

  • How can I share my music and some apps with my children's devices, but not share iMessage

    How can I share my music and some apps with my children's devices, but not share iMessage

    Then only set up your account in "Settings > iTunes & App Stores" and don't give them your password .

  • Once per session, connected anyway

    I have an authentication scheme that is set to once per session. The users are defined in oid and have to logon using sso.
    So far so good. But in following scenario it goes wrong.
    1. User enters the htmldb url
    2. User gets the logon screen from sso
    3. User logs in and is than forwarded to the application where the authorisation scheme says him he has no access and he is redirected to a public page that tells him this.
    4. the user presses the 'Back' key on the browser, so he gets the login screen again.
    5. he enters again his username and password, and enters.
    -> now he is logged in and gets the screen he is not allowed to.
    What goes wrong here? Why does the session not remember that this user has no access ?
    Grtz,
    Chris.

    Scott,
    The solution of htmldb_util.reset_authorizations works fine. But in the end we choose another option.
    We are using the error page now to display wether the user has no access to the application. It looks like the user has access to the error pag even if he has no access to any of the application pages. Now it works fine.
    Now the authorization also returns false.
    Tnx for the replies,
    Chris.

  • Sort by columns once per session

    Hi there, I am using apex 3.1 and I have a report generated by a pl/sql function. There are several columns on which the user might sort. Is it possible to reset the sorting preferences when the user logs in? (like: a process running once per session?)
    thx in advance
    Edited by: 814932 on 23-Nov-2010 08:00

    You can use the <tt>apex_util.remove_sort_preferences</tt> method (although it is a bit of a blunt instrument). See the Admin guide for more information on user preferences.
    To run it once per session, code the call as an Application Process with execution point On New Session After Authentication.

  • Unexpected problem with authorization scheme of type plsql function

    Hi,
    I have created one authorization scheme of type plsql function returning boolean. Authorization scheme is for pages only. p2_user_priviledge is a textbox on home page which extract privilege (list of pagenos) for login user from database. Home page has no authorization required. AUTHORIZATION SCHEME always returns false. I am not able to trace problem in my code. same code works fine for a textbox's default returning 'c'.
    ----- CODE FOR AUTHORIZATION SCHEME------------------------------------------------------------
    declare
    pageid varchar2(10);
    privilege varchar2(300);
    c number(3);
    begin
    pageid := ':P'||to_char(:app_page_id)||':' ; ---Pageno get stored in format  *:P2:*
    privilege := trim(:p2_user_priviledge); ++------Contain list of privilege like    :P2:P13:P67:P23:  etc+++ select instr(privilege,pageid) into c from dual;
    if c>0 then
    return true;
    else
    return false;
    end if;
    end;
    One more problem is again related to authorization scheme.
    I created one application and one authorization scheme (auth_aug) which worked finely. Then after some days i added 10 more pages to same application, But now autho_aug was always returning false for new pages. So i copied code from 'autho_aug' to new scheme 'autho_sept', & it worked for new pages. I don't understand if code is same for both scheme, why required to use two different schemes.
    Now i have added few more pages to application, and facing problem mentioned earlier.
    any solution for both the problems.....

    Hi,
    Let me clear my problem once again.
    -->Home page i.e. P2 does not use authorization, So it is displayed along with text item :p2_user_privilege.
    -->Then user click on one of the links , Now page :P70: should get displayed.
    P70 is using authorization scheme.
    -->But :p2_user_priviledge value is not accessible at authorization scheme, I dont know why.
    I could not find out where to create Application item , as suggested by you.
    & not able to find Developer menu , session at home page as suggested earlier.
    And one more question, my application at runtime display
    X en us
    at bottom
    How to make it
    USER: X Language: en us
    Like in development environment.
    Hope I have cleared my problem, waiting for reply.
    Edited by: TEJU on Nov 17, 2008 9:25 AM

  • HT201089 I am setting up an Ipad for my child and downloading apps with Ask to Buy turned on.  As the parent, I am not receiving notices/requests on my device

    I have an ipad mini 2 with ios 8 and and iphone 5s with ios8
    I am setting up the ipad for my child and the Ask to Buy feature is on in family sharing.
    I am trying to download apps from the app store and it pops up the notification that I need to Ask to Buy and the request is being sent.
    The request should be coming to my "parent" device, which happens to be my iphone correct ?   I'm not seeing any sort of requests.
    According to the posts I've read a request is only sent once.

    Apps downloaded on one should also appear on the other as long as the app in question runs on both iPads and iPhones.

  • Registering with one iTunes account and buying apps with another...

    Can you register a device to one account but purchase apps with another and if so...how can I do this?

    We are using iPads at our school to compliment and enhance teaching- they belong to the school but we are exploring the option of using multiple IDs to access apps . I am trying to troubleshoot potential problems before rollout.

  • How do I get sounds back? I don't know when an email arrives and my apps with songs don't work

    How do I get my sounds back? My apps with songs don't work and I don't know when a message or email arrives.
    Thanks

    Is it on mute? There is a switch on the side which may be mute or rotation lock. If it locks the rotation, double tap the home button and swipe your finger to the right. You should see volume, brightness, etc... On the far left is a button to mute or lock rotation. Make sure it is not on. If you still can't hear anything, go to settings> general> sounds> ringer and alerts and slide the dot to the right.
    Hope this helps!
    Caleb.

  • Planning and Essbase apps with same name on HSS-enabled Essbase server

    I have an Essbase app "FOO" which was migrated from another Essbase server. I re-pointed an existing planning app also called "FOO" at this new server/app using the configuration setup utility. As soon as I did this, the app "FOO" disappears from the list of Essbase apps in EAS and HSS. The Essbase .sec file now has it listed as "Client Application Type: PLANNING". This is not so good as I now can't apply provisioning etc. to the Essbase app. I need to see this in both projects, as it was before - any ideas?
    I tried:
    * A MAXL re-register of the app but you can't as it gives "ERROR - 1051494 - Re-Registeration not allowed on planning application"
    * In Planning, register the app with the HSS "Analytical Services" app but there is a bug in the GUI interface. The project name for an Essbase server always contains colon ":" characters and the GUI splits the project list on these so it's a mess and you can't select the project you need.

    You can try to mount all these mount points via NFS in one additional server and then export this new tree again via NFS to all your servers.
    No sure if this works. If this works, then you will have in this case just an additional level in the tree.

  • Create and activate app with separate Adobe ID

    Before Adobe offered unlimited Single Editions in my Creative Cloud subscription I created a separate Adobe ID for every single app I was creating. I shared the login/password with my clients so they could track progression and finally approve the app. In the end I purchased a Single Edition licence and activated the app to submit to the App Store. Everything within one Adobe ID.
    Now it seems I can only activate an app (with a built-in serial number) when I've created the folio with my personal (paid) Adobe ID?
    Any suggestions for a nice workflow? Ofcourse I don't want to share my personal Adobe ID, but I do want to share the folios I'm creating. If possible I don't want my clients need to sign up for an Adobe ID themselve.

    I'm not sure I understand why you did that. There was nothing to keep you from creating everything with one ID and then creating the Single Edition apps with the same one. From there, just supply the distribution and developer apps to the client for submission to Apple using their developer accounts.
    They would need Adobe IDs in order to share folios via the ACV but nothing else, really.
    Bob

  • Can I install both CC and CS6 apps with my Creative Cloud membership?

    Yes, you can download CS6 apps from the Download Center on creative.adobe.com. Click any app icon. From the product download page, for instance Illustrator, look for the heading "In this version" and click the version pop-up menu beneath it to select CC or CS6. The big blue Download button at the top of the page changes to "Download CS6".
    Note: It is fine to have both CS6 and CC apps on your computer. Some users require mutliple versions for different clients, etc. Its a personal preference, but in no way is a requirement to uninstall your CS6 apps in order to install CC apps.
    Tip: From the Creative Cloud destop app, click the "More Information" link under any app to be taken directly to the product download page.

    Go into your CC Desktop app: Find new apps, change "All" to "Previous Version".
    Click on Install next to Photoshop and CS6 will be an option.

  • XDK Beta and J2EE app with web services

    Does anyone have experienced problems by using the XML parser from XDK v10/v9204? I have created a custom library to point to the XDK's parser and deleted the Oracle XML parser v2 included in JDev. My application also includes Oracle SOAP... and I was wondering if this configuration will run? Having Oracle SOAP and a Parser different from the original one? Will this work?

    I think you will have problems regardless of the approach you take. I have followed up on this and here are the choices you have to use the new 9.2.0.4 parser, as I understand it, in your application:
    1. Delete/backup the old xmlparserv2.jar and replace it with the new one. As there seems to be some new dependencies associated with it (for example xmlmesg.jar), you have to make sure this too is included.
    2. When you start OC4J you can pass in the -Xbootclasspath parameter the location of your jar files (e.g. the new parser and associated files). Those files will override the ones that are hardwired into OC4J - e.g.
    java -Xbootclasspath/a:D:\temp\xdk\lib\xmlparserv2.jar -jar oc4j.jar
    I did option one and then tried working with a number of different Web services that previously worked out of the box and they no longer worked - I got a number of parser errors during the build and run phases.
    What this suggests to me, and I believe this is how Oracle Support would treat this, is that the XDK 9.2.0.4 can be used stand alone and the components should work together. If you try to engineer the 9.2.0.4 XDK into the 9.0.3 OC4J/JDev environment, it may or may not work but you unfortunately won't be supported as the only supported configuration is that which is shipped as a product. As far as I know that has been the way the one off XDK's have generally been treated unless it was subsequently indicated by Oracle Support that a particular one-off XDK fixed issues - as far as I know that has not been said for XDK 9.2.0.4 and the 9.0.3 OC4J/JDev stack.
    In your case because you would like to use SOAP, the soap.jar that ships with the XDK and should work with the XDK stack is unfortunately out of date. Your natural reaction to try to use the updated one is however where you will run into trouble as no one has regression tested 9.2.0.4 against the 9.0.3 soap.jar files.
    Sorry for the long answer but hopefully it clarifies.
    Mike.

  • How can I share Quicken and other apps with another user on the same iMac?

    I would like to share some apps including Quicken with anoter user on the same iMac. I have put the Quicken app and the .QFX file in /usrs/share and changed the permissions to R/W on both files but when I log in as the other user and run Quicken it does not use the .QFX file and instead comes up with no accounts.

    The Quicken app. should be in the Applications folder at the root of Macintosh HD. It's accessible to all users from there.
    To share a file, (this from Finder Help menu)
    "Sharing files with others who use your computer
    You can share files with others who use your computer by placing the files in the Public folder in your home folder. Anyone with an account on your computer can read or copy the items you put in your Public folder (except for your Drop Box folder, which only you can open).
    To share files using your Public folder:
    Copy the files you want to share into your Public folder, inside your home folder.
    To give a copy of a file directly to another person, copy it to their Drop Box folder (inside their Public folder), where only they can see it."
    When opening a file just double-click the file - it will open the application automatically.

  • How can I create public AND private access with a wireless VPN router?

    I am thinking about getting one of the new pre-n wireless routers that has a builtin VPN.  I will need to have a private net for my office and a public net for my customers.  On the private side- my employees will need to access all network resources and servers etc.  On the public side, my customers just need to get to the Internet and maybe print on that side too.
    Both sides will be DHCP.
    Can I set this up with 1 device ro do I need 2?  How can I do this?  Any help is greatlu appreciated.
    Thanks all.
    Message Edited by Gman on 10-14-200607:08 PM

    The only safe way to do this is to creat user groups On your server and give specific assess to the users who log into the network.
    Using a single router , bifurcating a public from a private network is not possible.You will not be able to use the VPN since the users hav e to be connected to the VPN to log into your network.

Maybe you are looking for

  • Taking too much time in Rules(DTP Schedule run)

    Hi, I am Scheduling the DTP which have filters to minimize the load data. when i run the DTP it is taking too much time in the "rules" (i can see the  DTP monitor ststus package by pakage and step by step like "Start routine" "rules" and "End Routine

  • Repots( closing balance of a vendor)

    hi. i want to show the closing balnace of a vendor. in my report opening balance is coming. but if today i am displaying the report then it should be display the vendor's yesterday  closing balance . means at which date i will display the report the

  • BEST WEBCAM TO USE ON OSX TIGER

    HI. I i wanted to no the best web cam i can use on tiger or a power mac g4 dual 500. there is many brands and some are usb and firewire. i hear that most will work with a mac . i dont want to spend alot of money and want a clear cam not a slow one to

  • Cannot save Purchase order when there is Warning Message

    Hi, I have this problem where system do not allow to Save the Purchase order (ME21N) when there is a warning message, for example "W:  Can the delivery date be met?".  By right I can just click enter and save the PO but now the system do not allow to

  • Power oscillates between 99% and 100%  every two seconds;

    The MagSafe adapator flashes from green to orange and back 30 time a minute. The menubar percentages changes in sync from 99% to 100% and back. This has been going on for a couple of weeks. No other unusual behavior has been noted. I have done an SMC