GetSSOLinkInAction Property | |
The action type used to query the single-sign-on request
* Required Property
Namespace: AppOne.Services.V2.ContractsAssembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax public string Action { get; set; }
function get_Action();
function set_Action(value);
Property Value
StringRemarks
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
DataAction Names
Name | Description |
---|
SELECT-LOGIN-FULL | Requires the LoginID and LoginPass inputs be passed in for validation. |
SELECT-LOGIN-ID | Requires that the LoginID param be passed in for validation. |
SELECT-EMPID | Requires that the EmpIdentifier param be passed in for validation. |
Example {
"Action":"SELECT-EMPID",
"CustomerAlias":"apacheschemas",
"EmpIdentifier":"1234",
"LoginID":"",
"LoginPass":"",
"SSOSharedKey":"a4471428-a76a-4c70-b31c-4cf2f248c5z7"
}
{
"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"
}
}
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;
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;
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