Skip to content

Latest commit

 

History

History
134 lines (114 loc) · 4.84 KB

README.md

File metadata and controls

134 lines (114 loc) · 4.84 KB

CLA assistant

HumHub OAuths

A number of Social OAuth for the Social Platform HumHub

Notice: These are not for account creation, these are for connecting Social media accounts to your HumHub installation and logging in with them after.

OAuth Install & Setup

Once you've downloaded & uploaded the contents from both the Discord & Slack directories to /protected/humhub/modules/user/authclient add the following codes to your common.php file located in /protected/config.

Discord (Working)

To use this you'll have to first acquire your clientId & clientSecret from https://discordapp.com/developers/applications/me then make sure that you also set your redirect URI to http://YOUR-HUMHUB.com/user/auth/external?authclient=discord or it won't work.

'discord' => [
                    'class' => 'humhub\modules\user\authclient\Discord',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
             ],

Slack (Not Working)

To use this you'll have to first acquire your clientId & clientSecret from https://api.slack.com/apps then make sure that you also set your redirect URL to http://YOUR-HUMHUB.com/user/auth/external?authclient=slack or it won't work.

'slack' => [
                    'class' => 'humhub\modules\user\authclient\Slack',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
           ],

WordPress (Tested!)

'wordpress' => [
                    'class' => 'humhub\modules\user\authclient\WordPress',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
               ],

Odnoklassniki (Not Tested!)

'odnoklassniki' => [
                    'class' => 'humhub\modules\user\authclient\Odnoklassniki',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
                   ],

Instagram (Deprecated since 1.0.1!)

'instagram' => [
                    'class' => 'humhub\modules\user\authclient\Instagram',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
               ],

QQ (Not Tested!)

'qq' => [
                    'class' => 'humhub\modules\user\authclient\QQ',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
        ],

Tumblr (Tested and not working!)

'tumblr' => [
                    'class' => 'humhub\modules\user\authclient\Tumblr',
                    'consumerKey' => 'YOUR CLIENT ID HERE',
                    'consumerSecret' => 'YOUR SECRET HERE',
            ],

Foursquare (Not tested!)

'foursquare' => [
                    'class' => 'humhub\modules\user\authclient\Foursquare',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
                ],

Pinterest (Tested!)

'pinterest' => [
                    'class' => 'humhub\modules\user\authclient\Pinterest',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
               ],

WeChat (Not tested!)

'wechat' => [
                    'class' => 'humhub\modules\user\authclient\WeChat',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
            ],

Patreon (Note: Do not use unless you know how Patreon Oauths work!)

'patreon' => [
                    'class' => 'humhub\modules\user\authclient\Patreon',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
             ],

Soundcloud (Not tested!)

'soundcloud' => [
                    'class' => 'humhub\modules\user\authclient\Soundcloud',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
           ],
               'twitch' => [
                    'class' => 'humhub\modules\user\authclient\Twitch',
                    'clientId' => 'YOUR CLIENT ID HERE',
                    'clientSecret' => 'YOUR SECRET HERE',
               ],

More to come!

Notice: These aren't all 100% working, and need work done before they can be used to the fullest!