Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 971 Bytes

README.md

File metadata and controls

26 lines (24 loc) · 971 Bytes

Setup

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.

return [
    // ...
    'components' => [
        // ...
        'authClientCollection' => [
            'clients' => [
                // ...
                'discord' => [
                    'class' => 'humhub\modules\user\authclient\Discord',
                    'clientId' => 'Your Discord App ID here',
                    'clientSecret' => 'Your Discord App Secret here',
                    'returnUrl' => 'http://YOUR-HUMHUB.com/user/auth/external?authclient=discord',
                ],
            ],
        ],
        // ...
    ],
    // ...
];

Note: There is now a Discord Oauth module available to the public.