Click or drag to resize

GetSSOLinkInAction Property

The action type used to query the single-sign-on request
* Required Property

Namespace: AppOne.Services.V2.Contracts
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public string Action { get; set; }

Property Value

String
Remarks
The DataAction property is required to get results from GetSSOLink(GetSSOLinkIn) method. Below is a list of the available DataAction name values that can used to return a dynamic results set

Example
JSON Request
{
    "Action":"SELECT-EMPID",
    "CustomerAlias":"apacheschemas",
    "EmpIdentifier":"1234",
    "LoginID":"",
    "LoginPass":"",
    "SSOSharedKey":"a4471428-a76a-4c70-b31c-4cf2f248c5z7"
}
JSON Response
{
    "Report": {
        "ProcessTime": "0.1958596",
        "RequestTime": "/Date(1440718137539-0700)/",
        "ResponseTime": "/Date(1440718137735-0700)/",
        "Results": 1
    },
    "Results": {
        "MobileURL": "https://brand.cs.com:443/Mobile/Account/LoginSSO?guid=e1e5a04d-7b74-40a1-8c4b-e730be39cad0&ca=apacheschema&e=1234",
        "WebURL": "https://brand.cs.com:443/LoginSSO.aspx?guid=e1e5a04d-7b74-40a1-8c4b-e730be39cad0&ca=apacheschema&e=1234"
    }
}
SOAP: C# WCF Sample
// ==================================
//TEST 1: SELECT-LOGIN-FULL
int countTest_1 = 0;
SoapServiceV2.GetSSOLinkRequest request1 = new SoapServiceV2.GetSSOLinkRequest();
request1.input = new SoapServiceV2.GetSSOLinkIn
{
    Action = "SELECT-LOGIN-FULL",
    LoginID = "rp",
    LoginPass = "rp"
};
SoapServiceV2.GetSSOLinkResponse response1 = client.GetSSOLink(request1);
countTest_1 = fnIsValidSSOUrl(response1.GetSSOLinkResult.Results.URL) ? 1 : 0;

// ==================================
//TEST 2: SELECT-LOGIN-ID
int countTest_2 = 0;
SoapServiceV2.GetSSOLinkRequest request2 = new SoapServiceV2.GetSSOLinkRequest();
request2.input = new SoapServiceV2.GetSSOLinkIn
{
    Action = "SELECT-LOGIN-ID",
    LoginID = "rp"
};
SoapServiceV2.GetSSOLinkResponse response2 = client.GetSSOLink(request2);
countTest_2 = fnIsValidSSOUrl(response2.GetSSOLinkResult.Results.URL) ? 1 : 0;
// ==================================
//TEST 3: SELECT-EMPID
int countTest_3 = 0;
SoapServiceV2.GetSSOLinkRequest request3 = new SoapServiceV2.GetSSOLinkRequest();
request3.input = new SoapServiceV2.GetSSOLinkIn
{
    Action = "SELECT-EMPID",
    EmpIdentifier = "82"
};
SoapServiceV2.GetSSOLinkResponse response3 = client.GetSSOLink(request3);
countTest_3 = fnIsValidSSOUrl(response3.GetSSOLinkResult.Results.URL) ? 1 : 0;

Assert.IsTrue(countTest_2 > 0 && countTest_1 > 0 && countTest_3 > 0);
See Also