English
English
简体中文
Contact Us
Register
Log In
layoutIndex
Smart PMSLogin to the Platform

Login to the Platform

Last Updated on : 2022-03-02 03:46:44download

Definitions

Method Version Description
v2.0/pms/production/user/login 2.0 Login Cloud Intelligent Manufacturing Platform

Sequence chart

Login to the Platform

Request

  • Method

    Post

  • Parameters

    Name Type Description Optional
    username String user name N
    password String password after RSA encryption with publicKey
    obtained by /V2.0/pms/production/login/token/get
    N
    token String token obtained by /V2.0/pms/production/login/token/get N
  • Other parameters

    None

Request example

{ "username" : "test-user", "password":"k8wh2/B9Euiwjq6vmmXf3mSR1bv6YD+MjgIVT16VN*******q+fjSE+mwMGVt7JS8=", "token" : "285effe7604bcd2353fbfbbc4dfaf531" }

Response

Name Type Description
result Map result for result
result.accessToken String is used to replace access_token in HEADER
result.refreshToken String is used to refresh access_token via interface
/v1.0/token/{{refresh_token}}
success Boolean succeed or not

Note:

  • password = RSA(password, publicKey)
  • publicKey: got it from the result of v2.0/pms/production/login/token/get.

Response example

Successful Response

{ "result" : { "accessToken" :"82d96c95bf6622743579af8b270b798d", "refreshToken" : "7918ddd52adcafdc485c28c7e3230576" }, "success": true }

Error response

{ "success": false, "code": "THE_BLANK_PARAM", "msg": "username cannot be null" }

Error code

Name Description
THE_BLANK_PARAM parameter can not be empty