Skip to content

Commit da23dd3

Browse files
committed
Update api for palmtree.
1 parent a26830c commit da23dd3

File tree

9 files changed

+75
-35
lines changed

9 files changed

+75
-35
lines changed
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
title: AssertionSecret
2-
description: Data sent back upon successful app assertion. This will include X.509 certificates.
1+
title: Assertion Secret
2+
description: Data sent back upon successful app assertion.
33
type: object
44
properties:
5-
certificates:
6-
description: X.509 certificates to be used for client authentication.
7-
type: array
8-
items:
9-
type: object
10-
properties:
11-
content:
12-
$ref: '../../common/models/base64.v1.yaml'
13-
description: base64 encoded X.509 certificate in DER format.
14-
ttlInDays:
15-
type: integer
16-
type:
17-
type: string
18-
enum:
19-
- CONSTRAINED
20-
- WILDCARD
5+
data:
6+
oneOf:
7+
- $ref: './coastalresponse.v1.yaml'
8+
- $ref: './palmtreeresponse.v1.yaml'

reference/auth/models/assertionverify.v1.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ description: Request body for verifying an assertion.
33
type: object
44
properties:
55
assertion:
6-
$ref: '../../common/models/base64.v1.yaml'
6+
type: string
7+
pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$'
78
description: Base64 encoded data received from Apple App Attest API. User must base64 encode the binary data received from Apple.
89
clientData:
910
type: object
@@ -18,9 +19,11 @@ properties:
1819
minLength: 1
1920
enum:
2021
- Coastal
22+
- PalmTree
2123
partnerData:
22-
description: Actual data to send to partner API.
23-
$ref: './coastaldata.v1.yaml'
24+
oneOf:
25+
- $ref: './coastalrequest.v1.yaml'
26+
- $ref: './palmtreerequest.v1.yaml'
2427
description: Actual data requested by client. Must include the previously requested challenge.
2528
keyId:
2629
$ref: './keyid.v1.yaml'

reference/auth/models/attestationverify.v1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ description: Request body for verifying an attestation.
33
type: object
44
properties:
55
attestation:
6-
$ref: '../../common/models/base64.v1.yaml'
6+
type: string
7+
pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$'
78
description: Base64 encoded data received from Apple App Attest API. User must base64 encode the binary data received from Apple.
89
challenge:
910
type: string
1011
minLength: 1
1112
description: The previously returned attestation challenge.
1213
keyId:
1314
$ref: './keyid.v1.yaml'
14-
description: Base64 encoded key Id received from Apple App Attest API.
1515
required:
1616
- attestation
1717
- challenge

reference/auth/models/coastaldata.v1.yaml renamed to reference/auth/models/coastalrequest.v1.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
title: CoastalData
1+
title: Coastal Request Data
22
description: Data to send to Coastal's API.
33
type: object
44
properties:
5-
rcTypeId:
6-
type: string
7-
minLength: 1
85
rcInstanceId:
96
type: string
107
minLength: 1
@@ -23,10 +20,7 @@ properties:
2320
type: string
2421
minLength: 1
2522
csr:
26-
$ref: '../../common/models/base64.v1.yaml'
27-
description: Base64 encoded string of the PEM formatted certificate signing request to the partner API.
28-
minLength: 1
29-
rcbMac:
3023
type: string
31-
description: Deprecated field that will be removed in the future but currently required by partner. Value can be any non empty string.
32-
minLength: 1
24+
pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$'
25+
description: Base64 encoded string of the PEM formatted certificate signing request to the partner API.
26+
minLength: 1
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
title: Coastal Response
2+
description: Data retrieved from Coastal's API.
3+
type: object
4+
properties:
5+
certificates:
6+
description: X.509 certificates to be used for client authentication.
7+
type: array
8+
items:
9+
type: object
10+
properties:
11+
content:
12+
type: string
13+
pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$'
14+
description: base64 encoded X.509 certificate in DER format.
15+
ttlInDays:
16+
type: integer
17+
type:
18+
type: string
19+
enum:
20+
- CONSTRAINED
21+
- WILDCARD
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
title: Key Id
22
description: Base64 encoded key identifier received from apple. The Key Id is some shortened data, usually a hash, used to identify the longer actual key.
3-
$ref: '../../common/models/base64.v1.yaml'
3+
type: string
4+
pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$'

reference/auth/models/newappchallenge.v1.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ description: Information needed when generating an attestation or assertion chal
33
type: object
44
properties:
55
keyId:
6-
$ref: '../../common/models/base64.v1.yaml'
6+
type: string
7+
pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$'
78
description: Base64 encoded key Id received from Apple App Attest API.
89
required:
910
- keyId
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
title: Palm Tree Request Data
2+
description: Data to send to Palm Tree's API.
3+
type: object
4+
properties:
5+
csr:
6+
description: Base64 encoded certificate signing request.
7+
type: string
8+
pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
title: Palm Tree Response
2+
description: Data retrieved from Palm Tree's API.
3+
type: object
4+
properties:
5+
type:
6+
type: string
7+
enrollment:
8+
type: object
9+
properties:
10+
body:
11+
type: string
12+
description: PEM encoded certificate.
13+
id:
14+
type: string
15+
issuerName:
16+
type: string
17+
serialNumber:
18+
type: string
19+
subjectName:
20+
type: string
21+
status:
22+
type: string
23+
validityPeriod:
24+
type: string

0 commit comments

Comments
 (0)