...
Once identify has been established the IL core component should check if that user has the authority to access the requested service.
Authentication
TODO
Code Block | ||||
---|---|---|---|---|
| ||||
{
"userID": "Musha_OpenMRS",
"name": "OpenMRS Mush instance",
"roles": "OpenMRS_PoC,PoC",
"password": "",
"cert": ""
} |
Authorization
TODO
Persistence
TODO
Code Block | ||||
---|---|---|---|---|
| ||||
{
"transactionId": "123",
"status": "Processing|Failed|Completed",
"userId": "Musha_OpenMRS",
"request": {
"path": "/api/test",
"headers": [
{ "header1": "value1" },
{ "header2": "value2" }
],
"requestParams": [
{ "param1": "value1" },
{ "param2": "value2" }
],
"body": "<HTTP body>",
"method": "POST",
"timestamp": "<ISO 8601>"
},
"response": {
"status": 201,
"body": "<HTTP body>",
"headers": [
{ "header1": "value1" },
{ "header2": "value2" }
],
"timestamp": "<ISO 8601>"
},
"orchestrationSteps": [
{
"orchestrationType": "<orchestrationType>"
// Same structure as above
"request": { ... },
"response": { ... }
}
]
} |
Request persistence
TODO
Response persistence
TODO
Router
TODO
Code Block | ||||
---|---|---|---|---|
| ||||
[
{
"urlPattern": "test/sample/.+",
"allow": "*",
"deny": "Mallet",
"routes": [
{
"host": "localhost",
"port": 8080
}
]
},
{
"urlPattern": "test/sample2/.+/test2",
"allow": "Alice,Bob",
"routes": [
{
"host": "localhost",
"port": 8080,
"primary": true
},
{
"host": "log-host",
"port": 4789
}
]
}
] |