-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add app attestation and assertion api documentation.
This adds attestation and assertion documentation. Attestation is the verifying an app is a valid instance of an iOS app and assertion is requesting a secret of some kind after attestation is verified, in this case X.509 certificates that can be used for client authentication. Add response to successful assertion.
- Loading branch information
1 parent
0dcc826
commit fae9ab7
Showing
11 changed files
with
302 additions
and
2,484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.dccache | ||
.idea/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title: Challenge | ||
description: Challenge generated by server. | ||
type: object | ||
properties: | ||
challenge: | ||
type: string | ||
minLength: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
title: AssertionSecret | ||
description: Data sent back upon successful app assertion. This will include X.509 certificates. | ||
type: object | ||
properties: | ||
certificates: | ||
description: X.509 certificates to be used for client authentication. | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
content: | ||
type: string | ||
description: base64 encoded X.509 certificate in DER format. | ||
ttlInDays: | ||
type: integer | ||
type: | ||
type: string | ||
oneOf: | ||
- CONSTRAINED | ||
- WILDCARD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
title: Assertion Verify | ||
description: Request body for verifying an assertion. | ||
type: object | ||
properties: | ||
assertion: | ||
$ref: '../../common/models/base64.v1.yaml' | ||
description: Base64 encoded data received from Apple App Attest API. User must base64 encode the binary data received from Apple. | ||
clientData: | ||
type: object | ||
properties: | ||
challenge: | ||
type: string | ||
minLength: 1 | ||
partner: | ||
description: Code name of partner to retrieve certificate from. | ||
type: string | ||
minLength: 1 | ||
enum: | ||
- Coastal | ||
partnerData: | ||
description: Actual data to send to partner API. | ||
$ref: './coastaldata.v1.yaml' | ||
description: Actual data requested by client. Must include the previously requested challenge. | ||
keyId: | ||
$ref: './keyid.v1.yaml' | ||
description: Base64 encoded key Id received from Apple App Attest API. | ||
required: | ||
- attestation | ||
- clientData | ||
- keyId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
title: Attestation Verify | ||
description: Request body for verifying an attestation. | ||
type: object | ||
properties: | ||
attestation: | ||
$ref: '../../common/models/base64.v1.yaml' | ||
description: Base64 encoded data received from Apple App Attest API. User must base64 encode the binary data received from Apple. | ||
challenge: | ||
type: string | ||
minLength: 1 | ||
description: Challenge string returned from the Tidepool platform API. | ||
keyId: | ||
$ref: './keyid.v1.yaml' | ||
description: Base64 encoded key Id received from Apple App Attest API. | ||
required: | ||
- attestation | ||
- challenge | ||
- keyId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
title: CoastalData | ||
description: Data to send to Coastal's API. | ||
type: object | ||
properties: | ||
rcTypeId: | ||
type: string | ||
rcInstanceId: | ||
type: string | ||
rcHWVersions: | ||
type: array | ||
items: | ||
type: string | ||
rcSWVersions: | ||
type: array | ||
items: | ||
type: string | ||
phdTypeId: | ||
type: string | ||
phdInstanceId: | ||
type: string | ||
csr: | ||
type: string | ||
rcbMac: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
title: Key Id | ||
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. | ||
$ref: '../../common/models/base64.v1.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
title: New App Challenge | ||
description: Information needed when generating an attestation or assertion challenge. | ||
type: object | ||
properties: | ||
keyId: | ||
$ref: '../../common/models/base64.v1.yaml' | ||
description: Base64 encoded key Id received from Apple App Attest API. | ||
required: | ||
- keyId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
title: Base64 | ||
type: string | ||
description: Base64 encoded data. | ||
pattern: '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$' |
Oops, something went wrong.