Skip to content

Commit

Permalink
Specify auth type property; clarify authorization property and make c…
Browse files Browse the repository at this point in the history
…ase consistent; remove incorrect bearer prefix; remove non-normative S3 reference
  • Loading branch information
jimmarino committed Feb 8, 2024
1 parent bffa740 commit 33655e5
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 16 deletions.
11 changes: 8 additions & 3 deletions releases/v0.8/transfer/message/transfer-request-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@
"@type": "dspace:TransferRequestMessage",
"dspace:consumerPid": "urn:uuid:32541fe6-c580-409e-85a8-8a9a32fbe833",
"dspace:agreementId": "urn:uuid:e8dc8655-44c2-46ef-b701-4cffdc2faa44",
"dct:format": "dspace:S3_AWS_PUSH",
"dct:format": "example:HTTP_PUSH",
"dspace:dataAddress": {
"@type": "dspace:DataAddress",
"dspace:endpointType": "https://w3id.org/idsa/v4.1/HTTP",
"dspace:endpoint": "http://example.com",
"dspace:endpointProperties": [
{
"@type": "dspace:EndpointProperty",
"dspace:name": "Authorization",
"dspace:value": "Bearer TOKEN-ABCDEFG"
"dspace:name": "authorization",
"dspace:value": "TOKEN-ABCDEFG"
},
{
"@type": "dspace:EndpointProperty",
"dspace:name": "authType",
"dspace:value": "bearer"
}
]
},
Expand Down
11 changes: 8 additions & 3 deletions transfer/message/example/transfer-request-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@
"@type": "dspace:TransferRequestMessage",
"dspace:consumerPid": "urn:uuid:32541fe6-c580-409e-85a8-8a9a32fbe833",
"dspace:agreementId": "urn:uuid:e8dc8655-44c2-46ef-b701-4cffdc2faa44",
"dct:format": "dspace:S3_AWS_PUSH",
"dct:format": "example:HTTP_PUSH",
"dspace:dataAddress": {
"@type": "dspace:DataAddress",
"dspace:endpointType": "https://w3id.org/idsa/v4.1/HTTP",
"dspace:endpoint": "http://example.com",
"dspace:endpointProperties": [
{
"@type": "dspace:EndpointProperty",
"dspace:name": "Authorization",
"dspace:value": "Bearer TOKEN-ABCDEFG"
"dspace:name": "authorization",
"dspace:value": "TOKEN-ABCDEFG"
},
{
"@type": "dspace:EndpointProperty",
"dspace:name": "authType",
"dspace:value": "bearer"
}
]
},
Expand Down
9 changes: 7 additions & 2 deletions transfer/message/example/transfer-start-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@
"dspace:endpointProperties": [
{
"@type": "dspace:EndpointProperty",
"dspace:name": "Authorization",
"dspace:value": "Bearer TOKEN-ABCDEFG"
"dspace:name": "authorization",
"dspace:value": "TOKEN-ABCDEFG"
},
{
"@type": "dspace:EndpointProperty",
"dspace:name": "authType",
"dspace:value": "bearer"
}
]
}
Expand Down
29 changes: 22 additions & 7 deletions transfer/transfer.process.binding.https.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,21 @@ Authorization: ...
"@type": "dspace:TransferRequestMessage",
"dspace:consumerPid": "urn:uuid:32541fe6-c580-409e-85a8-8a9a32fbe833",
"dspace:agreementId": "urn:uuid:e8dc8655-44c2-46ef-b701-4cffdc2faa44",
"dct:format": "dspace:S3_AWS_PUSH",
"dct:format": "example:HTTP_PUSH",
"dspace:dataAddress": {
"@type": "dspace:DataAddress",
"dspace:endpointType": "https://w3id.org/idsa/v4.1/HTTP",
"dspace:endpoint": "http://example.com",
"dspace:endpointProperties": [
{
"@type": "dspace:EndpointProperty",
"dspace:name": "Authorization",
"dspace:value": "Bearer TOKEN-ABCDEFG"
"dspace:name": "authorization",
"dspace:value": "TOKEN-ABCDEFG"
},
{
"@type": "dspace:EndpointProperty",
"dspace:name": "authType",
"dspace:value": "bearer"
}
]
},
Expand Down Expand Up @@ -170,8 +175,13 @@ Authorization: ...
"dspace:endpointProperties": [
{
"@type": "dspace:EndpointProperty",
"dspace:name": "Authorization",
"dspace:value": "Bearer TOKEN-ABCDEFG"
"dspace:name": "authorization",
"dspace:value": "TOKEN-ABCDEFG"
},
{
"@type": "dspace:EndpointProperty",
"dspace:name": "authType",
"dspace:value": "bearer"
}
]
}
Expand Down Expand Up @@ -303,8 +313,13 @@ Authorization: ...
"dspace:endpointProperties": [
{
"@type": "dspace:EndpointProperty",
"dspace:name": "Authorization",
"dspace:value": "Bearer TOKEN-ABCDEFG"
"dspace:name": "authorization",
"dspace:value": "TOKEN-ABCDEFG"
},
{
"@type": "dspace:EndpointProperty",
"dspace:name": "authType",
"dspace:value": "bearer"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion transfer/transfer.process.protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ The Transfer Error is an object returned by a [Consumer](../model/terminology.md
| `consumerPid` | UUID | The TF unique id on [Consumer](../model/terminology.md#consumer) side. |
| `providerPid` | UUID | The TF unique id on [Provider](../model/terminology.md#provider) side. |
| `code` | string | An optional implementation-specific error code. |
| `reasons` | Array[object] | An optional array of implementation-specific error objects. |
| `reasons` | Array[object] | An optional array of implementation-specific error objects. |

0 comments on commit 33655e5

Please sign in to comment.