﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head># Aback Launch auth.md

You are an agent. Aback Launch (https://abacklaunch.com) supports **agentic registration**: discover, register, (claim if you need the member's own data), exchange for an access_token, call the API, handle revocation.

Most of Aback Launch needs no credentials at all: the MCP server (`https://abacklaunch.com/mcp`), the REST API (`https://abacklaunch.com/api/v1`), the agent skills and the Markdown pages are public and read-only. Register when you want a higher rate limit (600 requests a minute instead of 120 per IP), or when a member wants you to read their own listings and stats.

Everything here is **read-only**. No token can submit a product, vote, comment, pay or change a setting; those stay with the signed-in person on the website. Never ask a person for their password.

## Scopes

- `public:read`: Read public launches, platforms, prompts and tools, at a higher rate limit.
- `account:read`: Read your own listings, their votes, review status and page analytics.

## Step 1: Discover

- Protected resource metadata (RFC 9728): `https://abacklaunch.com/.well-known/oauth-protected-resource` (also `/mcp` and `/api/v1` suffixes for those resources). A request for the member's own data without a token answers `401` with `WWW-Authenticate: Bearer resource_metadata="..."`.
- Authorization server metadata (RFC 8414): `https://abacklaunch.com/.well-known/oauth-authorization-server`. Issuer: `https://abacklaunch.com`. Its `agent_auth` block lists the endpoints below.
- Signing keys: `https://abacklaunch.com/.well-known/jwks.json` (ES256).

## Step 2: Pick a method

1. **You are an MCP client or app acting for a member** (you can open a browser): use the authorization code flow with PKCE. Register at `https://abacklaunch.com/oauth/register` (RFC 7591, public client, `token_endpoint_auth_method: "none"`), send the member to `https://abacklaunch.com/oauth/authorize` with `code_challenge_method=S256`, then exchange the code at `https://abacklaunch.com/oauth/token`. You get an access token and a rotating refresh token for `public:read account:read`.
2. **You have no browser and no member yet**: register anonymously (Step 3). The claim ceremony (Step 4) is optional and only needed for the member's own data.

Only `anonymous` registration is offered (`service_auth` answers `service_auth_not_enabled`; `identity_assertion` answers `issuer_not_enabled`).

## Step 3: Register

```http
POST https://abacklaunch.com/agent/identity
Content-Type: application/json

{ "type": "anonymous" }
```

The response has `registration_id`, an `identity_assertion` (a JWT, valid 30 days) for `public:read`, and a `claim_token` valid for 24 hours. The claim token is returned once: keep it in memory, do not store it.

## Step 4: Claim (optional)

To read a member's own listings, ask the member for the email address of their Aback Launch account, then:

```http
POST https://abacklaunch.com/agent/identity/claim
Content-Type: application/json

{ "claim_token": "clm_...", "email": "member@example.com" }
```

The response's `claim_attempt` has a six-digit `user_code` and a `verification_uri`. Tell the member, in one message: "Open this link, sign in, and enter this code: 123456". The code goes into the page, not back to you. Only the member signed in with that email can complete it, and the code is valid for 10 minutes.

Poll the token endpoint every 5 seconds:

```http
POST https://abacklaunch.com/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=urn:workos:agent-auth:grant-type:claim&claim_token=clm_...
```

While waiting you get `authorization_pending` (or `slow_down`: poll less often). When the member has entered the code, you get an access token for `public:read account:read` and a new `identity_assertion`; your pre-claim tokens and assertion stop working. If you get `expired_token`, start the claim again for a fresh code.

## Step 5: Exchange the assertion

```http
POST https://abacklaunch.com/oauth/token
Content-Type: application/x-www-form-urlencoded

grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=<identity_assertion>&resource=https://abacklaunch.com/mcp
```

`resource` is optional (`https://abacklaunch.com`, `https://abacklaunch.com/mcp` or `https://abacklaunch.com/api/v1`). The access token lasts 60 minutes; when it expires, repeat this step. `invalid_grant` means the assertion expired or was revoked: register again.

## Step 6: Use the access token

Send `Authorization: Bearer <access_token>`:

- MCP: `POST https://abacklaunch.com/mcp`. With `account:read`, the `get_my_account` tool returns the member's listings and stats.
- REST: `GET https://abacklaunch.com/api/v1/me` for the member's account; every other `https://abacklaunch.com/api/v1` path works with or without a token.

A token that is invalid, expired or revoked answers `401` with `error="invalid_token"`: get a new one in Step 5, and if that fails, start again.

## Revocation

- You can revoke an access token, a refresh token or your identity assertion: `POST https://abacklaunch.com/oauth/revoke` with `token=...` (form-encoded, RFC 7009). The answer is always `200`.
- The member can disconnect you at any time at https://abacklaunch.com/settings/agents. Your tokens then stop working at once.

## Errors

OAuth errors use RFC 6749 vocabulary (`invalid_request`, `invalid_grant`, `unsupported_grant_type`, `invalid_scope`, `authorization_pending`, `slow_down`, `expired_token`). The claim endpoint adds `invalid_cla