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

98 lines
7.9 KiB
HTML

<a name="mrs_02_1084"></a><a name="mrs_02_1084"></a>
<h1 class="topictitle1">Logging In to the CAS</h1>
<div id="body8662426"><div class="section" id="mrs_02_1084__en-us_topic_0125376251_section117081433155319"><h4 class="sectiontitle">Function </h4><p class="msonormal" id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p59399210">This API is used to submit a CAS login request. This API can be used only by security clusters that support Kerberos authentication.</p>
</div>
<div class="section" id="mrs_02_1084__en-us_topic_0125376251_sdf9aaecf112841708e5dce8abfdb5ef4"><h4 class="sectiontitle">URI</h4><p class="msonormal" id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p294178">POST /cas/login</p>
</div>
<div class="section" id="mrs_02_1084__en-us_topic_0125376251_s5638694e0ef44845af6169cdd3eb9040"><h4 class="sectiontitle">Request</h4><ul id="mrs_02_1084__en-us_topic_0125376251_ul15844931550"><li id="mrs_02_1084__en-us_topic_0125376251_li138451231955">Example:</li></ul>
<pre class="screen" id="mrs_02_1084__en-us_topic_0125376251_screen17947161791118">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</pre>
<ul id="mrs_02_1084__en-us_topic_0125376251_ul1106162515310"><li id="mrs_02_1084__en-us_topic_0125376251_li71058258317">Parameter description</li></ul>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_table13129592" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_row45356064"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.1.4.1.1"><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p49962569"><strong id="mrs_02_1084__b162774213314533_1">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.5.1.4.1.2"><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p20436323">Mandatory or Not</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59%" id="mcps1.3.3.5.1.4.1.3"><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p53775824"><strong id="mrs_02_1084__b842352706134712">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_row60874484"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.1.4.1.1 "><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p31886201">username</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.5.1.4.1.2 "><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p32645511">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.3.5.1.4.1.3 "><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p10131777">User name</p>
</td>
</tr>
<tr id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_row24077135"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.1.4.1.1 "><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p4090907">password</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.5.1.4.1.2 "><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p62928011">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.3.5.1.4.1.3 "><p id="mrs_02_1084__en-us_topic_0125376251_en-us_topic_0110839907_p26299090">Password</p>
</td>
</tr>
<tr id="mrs_02_1084__en-us_topic_0125376251_row0125122520168"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.1.4.1.1 "><p id="mrs_02_1084__en-us_topic_0125376251_p11125192518165">lt</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.5.1.4.1.2 "><p id="mrs_02_1084__en-us_topic_0125376251_p212511253169">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.3.5.1.4.1.3 "><p id="mrs_02_1084__en-us_topic_0125376251_p15316853183015">Login ticket. Follow instructions in step 1 in the <span class="parmname" id="mrs_02_1084__parmname618076927165330"><b>Obtaining Request Authentication Information</b></span> part of the section <a href="mrs_02_1080.html">API Calling Process</a> to send a GET request to obtain <strong id="mrs_02_1084__b842352706165534">loginTicket</strong>. </p>
</td>
</tr>
<tr id="mrs_02_1084__en-us_topic_0125376251_row8764725151619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.1.4.1.1 "><p id="mrs_02_1084__en-us_topic_0125376251_p187641259167">_eventId</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.5.1.4.1.2 "><p id="mrs_02_1084__en-us_topic_0125376251_p2076413254161">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.3.5.1.4.1.3 "><p id="mrs_02_1084__en-us_topic_0125376251_p97646253162">Event type. The default value is <strong id="mrs_02_1084__b842352706165548">submit</strong>.</p>
</td>
</tr>
<tr id="mrs_02_1084__en-us_topic_0125376251_row19185726191614"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.1.4.1.1 "><p id="mrs_02_1084__en-us_topic_0125376251_p10185152619161">submit</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.5.1.4.1.2 "><p id="mrs_02_1084__en-us_topic_0125376251_p018517267166">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.3.5.1.4.1.3 "><p id="mrs_02_1084__en-us_topic_0125376251_p191851926151618">Submission type. The default value is <strong id="mrs_02_1084__b84235270616560">Login</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_02_1084__en-us_topic_0125376251_s1f994bcec3664deab9024db0ad17b4ca"><h4 class="sectiontitle">Response</h4><ul id="mrs_02_1084__en-us_topic_0125376251_ul1095074710124"><li id="mrs_02_1084__en-us_topic_0125376251_li114385510122">Example<pre class="screen" id="mrs_02_1084__en-us_topic_0125376251_screen635012426130">HTTP/1.1 200 OK
Data:Wed,02 May 2018 10:10:01 GMT
Server: example-server
Content-Type: application/json</pre>
</li><li id="mrs_02_1084__en-us_topic_0125376251_li1795011473127">Parameter description<p id="mrs_02_1084__en-us_topic_0125376251_p1832115816124"><a name="mrs_02_1084__en-us_topic_0125376251_li1795011473127"></a><a name="en-us_topic_0125376251_li1795011473127"></a>None</p>
</li></ul>
</div>
<div class="section" id="mrs_02_1084__en-us_topic_0125376251_section1090133331415"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_02_1084__en-us_topic_0125376251_table2979011121511" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Status code</caption><thead align="left"><tr id="mrs_02_1084__en-us_topic_0125376251_row3981161161515"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.5.2.2.3.1.1"><p id="mrs_02_1084__en-us_topic_0125376251_p398115116158">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="83%" id="mcps1.3.5.2.2.3.1.2"><p id="mrs_02_1084__en-us_topic_0125376251_p1798121191515">Description </p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_02_1084__en-us_topic_0125376251_row69813112155"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.5.2.2.3.1.1 "><p id="mrs_02_1084__en-us_topic_0125376251_p698113117157">200</p>
</td>
<td class="cellrowborder" valign="top" width="83%" headers="mcps1.3.5.2.2.3.1.2 "><p id="mrs_02_1084__en-us_topic_0125376251_p7981131116153">The login is successful.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_02_1084__en-us_topic_0125376251_p385511715205">For details about error status codes, see <a href="mrs_02_0015.html">Status Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_02_1083.html">MRS Manager CAS APIs</a></div>
</div>
</div>