Calling APEX app from a non-APEX app, custom auth scheme problem
37951Nov 13 2010 — edited Nov 17 2010Hi all,
Need some help here...
I have a java-based application that uses Open SSO for authentication. I want to call an APEX app from within this app -- I have code that can get the user's ID and name from the cookie set by the Open SSO scheme. I've tried putting this code in in the Verify Session Function and it doesn't work, sometimes it seems like it's not even being called. If I put it in the Page Sentry Function of the custom auth scheme it actually works, but it seems to run it several times over, and the I heard at the recent APEXposed conference to never use the page sentry function.
Has anyone ever done this before? I think I'm just not getting the right sequence of things down here. Basically I get the cookie, pull what I want out of it, and return TRUE. If I can't find the cookie or any other issue, I return FALSE from my function. But I must be missing something with regards to getting APEX to understand that I have what I want and that I want it to proceed and set up a session with this username I have pulled from the cookie.
Can anyone offer advice/help? Getting a little desperate here, I think this should be easy, but I just can't seem to get it.
Thanks so much for any help.
David