Authentication:Get Login Token

Search (SHIFT+S)



Get Login Token

GET /login

Authenticates the user and obtains authentication token to use in subsequent api calls. If valid X-SDS-AUTH-TOKEN is provided, that will be used instead of creating the new authentication token. Setting the queryParam "using-cookies" to "true" sets the following cookies in the response.

  • X-SDS-AUTH-TOKEN
  • HttpOnly
  • Version
  • Max-Age
  • Secure

  • Query Parameters

    serviceOptional query parameter, to specify a URL to redirect to on successful authentication

    Required Roles

    This call has no restrictions.


    Response Body

    Response


    Examples

    Request
    GET https://192.168.0.0:4443/login?using-cookies=true HTTP/1.1 
    
    Content-Type: application/xml 
    X-SDS-AUTH-TOKEN: <OPTIONAL_AUTH_TOKEN>
    Response
    HTTP/1.1 200 OK 
    Content-Type: application/xml
    
     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <loggedIn>
      <user>root</user>
    </loggedIn>
    Notes: