dragon.XPF Installation, Configuration, and User Management

dragon.XPF Foundation

Installation, Configuration and User Management

Installation, Configuration and User Management


ContactAddress
Phone+49 (821) 25967-0
Emailinfo@manage.de
Webwww.manage.de
LinkedInmanage.it GmbH

1. Introduction and Overview

The dragon.XPF (Foundation) application is an Oracle APEX-based solution for implementing custom authentication and authorization. It also handles licensing for the manage.it product portfolio.

Authentication

To replace the standard login procedure with your own, configure it in your Oracle APEX application under “Shared Components” → “Security” → “Authentication Schemes”.

Oracle APEX: Authentication Schemes unter Shared Components
Fig. 1 · Configuring authentication in Oracle APEX

Whenever an Oracle APEX application calls the standard function apex_authentication.login, the function defined here under “Settings” is invoked.

Einstellungen der benutzerdefinierten Authentifizierungsfunktion
Fig. 2 · Authentication function settings

The username (USERNAME) and password (PASSWORD) are passed to the function. dragon.XPF supports two different methods.

  • FORMS Login
    The user is authenticated against a local table (XPF_USERS), meaning that USERNAME/PASSWORD are checked against this table.
  • LDAP Login
    The user is authenticated using their domain account, meaning that a login is attempted through Microsoft Active Directory. Configure this in the dragon.XPF LDAP (Connection) Setup section.

Alternatively, you can configure the system to attempt a FORMS login first. If this fails, it attempts an LDAP login (Forms & LDAP).

Note: For LDAP-based login, the ACL must allow the connection to Active Directory (server IP).

Authorization

To replace the standard authorization procedure with your own, configure it in your Oracle APEX application under Shared Components → Security → Authorization Schemes.

Oracle APEX: Konfiguration der Authorization Schemes
Fig. 3 · Configuring authorization in Oracle APEX

When the function is called, it is expected to return either TRUE or FALSE, indicating whether the user is authorized to see the UI elements.

Note: The field :APP_COMPONENT_ID is currently not used.

Autorisierungseinstellungen mit Evaluation Point Always No Caching
Fig. 4 · Evaluating the authorization check without caching

For “Evaluation Point”, enable “Always (No Caching)” so that the authorization check runs continuously. This requires slightly more processing, but allows you to verify permissions during design or runtime without having to log in again.

Enabling Authorization

To connect a page or UI element to the dragon.XPF Authorization Framework, select the dragon.Foundation Authorization Controller in the “Security” section of the element’s properties.

Zuweisung des dragon.Foundation Authorization Controllers zu einem APEX-Element
Fig. 5 · Assigning the Authorization Controller to a UI element

Once a UI element has been connected to the dragon.Foundation Authorization Controller, regenerate the Privileges Set in the “privileges” section. This creates the new element (authorization object), which can then be assigned to a user or role, for example.


2. Overview of Installed Objects

Tables

  • MIT_LOGS
  • XPF_CONNECTORS
  • XPF_CUSTOMERS
  • XPF_GROUP_ROLES
  • XPF_GROUPS
  • XPF_LDAP_IMPORT
  • XPF_LICENSES
  • XPF_MAIL_SETUP
  • XPF_PASSKEYS_REQUESTS
  • XPF_PASSKEYS_USERS
  • XPF_PRIVILEGES
  • XPF_PRIVILEGES_SET
  • XPF_PRODUCTS
  • XPF_ROLES
  • XPF_USER_GROUPS
  • XPF_USER_ROLES
  • XPF_USERS

Views

  • VW_XPF_APEX_AUTHORIZATIONS
  • VW_XPF_GROUP_ROLES
  • VW_XPF_PRIVILEGES
  • VW_XPF_USER_GROUPS
  • VW_XPF_USER_ROLES

Packages

  • MIT_CLK (not included in the standard distribution)
  • MIT_LOG (standard logging package)
  • XPF_AUTH (wrapped service package)

