Access any page on the portal (deep link) (Optional)

By default, when a portal user logs in to a portal via an identity provider, they are always directed to the portal's home page after logging in.

This is also the case when a portal user clicks a link to a specific page in the portal or enters the URL for a specific page directly into the browser. In the default configuration, when a portal user clicks this link, they are redirected to the portal's login page and, after logging in, to the portal's home page. The page specified in the link does not open.

A redirect to the original address is only possible if, after logging in to EntraID, the browser sends the original session cookie when redirecting to Intrexx. This is no longer possible for POST requests with the SameSite: Lax setting. Therefore, the authorization code can only be transferred from the browser to Intrexx via HTTP POST if the `SameSite: None` header is used in conjunction with the `Secure` flag.

This isn't a problem without deep links, since Intrexx then starts a new user session. However, since the source address is stored in the session, the previous session cookie must be transmitted.

Alternatively, you can change the redirect in the OAuth2 configuration to a query (GET request). Then it also works with SameSite: Lax; however, the authorization code is passed to Intrexx as a URL parameter. By default, these query string parameters are recorded in the browser history and server access logs and could therefore be read by an administrator. With this option, however, the codes expire immediately after you log in to Intrexx.

Deep Link Configuration

You can configure Intrexx so that portal pages can be accessed directly even when logging in through an identity provider.

To do this, add the following line to the portal.cfg file (<portal directory>/internal/cfg/portal.cfg) under <environment>:

<systemProperty name="de.uplanet.lucy.server.oauth2.login.redirectToOrigin" value="true"/>

Please note the following limitations for this configuration:

  • Only one provider may be configured for OAuth2 authentication in the portal (Configure Provider).

  • Only users who have been created by the identity provider can log in to the portal. It is not possible to register with the identity provider via Intrexx (Enable user registration).

  • Mixed authentication (Windows or Intrexx Auth) is not possible.