Skip to content

Instantly share code, notes, and snippets.

View Dahkenangnon's full-sized avatar
:octocat:
Visit OidFed.com

Dahkenangnon

:octocat:
Visit OidFed.com
View GitHub Profile
@pauldenhertog
pauldenhertog / OpenID-Federation_and_eduGAIN.md
Created July 22, 2025 09:27
A Trusted Foundation for the EUDI Wallet in Research and Education: Why eduGAIN and OpenID Federation Matter

A Trusted Foundation for the EUDI Wallet in Research and Education: Why eduGAIN and OpenID Federation Matter

Authors: Paul den Hertog (Strategic advisor, SURF), Niels van Dijk (Trust & Security specialist, SURF), Klaas Wierenga (Chief Information & Technology Officer, GÉANT)

Date: July 2025

This paper was written within the framework of the DC4EU Large Scale Pilot. The DC4EU project is Co-funded by the European Union’s Digital Europe Programme under Grant Agreement no. 101102611

Abstract

@joshnuss
joshnuss / app.js
Last active November 4, 2025 22:39
Express.js role-based permissions middleware
// the main app file
import express from "express";
import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db)
import authenticate from "./authentication"; // middleware for doing authentication
import permit from "./authorization"; // middleware for checking if user's role is permitted to make request
const app = express(),
api = express.Router();
// first middleware will setup db connection