Triggers

  • XPF_CONNECTORS_CIUD
  • XPF_CUSTOMERS_CIUD
  • XPF_GROUP_ROLES_CIUD
  • XPF_GROUPS_CIUD
  • XPF_LDAP_IMPORT_CIUD
  • XPF_LICENSES_CIUD (not included in the standard distribution)
  • XPF_MAIL_SETUP_CIUD
  • XPF_PASSKEYS_REQUESTS_CIUD
  • XPF_PASSKEYS_USERS_CIUD
  • XPF_PRIVILEGES_CIUD
  • XPF_PRIVILEGES_SET_CIUD
  • XPF_PRODUCTS_CIUD
  • XPF_ROLES_CIUD
  • XPF_USER_GROUPS_CIUD
  • XPF_USER_ROLES_CIUD
  • XPF_USERS_CIUD

Application Express (APEX) Application

Übersicht der dragon.XPF Anwendung in Oracle APEX
Fig. 7 · dragon.XPF application in Oracle APEX

3. Configuration (connection setup)

After successfully installing dragon.XPF, configure the APEX frontend (App ID 500). Under “Application Properties”, on the “Security” tab, adjust the database schema accordingly.

Oracle APEX: Datenbankschema unter Application Properties und Security einstellen
Fig. 8 · Adjusting the database schema in the application settings

A dragon.XPF administrator is created during installation (User-Id=0). The username is “admin”, and the password is also “admin”. It is strongly recommended that you change the initial password after the first login (“send passwort mail”).

Log in to dragon.XPF and open the “connection setup” section. Installation creates an “XPF Forms” entry by default. After installation, the authentication type (Con Authent) is set to “FORMS” so that the dragon.XPF administrator can log in.

Check the connection information listed there, then select an authentication type.

dragon.XPF Connection Setup: Verbindungsinformationen
Fig. 9 · Connection information in Connection Setup
dragon.XPF Connection Setup: Auswahl der Authentifizierungsart
Fig. 10 · Configuring the authentication type

Secure LDAP is not configured by default. It requires various administrative tasks, such as meeting the requirements for an LDAPS certificate.

dragon.XPF can import users from both Oracle APEX and the connected Active Directory (LDAP).

dragon.XPF: Benutzerimport aus APEX oder Active Directory
Fig. 11 · Importing users from existing directories

LDAP Search: Use the search base, scope and filter parameters to query a specific area of Active Directory. The “Result as string” tab displays the LDAP search results as plain text.

Beispielergebnis einer LDAP-Abfrage in dragon.XPF
Fig. 12 · Example LDAP query result

APEX Users: Retrieves the Oracle APEX users created in the current workspace.

The “Result as xpf import” tab displays the users found. The “xpf import” field indicates whether a user already exists in “users” (Imported). If the field is set to “No”, you can change it to “Yes”. Set the switches to “Yes” for all users you want to import, then save the settings.

If “use SAM Account” is set to “Yes”, the following alternative is used instead of userPrincipalName when creating the account: sAMAccoutName.

Various checks are performed, for example to determine whether the email address already exists or whether the username/domain name already exists for a connector. Duplicates are not allowed because assignments must be unique.


4. Product Licensing

Customers

To manage customer licenses, you must create an entry in the customer table. The registered customer email address is particularly important because it forms part of the generated license key.

Products

