Mandatory or optional authentication?

Thank to the pentahoHeaderScript.js script, your Angular application can be developed in three different ways, regarding the Pentaho authorization.

  1. Pentaho authentication not required. This is the simplest one, where each component of your application does not require a valid Pentaho session.
  2. Pentaho authentication required with redirection to a login form. With this setup, the unique Angular HTML page always check for a valid Pentaho session. If not available, the users are automatically redirected to a login page.
  3. Pentaho autenthication required. With this setup, the unique Angular HTML page always check for a valid Pentaho session. If not available, the credentials are asked automatically with a HTML prompt window.

Pentaho authentication not required

This is the simplest approach you can develop into your Angular application, regarding Pentaho authentication. In brief, the pentahoHeaderScript.js script will not require a valid Pentaho session and each component of your application should manage the existence of Pentaho session into its own business logic.

To setup the requested behaviour, edit the pentahoHeaderScript.js script into the node_modules/pentaho-dashboard/src/assets folder, with the following settings.

var useCase = 1;

Pentaho authentication required with redirection to a login form

With this setup, the unique Angular HTML page always check for a valid Pentaho session. If not available, the users are automatically redirected to a login page. In practice, the pentahoHeaderScript.js script requires a valid Pentaho session at each access and, if the check of a valid session fails, the user is automatically redirected to an URL. Usually the target URL contains the login form.

To setup the requested behaviour, edit the pentahoHeaderScript.js script into the node_modules/pentaho-dashboard/src/assets folder, with the following settings.

var useCase = 2;
var targetUrl = "/login";

Update targetUrl with your requested target page into your Angular application.

Pentaho autenthication required

This setup is similar to the previous one, with the difference that the user credentials are asked directly to the user with the browser's prompt. In practice, the pentahoHeaderScript.js script requires a valid Pentaho session at each access and, if the check of a valid session fails, the user is asked for username and password using the browser's prompt.

To setup the requested behaviour, edit the pentahoHeaderScript.js script into the node_modules/pentaho-dashboard/src/assets folder, with the following settings.

var useCase = 3;

results matching ""

    No results matching ""