Work report

Authentication into Rovas with Na bezky! account

Project: 
Date: 
04/08/2019 - 11:30
Merit reward 
19 ME
Time worked: 
4hrs
Work Evidence Source: 
Web Address: 

Rovas is using the Hybridauth module to allow users of social networks and other web applications to log in. Today I completed adding functionality that allows authenticating into Rovas with with the Na bezky! portal account. In particular, I created the icons for the service and made these code changes: 1.added the rovas_ha_ctools_plugin_directory function into the custom rovas_ha module that was originally created to allow Hybridauth to use Oauth service of the Drupal Oauth2 module running on the nabezky portal, 2. created a "plugins" subdirectory in the rovas_ha module that contains subfolders ▸ ⁨icon_pack⁩ ▸ ⁨hybridauth_16⁩⁩ (hybridauth_24,...hybridauth_48) ▸ ⁨icons; the hybridauth_xx folders each contain hybridauth_xx.css files where new selector/style was added for the new provider (nabezky) icon. The (same) nabezky.svg file was added into each "icons" folder. 3. a customized copy of the DrupaOAuth2.inc was made and put into ⁨the ⁨hybridauth⁩ module's ⁨plugins⁩ ▸ ⁨provider⁩ ▸ ⁨NaBezky⁩ folder. The file is called Nabezky.inc. 4. the DrupalOAuth2.php file of the ⁨hybridauth⁩ library in subfolder ⁨hybridauth⁩ ▸ ⁨Hybrid⁩ ▸ ⁨Providers⁩ was cloned and adapted with a patch that I created previously. The resulting file Nabezky.php was placed into the same directory as DrupalOAuth2.php With these changes a user who has an account in nabezky.sk or cyklonaut.sk portals can log into Rovas using those credentials. At this time the functionality is available for testing in the dev environment: dev.merit.world

Edit  Delete  Verify