Define the registered applications here. Enter the product name, application ID, description (optional) and product version (optional) for the applications you want to manage and license. The manage.it product portfolio requires some specific settings.

  • Show Pw Reset Button: If enabled, the “forgot my password” button is displayed on the login screen to start the Reset Password Key process. If LDAP is active in the customer environment, hiding this button is recommended.
  • OTP Active: dragon.XPF supports two-factor authentication. If enabled, enter the correct manage.it OTP server URL here. For more information, see the “Multi-Factor Authentication (OTP)” section.
  • PASSKEY Active: dragon.XPF also supports PASSKEY. Define the Python backend in the PASSKEY URL field (e.g. http://127.0.0.1:9443/webauthn). Enter the namespace to be used in PASSKEY Origin (e.g. https://my.system.de). To log in with PASSKEY, the authenticated user must complete the PASSKEY registration process (in the user menu at the top right).

Licenses

First, select the registered customer email address. Select an application (App. Id), set the expiration date and specify how many users (maximum Oracle user licenses) can use the application.

You must know the exact host name and database name of the target system. When you save your entries, a license key (code) and a Key Byte (code) are generated. You can enter these values directly in the customer database or enter both codes in the registration screen.

Every manage.it product has a button on its login screen for registering the product (redirecting to the dragon.XPF licensing screen). The button is only displayed if the procedure XPF_AUTH.show_license_key_registration returns TRUE because no valid license key is available (null) or the expiration date has passed.

dragon.XPF Lizenzierungsmaske zur Registrierung eines Produkts
Fig. 13 · Registering and licensing a product

Every manage.it software product includes this software registration page. This window appears when no valid license key has been stored or, for example, the expiration date has passed. The user or owner of the manage.it software enters their registered email address, the relevant expiration date and the maximum number of licensed users here.

The user then enters the generated product license key (License Key) and the corresponding Key Byte, and clicks “save product license”. If all entries are correct, a success message is displayed and the user can log in to the application.

Note: Remember to configure the dragon.XPF user groups, roles and privileges for each user and application.


5. Preparing Authorization Objects (authorization privileges)

Open the “privileges” section. Before you can create roles and groups for an application, you must first generate the authorization objects. The dragon.XPF view VW_XPF_APEX_AUTHORIZATIONS generates a set of all APEX objects that have the ‘dragon.Foundation Authorization’ Controller defined under Security.

Note: You must first add the application in the “products” section before authorization objects can be generated for it.

Click “update privileges set” (this may take a few seconds). The components are then generated across all applications in the current workspace.

For COMPONENT_TYPE APEX_APPLICATION_PAGES, the view always uses the page name as COMPONENT_NAME. In subsequent processing, this is replaced with the page title if the two values differ, because the authorization check for APEX_APPLICATION_PAGES always receives the page title.

Übersicht der ermittelten APEX-Berechtigungsobjekte
Fig. 14 · Identified APEX authorization objects

Once you have created roles and groups, you can click a component (Privilege) to see which roles and groups use it.


6. Authorization Roles (authorization roles)

Open the “roles” section and click “Add Role” to create an authorization role. Enter a role name and description, and assign an application to the role. Assigning the application ensures that only authorization objects with that application ID are displayed.

dragon.XPF: Verwaltung der Berechtigungsrollen
Fig. 15 · Managing authorization roles

Click the “role id” to assign authorization objects to the role. The “privilege assignment” tab provides an overview of assigned privileges (Assigned Privileges) and available privileges (available privileges).

When assigning privileges, consider setting the filter to display only relevant objects (for example, by setting the Page Id).

Select the checkboxes for the relevant authorization objects and click “assign selected privileges to role” at the top or bottom.

dragon.XPF: Berechtigungsobjekte einer Rolle zuweisen
Fig. 16 · Assigning privileges to a role

The assigned authorization objects now appear under “assigned privileges”. To remove authorization objects, select their checkboxes and click “remove selected privileges from role”. The entries are removed from the assigned list and appear again under “available privileges” on the right.

The “role members” tab shows all users assigned to this role. You can assign the role directly to users here if you do not intend to use an authorization group (groups).

Abbildung zur Rollenverwaltung
Fig. 17 · Role management

The “role used in group” tab shows which authorization groups use the current role.


7. Authorization Groups (authorization groups)

If you need to create groups of roles (for example, in large application environments), open “groups” and create an authorization group.

Abbildung zur Berechtigungsverwaltung
Fig. 18 · Authorization management

Click “group id” to open the group details and assign the relevant roles and users.

As with roles and privileges, you can see both assigned roles and roles available for assignment. Select the roles you want to assign to the group and click “assign selected roles to group”. The selected roles are then assigned to the group.

dragon.XPF: Rollen einer Berechtigungsgruppe zuweisen
Fig. 19 · Assigning roles to an authorization group

The “group members” tab shows which users are assigned to the group. The “group privileges” tab shows which authorization objects are included in the group.


8. Users (users)

Once the authorization objects have been generated and the roles and groups configured, you can assign them to users. Open the “users” section.

Click “Add User” to create Forms users (LDAP login is only possible if the corresponding accounts also exist in the domain).

Fill in the username, first name, last name and email fields, select the required connector and click “Save”. A welcome email with instructions for creating a password is generated and sent to the user.

You can now assign groups (user groups), roles (user roles) or even an individual authorization object (user privileges) to the user. Assigning and removing these follows the same logic described for roles and groups.

The “effective privileges” tab shows all effective authorization objects and their sources (group, role or individual privilege).


9. Multi-factor authentication with one-time passwords (OTPs).

If OTP is enabled for an application in the manage.it product portfolio, you can specify for each user whether they must enter the token ID when logging in. Set the OTP Auth. switch to “Yes” or “No” and save.

Prerequisites in dragon.XPF:

  • The relevant application is configured for OTP in the “product licensing” section.
  • The user has a valid email address.
  • The protected field MFA_AUTO_PW contains a generated GUID.

The individual steps of the OTP process are explained below:

  1. Registering users with OTP: Select one or more users and click “register user to OTP ”. The selected users are registered with manage.it OTP. dragon.XPF sends a GUID to the OTP service and, after successful registration, receives a UUID, which is stored and used for subsequent processes.
  2. After the users have been registered with OTP, generate OTP QR code emails so they can add an entry in Google Authenticator. Select one or more users and click “generate OTP QR E-Mail”. The users receive an email with a QR code that they can scan in Google Authenticator (manageit-mfa). Note: Generating a QR code invalidates the previous entry in Google Authenticator!
  3. Deregistering users from OTP: To deregister users from OTP, select one or more users and click “deregister user from OTP ”. Deregistering a user invalidates their Google Authenticator entry.
  4. Once the user is registered and has scanned the QR code, they can enter the six-digit Authenticator code at their next login. The field responds to the Enter key and accepts a maximum of six characters.
MFA-Anmeldung mit einem sechsstelligen Authenticator-Code
Fig. 20 · Logging in with an Authenticator code
  1. The user first enters their username and password, followed by the six-digit code. The subsequent process runs the validation function. If all steps are completed correctly and no errors occur, the user is logged in to the application.

10. Authorizing the DML Buttons of an Interactive Grid

Since there is no APPLICATION variable that provides the EDIT_OPERATIONS for an Interactive Grid, proceed as follows.

In the Interactive Grid attributes, enable the operations that should be permitted (for example, UPDATE only). You do not need to select dragon.Foundation Authorization under Edit Authorization.

Oracle APEX Interactive Grid: erlaubte DML-Operationen konfigurieren
Fig. 21 · Configuring the permitted Interactive Grid operations

In the Interactive Grid’s READ ONLY attribute, enable a “Function Body” that calls the dragon.XPF Custom Authorization Controller.

Interactive Grid: Read-Only-Funktion mit dem dragon.XPF Authorization Controller
Fig. 22 · Controlling read-only behavior through the Authorization Controller
-- WENN DIE AUTHORISIERUNGSPRÜFUNG TRUE ZURÜCK LIEFERT,
-- DANN WIRD READ ONLY AUF FALSE GESETZT
IF XPF_AUTH.AUTHORIZATION_CONTROLLER(
      P_COMPONENT_TYPE => XPF_AUTH.CON_APEX_APPL_IG_EDITABLE,
      P_COMPONENT_NAME => 'ig_users', -- CHANGE TO GRID NAME!
      P_PAGE_ID        => :APP_PAGE_ID,
      P_APPLICATION_ID => :APP_ID,
      P_USERNAME       => :APP_USER) = TRUE THEN
   RETURN FALSE; -- BENUTZER IST BERECHTIGT
ELSE
   RETURN TRUE; -- BENUTZER IST NICHT BERECHTIGT
END IF;