Skip to content

Meduseld

Meduseld

We build tools for self-hosted server management. Our public project is Herugrim — everything else is internal tooling for our gaming group.

Open Source

A Cloudflare Worker that lets you authenticate with Cloudflare Access using Discord. It wraps OIDC around Discord's OAuth2 API so Cloudflare Access can use Discord as an identity provider — no separate identity service needed.

Fork of Erisa/discord-oidc-worker with several improvements:

  • Environment-based config — all settings via Wrangler env vars and secrets, no credentials in source code
  • Admin role detection — checks for a specific Discord role and includes is_admin in the JWT, so your app can do role-based access control without a separate admin system
  • Rich user claims — the ID token includes a discord_user object with full profile data (ID, username, display name, avatar, discriminator) instead of just email
  • Dynamic OAuth scopes — only requests guilds.members.read when admin detection is enabled, reducing permissions for simpler setups
  • No KV dependency — signing keys are generated in-memory, no Cloudflare KV namespace to set up
  • Error handling — all Discord API calls are validated with descriptive error responses
  • Health endpointGET /health for uptime monitoring
  • Optional guild restriction — limit access to members of specific Discord servers
  • One-click deploy — deploy button in the README for quick Cloudflare Workers setup

If you're using Cloudflare Access and want Discord login, this is what you need. Check the repo README for setup instructions.

Tech: Cloudflare Workers, Hono, Jose · License: MIT

Internal Projects

The rest of our repos are private tools we use to manage a dedicated game server, media streaming, and system monitoring for our friend group.

  • meduseld-backend — Flask API and control panel for managing a dedicated game server, Jellyfin SSO, system monitoring, and user management
  • meduseld-site — Static frontend pages served via Cloudflare Pages (services hub, admin panel, system monitor)

Contributors

@quietarcade · @Hier0g1yphiK · @glenwinters859 · @ThomasDrennan

Pinned Loading

  1. herugrim herugrim Public

    Discord OIDC identity provider for Cloudflare Access — authenticate users with Discord via a Cloudflare Worker.

    JavaScript

  2. meduseld-backend meduseld-backend Public

    Flask backend for game server management — control panel, system monitoring, Jellyfin SSO, and health APIs.

    Python

  3. meduseld-site meduseld-site Public

    Static frontend for Meduseld — services hub, admin panel, system monitor, and landing pages served via Cloudflare Pages.

    HTML

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…