Skip to content

Telefonica/latch-plugin-drupal6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

#LATCH INSTALLATION AND USE GUIDE FOR DRUPAL 6

##INSTALLING THE LATCH MODULE

###PREREQUISITES

  • Drupal version 6.

  • Curl extensions active in PHP (uncomment "extension=php_curl.dll" or "extension=curl.so" in Windows or Linux php.ini respectively).

  • To get the "Application ID" and "Secret", (fundamental values for integrating Latch in any application), it’s necessary to register a developer account in Latch's website. On the upper right side, click on "Developer area".

###DOWNLOADING THE MODULE

  • 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. The user has to access again to Developer area, and browse his applications from "My applications" section in the side menu.

  • When creating an application, two fundamental fields are shown: "Application ID" and "Secret", keep these for later use. There are some additional parameters to be chosen, as the application icon (that will be shown in Latch) and whether the application will support OTP (One Time Password) or not.

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

###INSTALLING THE MODULE

  • Once the administrator has downloaded the plugin, it has to be added as a module in its administration panel in Drupal 6. Unzip the downloaded plugin and place the whole content inside "modules".

  • Go to "Modules", following this menu: "Administer"-"Site building"-"Modules". At the bottom of the web, the just installed "latch" module will be shown. It has to be enabled.

  • Introduce "Application ID" and "Secret" data, generated before. Got to Latch configuration ("Administer"-"Site configuration"-"Latch Config") fill the form.

  • A new "Latch Account" button will be shown under "My Account". The token generated by the Latch app will be added there.

  • Go to "Permissions" ("Administer"-"User management"-"Permissions"). Latch are all under "latch module". At least "pairing enabled" option should be enabled corresponding to "authenticated user" permissions.

###UNINSTALLING THE MODULE IN DRUPAL 6

  • Go to "Modules", through "Administer"-"Site building"-"Modules". Below, "latch" module will appear. Administrator has to disable unchecking "Enabled", and save changes.

  • From "Modules" go to "Uninstall", and activate "Uninstall" option from Latch. Press "Uninstall" and press again on "Uninstall" to confirm.

  • Latch is still in the module list, but "Application ID" and "Secret" have been removed, so if activating it again they will have to be introduced again.

##USE OF LATCH MODULE FOR THE USERS Latch does not affect in any case or in any way the usual operations with an account. It just allows or denies actions over it, acting as an independent extra layer of security that, once removed or without effect, will have no effect over the accounts, that will remain with its original state.

###Pairing a user in Drupal 6 The user needs the Latch application installed on the phone, and follow these steps:

  • Step 1: Logged in your own account, go to "My Account", and click on the new button "Latch Account".

  • Step 2: From the Latch app on the phone, the user has to generate the token, pressing on “Add a new service" at the bottom of the application, and pressing "Generate new code" will take the user to a new screen where the pairing code will be displayed.

  • Step 3: The user has to type the characters generated on the phone into the text box displayed on the web page. Click on "pair account" button.

  • Step 4: Now the user may lock and unlock the account, preventing any unauthorized access.

###Unpairing a user in Drupal 6

  • From your Drupal 6 account go to the link “My account”, tap the “Latch Account" button, followed by “Unpair Account”. Finally, an alert indicating that the service has been unpaired will be displayed.

##RESOURCES

Releases

No releases published

Packages

No packages published

Languages