Skip to content

Commit 85f2bf5

Browse files
committed
b
1 parent e9d9388 commit 85f2bf5

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

docs/providers/app-attest.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ sequenceDiagram
165165
166166
App->>Provider: getToken(limitedUse)
167167
168-
loop Retry Loop (Max 1 Retry)
168+
loop Retry Loop (Max 1 Retry for GACAppAttestRejectionError)
169169
par Parallel Execution
170170
Provider->>API: getRandomChallenge()
171171
API->>Backend: POST /generateAppAttestChallenge
@@ -183,19 +183,21 @@ sequenceDiagram
183183
alt Attestation Failed (Invalid Key/Input)
184184
Apple-->>Provider: DCErrorInvalidKey / Input
185185
Provider->>Provider: RESET: Delete KeyID & Artifact
186-
Note right of Provider: Throws RejectionError,<br/>Triggering Loop Retry
186+
Note right of Provider: Throws GACAppAttestRejectionError,<br/>Triggering Loop Retry
187187
else Attestation Success
188188
Apple-->>Provider: Attestation Object
189189
Provider->>API: attestKeyWithAttestation(attestation, keyID, challenge, limitedUse)
190190
API->>Backend: POST /exchangeAppAttestAttestation<br/>{ limited_use: true/false }
191191
192192
alt Backend Rejection (403)
193193
Backend-->>API: 403 Forbidden
194+
API-->>Provider: Error (403)
194195
Provider->>Provider: RESET: Delete KeyID & Artifact
195-
Note right of Provider: Throws RejectionError,<br/>Triggering Loop Retry
196+
Note right of Provider: Throws GACAppAttestRejectionError,<br/>Triggering Loop Retry
196197
else Success
197198
Backend-->>API: { "token": "...", "artifact": "..." }
198-
Provider-->>Provider: Store Artifact & Key ID
199+
API-->>Provider: { "token": "...", "artifact": "..." }
200+
Provider->>Provider: Store Artifact & Key ID
199201
Provider-->>App: App Check Token
200202
end
201203
end
@@ -215,7 +217,7 @@ sequenceDiagram
215217
216218
App->>Provider: getToken(limitedUse)
217219
218-
loop Retry Loop (Max 1 Retry)
220+
loop Retry Loop (Max 1 Retry for GACAppAttestRejectionError)
219221
Provider->>API: getRandomChallenge()
220222
API->>Backend: POST /generateAppAttestChallenge
221223
Backend-->>API: { "challenge": "..." }
@@ -227,7 +229,7 @@ sequenceDiagram
227229
alt Assertion Failed (Invalid Key/Input)
228230
Apple-->>Provider: DCErrorInvalidKey / Input
229231
Provider->>Provider: RESET: Delete KeyID & Artifact
230-
Note right of Provider: Throws RejectionError,<br/>Triggering Loop Retry<br/>(Will fall back to Initial Handshake)
232+
Note right of Provider: Throws GACAppAttestRejectionError,<br/>Triggering Loop Retry<br/>(Will fall back to Initial Handshake)
231233
else Assertion Success
232234
Apple-->>Provider: Assertion Object
233235

0 commit comments

Comments
 (0)