doc-exports/docs/mrs/api-ref/mrs_02_1084.html
Yang, Tong bd2b57f749 MRS API 2.0.38.SP20 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-11-16 15:06:08 +00:00

7.9 KiB

Logging In to the CAS

Function

This API is used to submit a CAS login request. This API can be used only by security clusters that support Kerberos authentication.

URI

POST /cas/login

Request

  • Example:
POST /cas/login HTTP/1.1
Host: example.com
Content-Type: application/json
Accept:application/json
username: String
password: String
lt: String
_eventId: String
Submit: String
  • Parameter description

Parameter

Mandatory or Not

Description

username

Yes

User name

password

Yes

Password

lt

Yes

Login ticket. Follow instructions in step 1 in the Obtaining Request Authentication Information part of the section API Calling Process to send a GET request to obtain loginTicket.

_eventId

Yes

Event type. The default value is submit.

submit

Yes

Submission type. The default value is Login.

Response

  • Example
    HTTP/1.1 200 OK
    Data:Wed,02 May 2018 10:10:01 GMT
    Server: example-server
    Content-Type: application/json
  • Parameter description

    None

Status Code

Table 1 Status code

Status Code

Description

200

The login is successful.

For details about error status codes, see Status Codes.