How does Cup exchange Apple's authorization code and revoke Apple tokens from a Cloudflare Worker?

Open
#469 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
53/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start by locating the Cloudflare Worker’s Sign in with Apple flow and its use of jose; the issue does not name specific files or tests. Document how /auth/token and /auth/revoke work, which client ID applies to each flow, token lifetimes and single use, revocation effects, and server-to-server notification setup and verification.

Written by the indexing model from the issue text.

Description

wayfinder:research

Question

What a Cloudflare Worker needs to exchange a Sign in with Apple authorization code for a refresh token and later revoke it: Apple's /auth/token and /auth/revoke REST endpoints, the ES256 client secret signed with the Sign in with Apple key (with jose), which client ID applies to codes from the native sheet versus the web flow, the code's lifetime and single use, refresh-token lifetime, what revocation does to the user's Apple ID settings, and how server-to-server notifications are registered, signed and verified.

Dominant language
TypeScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from patricktree/cup

All issues in patricktree/cup

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.