Skip to content

Who issues OAuth tokens for the API: web2project, the organization's IdP, or both? #487

Open

Description

@caseysoftware

Third-party apps, the replacement UI and remote MCP clients need OAuth 2.1 (authorization code with PKCE). Options:

  • web2project as its own authorization server (league/oauth2-server): works on every install, but adds a consent screen, client admin and token tables. The identity proposal (Proposal: Identity Layer for Single Sign-On and User Provisioning #435) lists "web2project acting as an OAuth authorization server" as a non-goal for SSO; this would be a narrow server for API clients only.
  • The organization's IdP (Entra ID, Okta, Keycloak) issues access tokens for the web2project API audience, and the API maps them to users through the identity layer's user_identities. No token tables, but only for installs that use SSO.
  • Both, with the IdP option preferred when SSO is configured.

Decision needed before: Phase 3 (#491).

Open question from the REST API and MCP server proposal (#471), section 17.

Activity

  1. added
    api
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiauthentication

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions