SIA Authentication
SIA authentication is to call the SIA interface to obtain a token and add the token to the message header when the CC-iKBS interface is requested for identity authentication.
Scenario
When this interface is invoked, the authentication token and token expiration time are generated based on the JWT and domain in request parameters. The token must be carried when the CC-iKBS interface is invoked to pass the identity authentication.
Usage Description
- Prerequisites
- SIA information has been configured in the developer environment.
In servicecloud.security.properties:
restapi.sia.encJwtContent= restapi.sia.encKey4JwtContent=
- SIA information has been configured in the developer environment.
Method
POST
URI
Request URI |
https://ip:port/rest/sia/v1/tokens/jwt/sia |
In the URL, ip and port indicate the access address of the SIA service. |
---|
Request Description
No. |
Parameter |
Type |
Mandatory or Not |
Default Value |
Description |
---|---|---|---|---|---|
1 |
Content-Type |
String |
Yes |
None |
The value is fixed to application/json; charset=UTF-8. |
No. |
Parameter |
Type |
Mandatory or Not |
Description |
---|---|---|---|---|
1 |
jwt |
String |
Yes |
JWT password. Contact O&M personnel to obtain the password. |
2 |
domain |
String |
Yes |
SIA service name. Contact the O&M personnel to obtain the value. |
Response Description
No. |
Parameter |
Type |
Description |
---|---|---|---|
1 |
token |
String |
Authentication token. |
2 |
expiredAt |
String |
Expiration time. |
Example
- Request
POST https://ip:port/rest/sia/v1/tokens/jwt/sia Content-Type: application/json;charset=UTF-8 {"jwt":"*************************","domain":"ccfsAppService"}
- Response
"token": ***************************", "expiredAt": "2021-03-04T03:25:57.327+0000"
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot