Apex how to enter another application from a link in one application?

I have two applications in my workspace, APP 1 and APP 2.

In my case, the user will log into APP 1. From there I will put a menu (or link) on APP 2. However, authentication is required for APP 2. So this will lead me to the login page. I would like to fix this and get the current user credentials on APP 1 and log in to APP 2.

I am looking for a simple simple method (but security needs to be considered) for logging into APP 2.

what I could think of is apex_collection.. I can store the credentials n use it to create the login process for APP 2. however, apex_collectionbased on the session. although I set up a session for APP 2, it still won’t read the values ​​from mine apex_collection.

Does anyone have a suggestion or solution?

+4
source share
3 answers

All you have to do is use the same authentication scheme in both applications and set the cookie name attribute to the same value in both authentication schemes, for example:

Session Cookie Attributes

APEX will then use the same session in two applications, and the user will not need to log in again when switching from one to the other, provided that you pass SESSION_ID to the URL.

+3
source

A few default comments for APEX workspace authentication

It may also be useful to explain why the solution posted by @TonyAndrews works .

Apex , APEX , ... USER1 "" ...

, , . GROUPS , . , BOTH / .

- . :

  • :

    • : "someuser@sampledomain.com"
    • , : SHOP_EDNA, SHOP_GARRETT, TC_KAREN, TC_MARLOWE, MY_BORIS ..
    • : , + ..
  • , : , , "ADMIN", . , .

:

, , (.. ) , . , "" . Default Apex Authentication , , / .

+2

, . , . Apex ver 5.0.3 .

  • New authentication schemes have been created for each application with the same cookie name and set them as current authentication. Schema type are application accounts.
  • Setting the link, as shown below, from the first page of the application to the second. href = "HTTP: // server_name: port / vertex / f p = 224: 2: & APP_SESSION" Can someone provide a solution, please?
0
source

Source: https://habr.com/ru/post/1534606/


All Articles