Skip to main content

Synchronize roles you create in Discord to authentik for Discord Auth managment

Project description

Discord to authentik

A Discord bot that synchronizes your discord roles to authentik groups.

Preamble

I really like using the Discord Login functionality of authentik. And also the great Guides that have been written for it.

Although it did bother me that i had to create the groups manually instead of authentik syncing them from my Discord instance on demand.

So i created this solution that allows you to synchronize all your Discord roles to authentik groups with the required discord_role_id attribute!

This is a great complimentary application to this guide!

Sounds great. How do i install and use it?

The installation is as simple as executing those following commands:

pipx install --global discord-to-authentik
sudo discord-to-authentik-setup

Then you type !sync into the Discord Guild your bot runs in to synchronize the slash command sync_roles.
From this point you can just do /sync_roles whenever you want to synchronize your discord roles with your authentik instance.

Enjoy ✨

Installing on NixOS

This project provides a flake output with a module!

Import into your flake:

# Example flake.nix!
{
  inputs.discord-to-authentik.url = "github:rathmerdominik/discord-to-authentik";

  outputs = inputs@{ ... }: {
    nixosConfigurations = {
      your-host = inputs.nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          inputs.discord-to-authentik.nixosModules.default
          {
            services.discord-to-authentik = {
                enabled = true;
                environmentFiles = /path/to/env/file;
            };
          }
        ];
      };
    };
  };
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord_to_authentik-0.1.2.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

discord_to_authentik-0.1.2-py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page