Top Banner

Click here to load reader

Latch Mediawiki english

Jan 08, 2017

ReportDownload

Technology

  • ElevenPaths, radical and disruptive innovation in security solutions

    ElevenPaths [email protected] elevenpaths.com

    Latch plugin installation and user guide for MediaWiki

    Version 7.1 November 2016

  • Latch plugin installation and user guide for MediaWiki

    V.7.1 November 2016

    Page 2 of 14 2016 Telefnica Digital Espaa, S.L.U. All rights reserved.

    TABLE OF CONTENT

    1 Obtaining the Latch plugin .......................................................................................... 3

    1.1 Prerequisites ............................................................................................................................. 3

    1.2 Obtaining application ID ........................................................................................................... 3

    1.3 Downloading the plugin............................................................................................................ 6

    2 Installing the plugin..................................................................................................... 7

    2.1 Configuring the plugin .............................................................................................................. 9

    2.2 Uninstalling the plugin .............................................................................................................. 9

    3 Use of the Latch plugin by end users........................................................................... 10

    3.1 Pairing a user .......................................................................................................................... 10

    3.2 Unpairing a user ...................................................................................................................... 12

    4 Resources .................................................................................................................. 13

  • Latch plugin installation and user guide for MediaWiki

    V.7.1 November 2016

    Page 3 of 14 2016 Telefnica Digital Espaa, S.L.U. All rights reserved.

    1 Obtaining the Latch plugin

    1.1 Prerequisites

    MediaWiki version 1.25.3 1.26.3.

    1.2 Obtaining application ID

    To obtain the "Application ID" and the "Secret", which are essential to integrate Latch into a service,

    its necessary to register a developer account in Latch's website: https://latch.elevenpaths.com. On

    the upper right side, click on Developer area.

    Figure 01: Developer area in Latch webpage.

    In the next screen, select Create a new developer account, a form will appear where you can fill up the required data. Mandatory fields are name, e-mail and password.

    Figure 02: Sign in form for developers.

    https://latch.elevenpaths.com/

  • Latch plugin installation and user guide for MediaWiki

    V.7.1 November 2016

    Page 4 of 14 2016 Telefnica Digital Espaa, S.L.U. All rights reserved.

    Once completed, an email will be sent, with an activation code to activate the brand new account.

    Figure 03: Form to fill up with activation code.

    When the account is activated, the user will be able to create applications with Latch and access to developer documentation, including existing SDKs and plugins.

    To do so the developer must log on to the Latch website and then access the "Developer area" section (https://latch.elevenpaths.com/www/developerArea), where you can view your applications through the "My applications" section on the side menu.

    Figure 04: My applications section with user's configured applications.

    From the "Add a new application" button, the developer will create a new application, with the specified name, which you want to appear in the end users' mobile application.

    https://latch.elevenpaths.com/www/developerArea

  • Latch plugin installation and user guide for MediaWiki

    V.7.1 November 2016

    Page 5 of 14 2016 Telefnica Digital Espaa, S.L.U. All rights reserved.

    Figure 05: Creating an application. The name will be shown on the mobile app.

    Information about the application is displayed when it is created and part of this data is editable. The basic data that the developer should use when installing the plugin are the "Application ID" and "Secret". In addition the following additional parameters are in place, which the developer may change at any time, that set the characteristics of your application:

    Name: This corresponds to the name of the application that end users see on their devices when they pair the service. They can customize it themselves on their own device if they so wish.

    Image: This corresponds to the application icon that will appear in the end-user's device; its size should not exceed 1MB. It is recommended to be in 24-bit png format without alpha channel, and its proportions are 1: 1.

    2nd OTP factor (One-time password): This is only available to developers with a subscription model other than "Community". It enables the service to also be protected by a password, which is sent to the end user at the time he/she wants to access the service. The OTP setup can be:

    o Disabled: The option will not appear on the end user's mobile device.

    o Opt in: The end user may choose to use this option to protect the service.

    o Mandatory: The end user will receive a password every time he/she wants to access the service.

    Lock latches after request: This is only available to developers with a subscription model other than "Community". This enables the service to be locked automatically once it has been accessed. The Lock latches after request setup can be:

    o Disabled: The option will not appear on the end user's mobile device.

    o Opt in: The end user may choose to use this option to protect the service.

    o Mandatory: The service will be locked automatically once it has been accessed. In the latter case, the "Scheduled lock" option would disappear from the service details view.

    Contact email and Contact phone: These details will be displayed in the notifications that users will receive when there is a fraudulent attempt to access the service or any of its operations.

    Operations: This corresponds to each of the actions included in the service but independent of each other, and that the developer wants to protect with Latch. The number of operations that can be included depending on the model of subscription chosen. In each of the operations, a "2nd OTP factor" (OTP) and a "Lock latches after request" (LOR) can be used. It is not compulsory to create operations and this will depend on the nature of the service to be protected.

    https://latch.elevenpaths.com/www/subscription.htmlhttps://latch.elevenpaths.com/www/subscription.htmlhttps://latch.elevenpaths.com/www/subscription.htmlhttps://latch.elevenpaths.com/www/subscription.html

  • Latch plugin installation and user guide for MediaWiki

    V.7.1 November 2016

    Page 6 of 14 2016 Telefnica Digital Espaa, S.L.U. All rights reserved.

    This plugin does not support the use of operations. Tailored implementation through the SDK of the corresponding language must be carried out to add them.

    Once the setup is complete and the changes have been saved, the new application will appear on the list of the developer's applications. This can be edited whenever you want.

    Figure 06: Created application. It may be edited again at any moment

    1.3 Downloading the plugin

    From the side menu in developers area, the developer can access the Documentation & SDKs section. Inside it, there is a Plugins and SDKs menu. Links to different SDKs in different programming languages and plugins developed so far, are shown.

    Figure 07: Examples of SDKs and plugins available.

    The developer must tap the DOWNLOAD button for this plugin to access its source code from the

    Standard plugins section. A manual on the installation and use of the plugin can also be

    downloaded.

  • Latch plugin installation and user guide for MediaWiki

    V.7.1 November 2016

    Page 7 of 14 2016 Telefnica Digital Espaa, S.L.U. All rights reserved.

    2 Installing the plugin

    When the administrator obtains the plugin, he must add it to MediaWiki. To do so, he must copy the contents of the plugin in the extensions folder, located in the directory where MediaWiki was installed.

    Figure 08: Uploading the Latch plugin to MediaWiki.

    The next step is to open the LocalSettings.php file with any text editor and copy the following instructions at the end of it:

    require_once "extensions/Latch/LatchConf.php";

    require_once "extensions/Latch/LatchOTP.php";

    # Crate Latch DB tables

    $wgHooks['LoadExtensionSchemaUpdates'][] = 'SpecialLatch::fnMyHook';

    # Adds a link in the user's preferences menu

    $wgHooks['GetPreferences'][] = 'SpecialLatch::wfPrefHook';

    # Login hook that checks Latch status

    $wgHooks['PostLoginRedirect'][] = 'SpecialLatch::wfLoginHook';

    Figure 09: Instructions for installing the Latch plugin.

  • Latch plugin installation and user guide for MediaWiki

    V.7.1 November 2016

    Page 8 of 14 2016 Telefnica Digital Espaa, S.L.U. All rights reserved.

    Finally, the administrator must restart the installation of MediaWiki. The administrator must push Restart link or with the mw-config instruction. To do this, he must enter this command in the browser address bar after the URL of his MediaWiki site:

    http://host/sitio_MediaWiki/mw-config/

    Figure 10: Restarting the installation of MediaWiki.

    To restart the installation, the administrat