Skip to content

Instantly share code, notes, and snippets.

@devendran-odin
devendran-odin / sample.env
Created September 26, 2025 12:26
Complete Node.js OpenID Connect (OIDC) Identity Provider (IdP) implementation for Canvas LMS. This example includes email-based magic link login, OAuth2 / OIDC endpoints, user consent handling, and integration with Canvas via API for creating/verifying users and sessions. Also includes environment variable setup for keys, tokens, and service con…
# -------------------------------
# Basic Server Configuration
# -------------------------------
PORT=8003
TOOL_URL=https://your-app-public-url.com # Public URL of your app/tool
# -------------------------------
# OAuth/OIDC Client Configuration
# -------------------------------
OIDC_CLIENT_ID=10001 # Replace with your OIDC client ID