Purpose
This method is used to refresh client secret for specified client connection Only legal entity owner can request new client secret for his own legal entity
Specification
Logic
This service manages connections restricted by Client ID and context
Extract client_type from token
Validate specified Client ID according to context:
MSP, MIS, PHARMACY - receives only its own client
in case of error generate 403 response ('forbidden')
Generate new secret for specified Connection ID and update it in mithril.connections for specified Connection ID
Input parameters
Input parameter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | Required | 1380df72-275a-11e7-93ae-92361f002671 | |
connection_id | String | Required | e5372365-d47a-467f-81d0-f35117864352 |
Request structure
API paragraph not found
Authorize
erify the validity of access token
in case of error return 401 ('Access denied')
Check user scope connection:refresh_secret in order to perform this action
in case of error generate 403 response ('Invalid scopes')
Headers
Content-Type:application/json
Authorization:Bearer c2778f3064753ea70de870a53795f5c9
API-key:uXhEczJ56adsfh3Ri9SUkc4en
Request data validation
API paragraph not found
Processing
API paragraph not found
Response structure
Example:
Post-processing processes
API paragraph not found