Skip to main content

Module scopes

Module scopes 

Source
Expand description

The OAuth scopes this provider knows.

Scopes are validated per client against oauth_clients.scopes; this registry spells the scope strings with cross-cutting meaning once.

Constants§

EXERCISE_SERVICES_SCOPE
Scope carried by device-flow tokens issued to native/editor clients (e.g. the TMC CLI / VSCode extension). It gates access to the exercise-services client API and is also checked by tmc-server when it introspects courses.mooc.fi tokens.
OFFLINE_ACCESS_SCOPE
Asks for a refresh token. Allowed alongside any resource’s scopes.

Functions§

metadata_document_client_scopes
Scopes a client registered through a Client ID Metadata Document may request: the MCP scopes and offline_access.
supported_scopes
Every scope the provider supports, as discovery advertises them.