Obtaining a Nonce for Redirection Without Login
Description
This API is used to obtain a nonce for redirecting to Huawei Cloud Meeting Management Platform from the access token generation page without login. After the nonce is obtained, you can redirect to the Management Platform via the link https://meeting.huaweicloud.com/?lang=en-US&nonce=xxxxxxxxxxxxx#/login.
Debugging
You can debug this API in API Explorer.
Prototype
Request Method |
POST |
---|---|
Request Address |
/v1/usg/acs/auth/portal-ref-nonce |
Transport Protocol |
HTTPS |
Request Parameters
Parameter |
Mandatory |
Type |
Location |
Description |
---|---|---|---|---|
X-Access-Token |
Yes |
String |
Header |
Token authentication. |
X-Request-ID |
No |
String |
Header |
Request ID, which is used for fault tracing and locating. You are advised to use a UUID. If this parameter is not carried, a request ID is automatically generated. |
Accept-Language |
No |
String |
Header |
Language. Values: zh-CN for Chinese (default) and en-US for English. |
Status Codes
HTTP Status Code |
Description |
---|---|
200 |
Operation successful. |
400 |
Invalid parameters. |
401 |
Access denied. |
500 |
Server exception. |
Response Parameters
Parameter |
Type |
Description |
---|---|---|
nonce |
String |
Nonce used for login redirection. A nonce can be used only once.
NOTE:
You can redirect to the Management Platform via the link https://bmeeting.huaweicloud.com/?lang=en-US&nonce=xxxxxxxxxxxxx#/login. |
Example Request
POST /v1/usg/acs/auth/portal-ref-nonce Connection: keep-alive X-Access-Token: cnrJmYwhPxsnNLky5APQm1hqWfXCDUN3d1lH Content-Type: application/json Host: api.meeting.huaweicloud.com User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)
Example Response
HTTP/1.1 200 Date: Wed, 18 Dec 2019 06:20:40 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 745 Connection: keep-alive Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT X-XSS-Protection: 1; mode=block X-Download-Options: noopen X-Content-Type-Options: nosniff strict-transport-security: max-age=16070400; includeSubDomains X-Frame-Options: SAMEORIGIN Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' blob: data: http: https: ; child-src * ; connect-src * x-request-id: 6162fa32dc7e47afafeee39a72a2eec8 Server: CloudPortal { "nonce": "1605496941659KzhX8aNBqyaY7e2esSDMnv3N9DWqpt7yo" }
Error Codes
If an error code starting with MMC or USG is returned when you use this API, rectify the fault by following the instructions provided in Huawei Cloud API Error Center.
Example cURL Command
curl -k -i -X POST -H 'X-Access-Token: cnrJmYwhPxsnNLky5APQm1hqWfXCDUN3d1lH' 'https://api.meeting.huaweicloud.com/v1/usg/acs/auth/portal-ref-nonce'
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