Skip to main content

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;
            };
          }
        ];
      };
    };
  };
}

Metadata

Release files for discord-to-authentik 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord-to-authentik 0.1.2
File Size Uploaded
discord_to_authentik-0.1.2.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for discord-to-authentik 0.1.2
File Interpreter ABI Platform
discord_to_authentik-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / discord_to_authentik-0.1.2.tar.gz

Download URL discord_to_authentik-0.1.2.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
693f9e1ca034f412c6441050549444f0be8c862dafbee8b6fbe7870c17b478a8
BLAKE2b-256 checksum
How to use checksums
e4b896ed8d28fba49300e8ff3943dd3f58c97a40bd55ca3e9b7d92581b8c583c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Linux/6.10.1-arch1-1

Release files / discord_to_authentik-0.1.2-py3-none-any.whl

Download URL discord_to_authentik-0.1.2-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd2ed2a169e1a4d8738d8e99f5225a44923df7599aa747ac2672e03de3a40fe8
BLAKE2b-256 checksum
How to use checksums
3a51c7ea80ce50e44831d5333899bb2dddbe5cd6a9ac6bf13b6b1b8fe7290174
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Linux/6.10.1-arch1-1

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page