Skip to content
Skillv1.0.0

oauth2server

Minimal OAuth 2.1 / OIDC issuer: authorization-code flow with PKCE.

by golusoris(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from golusoris/golusoris (auth/oauth2server/AGENTS.md). Install upstream with npx skills add golusoris/golusoris --skill oauth2server. Copyright stays with the author.

auth/oauth2server

Minimal OAuth 2.1 / OIDC issuer: authorization-code flow with PKCE.

Surface

  • oauth2server.New(opts)*Server.
  • Server.Routes()http.Handler exposing /authorize + /token.
  • MemoryClientStore, MemoryCodeStore for tests / single-replica deployments.
  • Options.Authenticate(r) is the integration point with your session store.

Notes

  • Only authorization_code grant is supported; PKCE (S256 or plain) is mandatory.
  • Access tokens are JWTs signed by the injected *jwt.Signer. ID-token issuance and refresh tokens are intentionally not implemented yet.
  • Codes are single-use and TTL-bounded (default 60s).
  • Mount under your trusted issuer URL — there is no rate limiting; combine with httpx/ratelimit/.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/golusoris-golusoris-oauth2server/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

golusoris-golusoris-oauth2server.ocm.jsonjson
{
  "ocm": "1",
  "id": "golusoris-golusoris-oauth2server",
  "kind": "skill",
  "name": "oauth2server",
  "description": "Minimal OAuth 2.1 / OIDC issuer: authorization-code flow with PKCE.",
  "publisher": "golusoris",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding",
      "math"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Minimal OAuth 2.1 / OIDC issuer: authorization-code flow with PKCE."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/golusoris/golusoris",
      "path": "auth/oauth2server/AGENTS.md",
      "ref": "d5a862a77ad92addebfb1bb325c0f1707ca2f243",
      "url": "https://github.com/golusoris/golusoris/blob/d5a862a77ad92addebfb1bb325c0f1707ca2f243/auth/oauth2server/AGENTS.md",
      "key": "golusoris/golusoris/auth/oauth2server/AGENTS.md"
    }
  },
  "instructions": "# auth/oauth2server\n\nMinimal OAuth 2.1 / OIDC issuer: authorization-code flow with PKCE.\n\n## Surface\n\n- `oauth2server.New(opts)` → `*Server`.\n- `Server.Routes()` → `http.Handler` exposing `/authorize` + `/token`.\n- `MemoryClientStore`, `MemoryCodeStore` for tests / single-replica deployments.\n- `Options.Authenticate(r)` is the integration point with your session store.\n\n## Notes\n\n- Only `authorization_code` grant is supported; PKCE (`S256` or `plain`) is mandatory.\n- Access tokens are JWTs signed by the injected `*jwt.Signer`. ID-token issuance and refresh tokens are intentionally not implemen",
  "cost": {
    "context_tokens": 190
  }
}

Fetch it by URL: GET /api/v1/registry/golusoris-golusoris-oauth2server/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.