I have two application. I have an application I created and I have the bug tracker application. I have to log into both application. I want to log into my application and access bug tracker through a link (without logging in). Can this be done in APEX?
Note: If someone is using bug tracker, they will have to log into bug tracker. If someone is using my application, they will log into my application and can access the bug tracker application without logging in.
2. Applications in the same workspace that use the same authentication scheme and cookie name can work this way. Make both apps use Application Express authentication or LDAP authentication or make them both use the same custom authentication function to check username/passwords against your own tables -- any method you like, it doesn't matter -- then specify a common cookie name in the authentication schemes of each application and then you'll be able to do what you described, as far as you described it.
3. You did not specify what should happen if a user is logged into the bug tracker app and wants to access your app, from a link or otherwise. Will they have to login to your app at that point?
4. You should search this forum and read the User's Guide and study everything you can find about authentication - there's a bunch of resources. Then experiment.
A few months ago an article appeared in Oracle Magazine about a Menu Framework: you can build a third application (or use the example from this article) to have one application to provide access to all others (even based on roles and access-rights).
Users only have to log in in the framework-application
I changed the authentication scheme to application express for both apps. I set the cookie name in both app. Now, I am not able to log into either app. I am going to start over from scratch. I, more than likely, will have to be walked through getting this to work.
I created 2 apps (Red and Blue). Both apps have a report as page 1 and a login page. Blue has a link to Red. Blue and Red has the apex authentication. When I click on the Blue's link - i am directed to Red login in page.
What should i do to log into RED without entering the user/pass?
Earlier you said "Now, I am not able to log into either app.", but then you said "When I click on the Blue's link...", so I asked you "How do you get to see Blue's link if you cannot login to either app? Is the link on a public page?", but you did not address that. So let's say I don't have an accurate picture of what you've done.
Make sure the apps both use identical authentication schemes, that these schemes are "current" for each app, that the cookie properties, e.g., name, is the same for both apps, and that the apps belong to the same workspace. If after verifying all this, you still have a problem, I'll need you to install the apps on apex.oracle.com so I can see them. I'm sure it's something very simple.
Sorry for the confusion. In the beginning i was using bug tracker and another application I created. I am not using those two application any more. I created two brand new applications I refer to as blue and red (color of their themes). The real names are Set App Cookies (BLUE) and Get App Cookies (RED).
I created both apps with no authentication scheme. I created the link in BLUE. I tested the link and it worked. Then I added application express authentication scheme to both. I test the link and was directed to RED's login page.
On both, apps page 101 (Login) there is a get_user_name_cookies process under page rendering. I copied the cookie name 'LOGIN_USERNAME_COOKIE' and pasted it in cookies attributes of authentication scheme.
Now, i am not able to log in. I type in the correct user/pass i am not redirected to page 1. I type in the incorrect user/pass i am not redirected but I get an "Invalid Credential" error message.
Sounds like something worked like you wanted it to but you don't explain what. Also sounds like something else is not working, unclear how it's related to the problem we've been discussing. It takes some effort to provide more background, explanatory context, and examples but it's really a better use of our time and energy if you do.