Skip to content

Document PMOSS GitHub OAuth app setup for local development #1140

Open

Description

@A1L13N

Context

PMOSS needs a GitHub OAuth app, but a contributor can't sign in when running locally. pmoss/wrangler.toml hardcodes GITHUB_REDIRECT_URI = "https://pmoss.alphaonelabs.com/auth/callback" under [vars], and src/auth.py (lines 19 and 45) reads GITHUB_REDIRECT_URI, falling back to an undocumented GITHUB_REDIRECT_URI_DEFAULT. The README only covers creating a production OAuth app. It never explains a local callback (http://localhost:8787/auth/callback), .dev.vars, or which variables are required and which are optional.

What to do

  • Add a "Local development" section: create a second OAuth app for http://localhost:8787, put GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET and GITHUB_REDIRECT_URI in pmoss/.dev.vars (already gitignored at the repo root), and run npx wrangler dev.
  • Add pmoss/.dev.vars.example with placeholder values.
  • List every env var the code reads (GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, GITHUB_REDIRECT_URI, GITHUB_REDIRECT_URI_DEFAULT, GITHUB_WEBHOOK_SECRET) in a table saying whether each is required and what it does. Remove documented variables the code doesn't read, or flag them for maintainers.
  • Explain how to test webhooks locally (e.g. cloudflared tunnel or GitHub's "Redeliver").

Acceptance criteria

  • A newcomer can sign in to a local PMOSS by following the README only.
  • .dev.vars.example exists and contains no real secrets.
  • The env var table matches grep env. pmoss/src.

Files

  • pmoss/README.md
  • pmoss/.dev.vars.example (new)
  • pmoss/wrangler.toml
  • pmoss/src/auth.py

Helpful links

Part of GSoC 2027 onboarding — see https://gsoc.alphaonelabs.com

Activity

  1. added
    documentation
    good first issue
    gsoc-2027
    on Nov 2, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions
  3. reopened this on Nov 2, 2026
  4. added
    2026-11
    on Nov 2, 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

    2026-11documentationgood first issuegsoc-2027project: pmoss

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions