identity-management IDD
GENERIC-MQTT & GENERIC-MQTTS
Overview
This page describes the GENERIC-MQTT and GENERIC-MQTTS service interface of identity-management which enables systems (with operator role or proper permissions) to handle identities (create, update, remove, query) and active sessions (close, query) in bulk. It is implemented using protocol, encoding as stated in the following tables:
GENERIC-MQTT
Profile type | type | Version |
---|---|---|
Transfer protocol | MQTT | 3.1 and 3.1.1 |
Data encryption | N/A | - |
Encoding | JSON | RFC 8259 |
Compression | N/A | - |
GENERIC-MQTTS
Profile type | type | Version |
---|---|---|
Transfer protocol | MQTT | 3.1 and 3.1.1 |
Data encryption | TLS | - |
Encoding | JSON | RFC 8259 |
Compression | N/A | - |
Hereby the Interface Design Description (IDD) is provided to the identity-management – Service Description. For further details about how this service is meant to be used, please consult that document.
Interface Description
identity-mgmt-query
The service operation request requires an MQTTRequestTemplate JSON encoded message in which the authentication is a proper outsourced identity info and the payload is an an IdentityQueryRequest.
Topic: arrowhead/authentication/identity/management/identity-mgmt-query
{
"traceId": "<trace-id>",
"authentication": "<identity-info>",
"responseTopic": "<response-topic>",
"qosRequirement": "<0|1|2>",
"payload": {
"pagination": {
"page": 0,
"size": 10,
"direction": "ASC",
"sortField": "name"
},
"createdBy": "sysop",
"creationFrom": "2025-03-07T06:00:00Z"
}
}
The service operation responds with an MQTTResponseTemplate JSON encoded message in which the status code is 200
if called successfully. The response template payload is an
IdentityListResponse.
{
"status": "200",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"identities": [
{
"systemName": "consumer1",
"authenticationMethod": "PASSWORD",
"sysop": false,
"createdBy": "sysop",
"createdAt": "2025-03-07T12:52:30Z",
"updatedBy": "sysop",
"updatedAt": "2025-03-07T12:52:30Z"
},
{
"systemName": "provider1",
"authenticationMethod": "PASSWORD",
"sysop": false,
"createdBy": "sysop",
"createdAt": "2025-03-07T12:52:30Z",
"updatedBy": "sysop",
"updatedAt": "2025-03-07T12:52:30Z"
}
],
"count": 2
}
}
The error codes are 400
if the request is malformed, 401
if the requester authentication was unsuccessful,
403
if the authenticated requester has no permission and
500
if an unexpected error happens. In these cases the response template payload is an
ErrorResponse JSON.
{
"status": "400",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"errorMessage": "If size parameter is defined then page parameter cannot be undefined",
"errorCode": 400,
"exceptionType": "INVALID_PARAMETER",
"origin": "arrowhead/authentication/identity/management/identity-mgmt-query"
}
}
identity-mgmt-create
The service operation request requires an MQTTRequestTemplate JSON encoded message in which the authentication is a proper outsourced identity info and the payload is an IdentityListCreateRequest.
Topic: arrowhead/authentication/identity/management/identity-mgmt-create
{
"traceId": "<trace-id>",
"authentication": "<identity-info>",
"responseTopic": "<response-topic>",
"qosRequirement": "<0|1|2>",
"payload": {
"authenticationMethod": "PASSWORD",
"identities": [
{
"systemName": "consumer1",
"credentials": {
"password": "abcdef"
},
"sysop": false
},
{
"systemName": "provider1",
"credentials": {
"password": "123456"
},
"sysop": false
}
]
}
}
The service operation responds with an MQTTResponseTemplate JSON encoded message in which the status code is 201
if called successfully. The response template payload is an
IdentityListResponse.
{
"status": "201",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"identities": [
{
"systemName": "consumer1",
"authenticationMethod": "PASSWORD",
"sysop": false,
"createdBy": "sysop",
"createdAt": "2025-03-07T12:52:30Z",
"updatedBy": "sysop",
"updatedAt": "2025-03-07T12:52:30Z"
},
{
"systemName": "provider1",
"authenticationMethod": "PASSWORD",
"sysop": false,
"createdBy": "sysop",
"createdAt": "2025-03-07T12:52:30Z",
"updatedBy": "sysop",
"updatedAt": "2025-03-07T12:52:30Z"
}
],
"count": 2
}
}
The error codes are 400
if the request is malformed, 401
if the requester authentication was unsuccessful,
403
if the authenticated requester has no permission and 500
if an unexpected error happens.
If the Authentication System needs contacting an external server during the creation process, error code 503
can also be used if there was a problem with the external server. In these cases the response template payload is an
ErrorResponse JSON.
{
"status": "400",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"errorMessage": "Missing credentials",
"errorCode": 400,
"exceptionType": "INVALID_PARAMETER",
"origin": "arrowhead/authentication/identity/management/identity-mgmt-create"
}
}
identity-mgmt-update
The service operation request requires an MQTTRequestTemplate JSON encoded message in which the authentication is a proper outsourced identity info and the payload is an IdentityListUpdateRequest.
Topic: arrowhead/authentication/identity/management/identity-mgmt-update
{
"traceId": "<trace-id>",
"authentication": "<identity-info>",
"responseTopic": "<response-topic>",
"qosRequirement": "<0|1|2>",
"payload": {
"identities": [
{
"systemName": "consumer1",
"credentials": {
"password": "123456"
},
"sysop": false
},
{
"systemName": "provider1",
"credentials": {
"password": "123456"
},
"sysop": true
}
]
}
}
The service operation responds with an MQTTResponseTemplate JSON encoded message in which the status code is 200
if called successfully. The response template payload is an
IdentityListResponse.
{
"status": "201",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"identities": [
{
"systemName": "consumer1",
"authenticationMethod": "PASSWORD",
"sysop": false,
"createdBy": "sysop",
"createdAt": "2025-03-07T12:52:30",
"updatedBy": "sysop",
"updatedAt": "2025-03-07T12:59:01"
},
{
"systemName": "provider1",
"authenticationMethod": "PASSWORD",
"sysop": true,
"createdBy": "sysop",
"createdAt": "2025-03-07T12:52:30Z",
"updatedBy": "sysop",
"updatedAt": "2025-03-07T12:59:01Z"
}
],
"count": 2
}
}
The error codes are 400
if the request is malformed, 401
if the requester authentication was unsuccessful,
403
if the authenticated requester has no permission and 500
if an unexpected error happens.
If the Authentication System needs contacting an external server during the update process, error code 503
can also be used if there was a problem with the external server. In these cases the response template payload is an
ErrorResponse JSON.
{
"status": "400",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"errorMessage": "Missing credentials",
"errorCode": 400,
"exceptionType": "INVALID_PARAMETER",
"origin": "arrowhead/authentication/identity/management/identity-mgmt-update"
}
}
identity-mgmt-remove
The service operation request requires an MQTTRequestTemplate JSON encoded message in which the authentication is a proper outsourced identity info and the payload is a List<Name>, which contains the names of systems that need to be removed.
Topic: arrowhead/authentication/identity/management/identity-mgmt-remove
{
"traceId": "<trace-id>",
"authentication": "<identity-info>",
"responseTopic": "<response-topic>",
"qosRequirement": "<0|1|2>",
"payload": [ "provider1", "provider2" ]
}
The service operation responds with the status code 200
if called successfully. The response template payload is empty.
{
"status": "200",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": ""
}
The error codes are 400
if the request is malformed, 401
if the requester authentication was unsuccessful,
403
if the authenticated requester has no permission and 500
if an unexpected error happens.
If the Authentication System needs contacting an external server during the deletion process, error code 503
can also be used if there was a problem with the external server. In these cases the response template payload is an
ErrorResponse JSON.
{
"status": "401",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"errorMessage": "Invalid identity token",
"errorCode": 401,
"exceptionType": "AUTH"
}
}
identity-mgmt-session-query
The service operation request requires an MQTTRequestTemplate JSON encoded message in which the authentication is a proper outsourced identity info and the payload is an IdentitySessionQueryRequest.
Topic: arrowhead/authentication/identity/management/identity-mgmt-session-query
{
"traceId": "<trace-id>",
"authentication": "<identity-info>",
"responseTopic": "<response-topic>",
"qosRequirement": "<0|1|2>",
"payload": {
"pagination": {
"page": 0,
"size": 10,
"direction": "ASC",
"sortField": "name"
},
"loginFrom": "2025-03-07T10:00:00Z"
}
}
The service operation responds with an MQTTResponseTemplate JSON encoded message in which the status code is 200
if called successfully. The response template payload is an
IdentitySessionListResponse.
{
"status": "200",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"sessions": [
{
"systemName": "consumer1",
"loginTime": "2025-03-07T11:54:01Z",
"expirationTime": "2025-03-08T11:59:01Z"
},
{
"systemName": "sysop",
"loginTime": "2025-03-07T12:40:54Z",
"expirationTime": "2025-03-08T12:45:54Z"
}
],
"count": 2
}
}
The error codes are 400
if the request is malformed, 401
if the requester authentication was unsuccessful,
403
if the authenticated requester has no permission and
500
if an unexpected error happens. In these cases the response template payload is an
ErrorResponse JSON.
{
"status": "400",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"errorMessage": "If size parameter is defined then page parameter cannot be undefined",
"errorCode": 400,
"exceptionType": "INVALID_PARAMETER",
"origin": "arrowhead/authentication/identity/management/identity-mgmt-session-query"
}
}
identity-mgmt-session-close
The service operation request requires an MQTTRequestTemplate JSON encoded message in which the authentication is a proper outsourced identity info and the payload is a List<Name>, which contains the names of systems whose sessions need to be closed.
Topic: arrowhead/authentication/identity/management/identity-mgmt-session-query
{
"traceId": "<trace-id>",
"authentication": "<identity-info>",
"responseTopic": "<response-topic>",
"qosRequirement": "<0|1|2>",
"payload": [ "consumer1" ]
}
The service operation responds with the status code 200
if called successfully. The response template payload is empty.
{
"status": "200",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": ""
}
The error codes are 400
if the request is malformed, 401
if the requester authentication was unsuccessful,
403
if the authenticated requester has no permission and 500
if an unexpected error happens. In these cases the response template payload is an
ErrorResponse JSON.
{
"status": "401",
"traceId": "<trace-id>",
"receiver": "<receiver-system-identifier>",
"payload": {
"errorMessage": "Invalid identity token",
"errorCode": 401,
"exceptionType": "AUTH"
}
}