Skip to content

An Azuriom plugin to login and register using Discord Oauth2

Notifications You must be signed in to change notification settings

magrigry/discord-auth

Repository files navigation

Azuriom Discord authentication

This Azuriom plugin allow users to authenticate thought Discord OAuth2 API.

Installations

Add a login via discord button in your template

Example : ressources/themes/carbon/view/elements near <!-- Authentication Links -->

    @guest
        <li class="nav-item">
            <a class="btn btn-secondary mx-1 my-2" href="{{ route('discord-auth.login') }}">{{ trans('discord-auth::messages.login_via_discord') }}</a>
        </li>
    @endguest

You can also use the admin panel to add a navigation button, but it may be a bit less aesthetic Admin panel -> Navigation

Register a discord app and fill credentials

Update depedencies

Go to plugin/discord-auth and run composer update

Todo

  • Configuration via panel admin