Token Verification and Authorisation
POST/service/data-space/:organisationId/validate-access
The Token Verification and Authorisation endpoint for an organisation in regards to a Data Marketplace. An Access Token issued as a result of a Pull-Data request can be verified here, and an authorisation decision can be made against the requested resource (defined by OpenAPI method and path). The resource is checked against the OpenAPI specification of the underlying Data Agreement within the Data Disclosure Agreement Record's Template connected to the Access Token.
Request
Path Parameters
The ID of the organisation
- application/json
Body
The JWT Access Token to be verified and authorised
The HTTP Method to be checked against the OpenAPI specification
The path to be checked against the OpenAPI specification
Responses
- 200
Access token verified and authorised
Response Headers
Content-Type json
Content-Type header
- application/json
- Schema
- Example (from schema)
Schema
Whether the access token was verified and authorised
The decoded claims of the access token
individual object
Shallowly models an Individual which may reference some instance in an external system (registration system, functional ID, foundational ID etc). An Individual instance of this model is not to be mistaken with a unique natural individual. It is up to the system owner to decide if this record permits mapping to a natural individual and/or if a single Individual row can map to several consent agreements.
The unique ID of an Individual row.
Reference to another foundational/functional ID, which is likely PII
External ID type specifier. A string. For instance "email" or "foundational ID". Can be used in later queries.
This could be an FK, but for now we do not have a mapping of identity providers. IDBB may have more requirements.
Name of the individual
Create a user in keycloak and save the id
as iamId
Email ID
Phone
Device token of the individual
Possible values: [android
, ios
]
Device type(OS) of the individual
{
"verified": true,
"decodedClaims": {},
"individual": {
"id": "",
"externalId": "",
"externalIdType": "",
"identityProviderId": "",
"name": "string",
"iamId": "string",
"email": "string",
"phone": "string",
"pushNotificationToken": "string",
"deviceType": "android"
}
}