Hi,
I know it's not completely a classic Kendo issue, but I believe most of us want answer for that, so please kindly share your experience and a solution if you have one.
I'm able to bind ListView to Web API (MVC 4)
I'm using the ICENIUM by the way...
That works fine!
Now I want to secure the API call and want to send Username/Password with the API call in Cross Domain (after all its mobile app...)
1) the user (on the mobile app) need to enter his username/password when application launch.
2) I need to Authenticate the user with an API call for Login... if user pass the authentication, Return some ApiKey
3) this APIKey need to be sent on every API call that is secure and decorated with [Authorize]
Do you have a solution for this?
I attach Web API project, Please fill free to modify it to achieve that.
I'm 3 days on that and read lot of documentation, so any help is appreciated.
Thanks
Moti
I know it's not completely a classic Kendo issue, but I believe most of us want answer for that, so please kindly share your experience and a solution if you have one.
I'm able to bind ListView to Web API (MVC 4)
I'm using the ICENIUM by the way...
var productTransport = new kendo.data.RemoteTransport({
read: {
url: "http://localhost:1822/api/products",
dataType: 'jsonp',
type: 'GET'
}
});
var datasource = new kendo.data.DataSource({
transport: productTransport
});
$("#MyListView").kendoMobileListView({
dataSource: datasource,
template: kendo.template($("#listviewHeadersTemplate").html())
});
Now I want to secure the API call and want to send Username/Password with the API call in Cross Domain (after all its mobile app...)
1) the user (on the mobile app) need to enter his username/password when application launch.
2) I need to Authenticate the user with an API call for Login... if user pass the authentication, Return some ApiKey
3) this APIKey need to be sent on every API call that is secure and decorated with [Authorize]
Do you have a solution for this?
I attach Web API project, Please fill free to modify it to achieve that.
I'm 3 days on that and read lot of documentation, so any help is appreciated.
Thanks
Moti