Authenticate to the Brightspace (D2L) Valence API using OAuth 2.0 instead of the deprecated ID-Key signing scheme.

domain: docs.valence.desire2learn.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Prefer OAuth 2.0 over the legacy Application ID/Key + User ID/Key HMAC scheme, which D2L has deprecated and no longer fully supports.
  2. For interactive/user-context access, use the Authorization Code Grant against https://auth.brightspace.com/oauth2/auth and https://auth.brightspace.com/core/connect/token.
  3. For service-to-service access, use the Client Credentials Grant with a signed JWT client assertion (RFC 7523, RS256/ES256, etc.) instead of a client_secret.
  4. Request scopes in the <resource-group>:<resource>:<action> format (e.g., users:userdata:read), falling back to core:*:* only for routes without finer-grained scopes.
  5. Call REST endpoints under https://{host}/d2l/api/{component}/{version}/{path} (e.g., /d2l/api/lp/1.31/users/whoami) with the token as Authorization: Bearer.

Known gotchas

Related routes

Authenticate to the D2L Brightspace Valence API using the OAuth 2.0 Client Credentials grant for a server-to-server integration
education · 6 steps · unrated
Implement the Brightspace Valence OAuth 2.0 Authorization Code grant with refresh tokens for a user-facing application
education · 5 steps · unrated
Enroll a user in a Brightspace course offering via the Valence enrollment API
docs.valence.desire2learn.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans