This content has been marked as final. Show 7 replies
forms calling ApexHere is a solution where Forms passes a generated session id to an Apex page:
This works if the Apex page is a "slave" of the Forms application. You cannot use the Apex application as a standalone application, because there is no login involved.
Not using public pages if possibleIn this solution the page is public, but an On Load pl/sql process checks if the session id is valid.
I'm actually working on my solution based on that very useful link. Thanks a lot ....!
Please read carefully what i plan to do.
Basically is to go a little bit further from your proposal: Since my knowlegde of Apex is limited, i just want to know if, based on your idea, the page should not be public, but move the authorization procedure from the onload on requested page to say, an onload procedure on the Login Page, so if the procedure success, redirect (not show login page) to the page requested in the first place, and if it fails, then show login page.
Just want to know if this is possible, before going against the wheel.
Do you think this is possible? This way, Apex app / page can be accessed from both: Apex itself and Forms.
Best regards, and thanks a lot for you unvaluable feedback....!
Regards. Luis ...:)
Instead of using this as an On Load process, you can turn it into a Page Sentry Function for a Custom Authentication Scheme.
When you want to log in using Apex instead of Forms, you will need to set the custom session id too, the same way as you did in Forms. The sentry function will check your own generated session id, not the Apex session id.