@emulators/apple 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @emulators/apple
|
|
2
|
+
|
|
3
|
+
Sign in with Apple emulation with authorization code flow, PKCE support, RS256 ID tokens, and OIDC discovery.
|
|
4
|
+
|
|
5
|
+
Part of [emulate](https://github.com/vercel-labs/emulate) — local drop-in replacement services for CI and no-network sandboxes.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @emulators/apple
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Endpoints
|
|
14
|
+
|
|
15
|
+
- `GET /.well-known/openid-configuration` — OIDC discovery document
|
|
16
|
+
- `GET /auth/keys` — JSON Web Key Set (JWKS)
|
|
17
|
+
- `GET /auth/authorize` — authorization endpoint (shows user picker)
|
|
18
|
+
- `POST /auth/token` — token exchange (authorization code and refresh token grants)
|
|
19
|
+
- `POST /auth/revoke` — token revocation
|
|
20
|
+
|
|
21
|
+
## Auth
|
|
22
|
+
|
|
23
|
+
OIDC authorization code flow with RS256 ID tokens. On first auth per user/client pair, a `user` JSON blob is included.
|
|
24
|
+
|
|
25
|
+
## Seed Configuration
|
|
26
|
+
|
|
27
|
+
```yaml
|
|
28
|
+
apple:
|
|
29
|
+
users:
|
|
30
|
+
- email: testuser@icloud.com
|
|
31
|
+
name: Test User
|
|
32
|
+
oauth_clients:
|
|
33
|
+
- client_id: com.example.app
|
|
34
|
+
team_id: TEAM001
|
|
35
|
+
name: My Apple App
|
|
36
|
+
redirect_uris:
|
|
37
|
+
- http://localhost:3000/api/auth/callback/apple
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Links
|
|
41
|
+
|
|
42
|
+
- [Full documentation](https://emulate.dev/apple)
|
|
43
|
+
- [GitHub](https://github.com/vercel-labs/emulate)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emulators/apple",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"hono": "^4",
|
|
31
31
|
"jose": "^6",
|
|
32
|
-
"@emulators/core": "0.4.
|
|
32
|
+
"@emulators/core": "0.4.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tsup": "^8",
|