Beruflich Dokumente
Kultur Dokumente
Using Directory Services in OIS Framework, you will be able to validate or get information about certain
user on domain.
First you need to get information of gateway from DB for which you want to use, then use the
information fetched to initialize required directory service like ‘LdapService’ and then use its methods
appropriately as follows:
var authGatewayResponse = new
OIS.Framework.Services.Security.AuthGatewayService().Get(“YourGatewayId”);
if (authGatewayResponse.IsSuccess)
{
var gateway = authGatewayResponse.Payload;
//Then call the method ‘GetProfileByUsername’ by giving the username of the which
//you need to get information from directory.
//Also you can use method ‘ValidateUser’ to validate a certain user based on
//username and password.
Server-side processing is enabled by setting the ‘serverSide’ option to ‘true’ and providing an Ajax data
source through the ajax option.
columns: [
{
"width": "10%",
data: "Name",
name: "Name",
orderable: true
},
{
"width": "15%",
data: "Email",
name: "Email",
orderable: true
},
{
"width": "15%",
data: "Gender",
name: " Gender ",
orderable: true
}
]
});
On server side, write method like below, notice it should be http post so that it can get values from
request.
[HttpPost]
public JsonResult GetAllData()
{
var draw = Request.Form.GetValues("draw").FirstOrDefault();
var start = Request.Form.GetValues("start").FirstOrDefault();
var length = Request.Form.GetValues("length").FirstOrDefault();
int pageSize = length != null ? Convert.ToInt32(length) : 0;