Loopwise Docs
Guides

Managing OAuth Applications

How to create, configure, and manage OAuth applications in Loopwise.

OAuth applications are managed through the school admin UI. Pre-registered vendor platforms retrieve their credentials — rather than manage applications — via the client registration endpoint.

Admin UI

School administrators can manage OAuth applications at Settings > OAuth Applications.

Creating an application

  1. Navigate to Settings > OAuth Applications
  2. Click New Application
  3. Fill in the application details:
    • Name — a descriptive name shown on the consent screen
    • Redirect URIs — one or more callback URLs (one per line)
    • Scopes — the permissions this application can request
    • Confidential — check this if your application can securely store a client secret
  4. Click Create

After creation, you'll see the client_id and client_secret (if confidential). Store the secret securely — it cannot be retrieved later.

Editing an application

From the application list, click the application name to view its details. You can update the name, redirect URIs, and scopes. The client_id cannot be changed.

Revoking an application

Deleting an application immediately revokes all access tokens and refresh tokens issued to it. Users who authorized the application will need to re-authorize if a new application is created.

Client registration for vendor platforms

For automated integrations (such as MCP clients like Claude Code or Cursor), the registration endpoint issues credentials for pre-registered vendor platforms only: it matches your client_name against a known integration and returns that platform's credentials. It is not open dynamic client registration (RFC 7591) — an unrecognized client_name is refused with invalid_client_metadata.

POST /api/oauth/register
Content-Type: application/json

{
  "client_name": "Claude Code",
  "redirect_uris": ["http://127.0.0.1:41234/callback"],
  "grant_types": ["authorization_code", "refresh_token"],
  "response_types": ["code"],
  "token_endpoint_auth_method": "none"
}

Known platforms

Loopwise recognizes the following client names and maps them to pre-registered platform applications. Loopwise's own internal clients are pre-registered too, but they answer to a fixed client ID rather than a name, so they never appear through this path and are not listed:

Client name patternPlatform
ClaudeClaude Code
CursorCursor
WindsurfWindsurf
ReplitReplit
LovableLovable
BoltBolt
CodexCodex
AntigravityAntigravity

When a known platform registers, Loopwise returns the pre-registered application credentials for that platform. This ensures a consistent experience — users see the correct platform name on the consent screen.

An unrecognized client_name is refused with invalid_client_metadata; the endpoint does not register arbitrary clients. A client that is not a pre-registered vendor identifies via a Client ID Metadata Document instead — publish the document over HTTPS and use its URL as your client_id, where the server permits the document's host.

The registration response lists only the redirect_uris the platform application will accept at the authorization endpoint. A redirect URI you declared that is missing from the response will be refused there; use one that is listed.

Client ID Metadata Documents

The discovery metadata advertises client_id_metadata_document_supported: true, so an MCP client that supports Client ID Metadata Documents uses the HTTPS URL of its document as its client_id and skips the registration endpoint. Loopwise fetches the document, and the redirect_uris it lists are the ones the authorization endpoint accepts. A loopback redirect (http://127.0.0.1/... or http://localhost/...) matches on any port.

Documents served from these hosts are trusted with the same permissions as a pre-registered vendor platform:

HostClients
claude.aiClaude (web, desktop and mobile), Claude Code
chatgpt.comChatGPT, Codex
vscode.devVisual Studio Code

The consent screen names the host serving the document and the host the browser returns to, so users can see who they are authorizing. Connections made earlier through the registration endpoint keep working; only new connections switch to the document.

Discovery endpoint

Applications can discover OAuth configuration automatically via the well-known metadata endpoint:

GET /.well-known/oauth-authorization-server

This returns all endpoint URLs, supported scopes, and the default MCP client ID. See RFC 8414 for the full specification.

On this page