Giter Club home page Giter Club logo

freeflow-threebot-login's Introduction

Freeflow 3bot Login Integration module

Requirements

  • HumHub URL Rewriting enabled
    • HumHub 1.3+
    • Enable pretty Urls in humhub configuration file protected/config/common.php
       <?php
      
       return [
           'components' => [
               'urlManager' => [
                   'showScriptName' => false,
                   'enablePrettyUrl' => true,
               ],
           ]
       ];
    • Enable rewriting in Apache server
      • Rename the file .htaccess-dist in humhub home dir to .htaccess
      • Edit the Apache configuration file /etc/apache2/sites-available/000-default.conf
        <VirtualHost *:80>
                <Directory /var/www/html>
                      Options Indexes FollowSymLinks MultiViews
                      AllowOverride All
                      Require all granted
                </Directory>
         </VirtualHost>
      • Enable mod-rewrite in Apache by invoking a2enmod rewrite then restart apache by service apache2 restart

Installation

Add configuration entry

  • Generate Cryptographic Key Pair
php -r "echo PHP_EOL;echo base64_encode(sodium_crypto_sign_keypair());echo PHP_EOL;echo PHP_EOL;"
  • Add the following to protected/config/common.php
'authClientCollection' => [
            'clients' => [
                '3bot' => [
                    'class' => 'humhub\modules\threebot_login\authclient\ThreebotAuth',
                    'clientId' => '3bot',
                    'keyPair' => '{Generated_Key_Pair}'

                ]
            ]
]

Install module

Manual way
  1. Download module files and put it into: /protected/modules/threebot_login
  2. Make sure module directory owned by Web user : `chmod -R www-data:www-data {humhub-Path}/protected/modules/threebot_login
  3. Enable module (Administration -> Modules -> Installed -> Threebot Login -> Enable)
Automatic way (command line)
cd {humhub-installation-dir}/protected
cp -r humhub-modules-rest {humhub-installation-dir}/protected/modules/threebot_login
chown -R www-data:www-data modules/threebot_login
./yii module/list
./yii module/enable threebot_login

freeflow-threebot-login's People

Contributors

hamdy avatar ehab-hassan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.