How do I learn how to interact with ADFS?
We're working on various WPF applications in our enterprise. We were using AD to authenticate users, however our IT department wants us to start using ADFS instead. I have basically no experience at...
View ArticleUnable to Post JSON to custom actions: Getting 415 Unsupported Media Types
I am posting JSON as :{"contractId":[1,3,5,7,9],"projectId":9 }I have configured custom action as:var deleteContracts =...
View ArticleFront end authentication credentials for web api
I'm not sure if this is the correct group for this question for not.I have a web api which requires credentials for most methods. Our app authenticates and receives a token which is used for subsequent...
View ArticleTurn off JSON for certain functions?
I've got an OData v4 app running under webapi. I have one function that delivers a PDF from the server, over json.I've been asked to create another function within this app, that will not deliver...
View ArticleIn 30 minutes , just 1 access token is accessed in my app
I use Oauth2 to secure my web API. My problem is :User "A" with account "A" login , access token "A" is granted . User "B" login with account "A" , access token "B" is granted. Then both access token...
View ArticleHow to retrieve contents of JSON file with OWIN project?
In a normal ASP.NET project I can retrieve the contents of a JSON file in the root of the project like this: string filePath = HttpContext.Current.Server.MapPath("~/someFile.json"); if...
View ArticleBearer token for Google Authentication
I have a ASP.NET MVC web application that uses Google Authentication. The authentication part is working fine. But I am trying to find out how I can get hold of the access token for the login in my...
View ArticleWeb API - Getting SQL Server Database Data into defined models
Hello everyone,my question is the following:Let's say, i want to build a Web API, the easy way.That means i only want to have Controllers, Models, Global.asax and some kind of Database Context.My Model...
View ArticleRegister function to use existing sql database web api2
How do i get the register function of web api 2 not to use the local app data database is there a way to add my local sql database the tables that is required.Regards
View ArticleHow to secure web api request and response by HMAC
just read this article http://searchcloudapplications.techtarget.com/tip/How-to-secure-REST-API-endpoints-for-cloud-applicationsthey said :- Hash-based message authentication code (HMAC) is an option...
View ArticleOWIN health middleware response very slow
Hi,Hi. I have a problem with health endpoint. There is self hosted OWIN WebApiI have simple health check middleware which first at all middlewares chain. Sometimes health check response time 10-20...
View ArticleWeb API development
Hi All,All these years I have worked on projects which required normal web forms application, suing ADO.net. I was developing a n-tier applications where I would interact wth DB using Data layer where...
View ArticleASP.NET Identity: unexpected lockout behavior with Web API External Login
I am working on a Web API project where the only authentication method is external login (via Facebook). I am trying to enable the lock out feature of ASP.NET Identity framework, but just enabling the...
View ArticleJQUERY/CORS Web API Authentication Error
I am trying to use CORS with JQUERY in order to retrieve data through a web API , however, I keep getting an authentication error and from the research I have done, apparently I need to set the server...
View ArticleLocalization, Grouping of string resources in Resx file
HiI am developing ASP.NET MVC web application. Website is localized using Resx file. Current Resx file has all the strings in it. I want categorization based on domain area. How i can achieve it.
View ArticleProject architecture
Hi I am developing MVC web application, I have created architecture for my blogger projects where people can write there blog. Considering MVC is just UI framework, I have divided solution into several...
View ArticleAuthorized some controller in ASP.NET MVC
I want to some controller restrict to access by anonymous users. But only registered users can access. When unauthorized users want to access this controller they will redirect to login page. Please...
View ArticleAsp.net Web API 2 and mixed Authentication using both Integrated Windows and...
I have as asp.net Web API server running under IIS, that until now has used windows authentication as it has only had other services running on the same domain conencting to it. So, in my web.config I...
View ArticleWebApi not working after deployment to Windows 2012 R2 / IIS 8.5
Hi all,I've written a webapi (c# dll) and I used the deployment function of visual studio 2015 for deploying the webapi into a filesystem folder. I copied the whole directory to the new Windows 2012 R2...
View ArticleHow to enable Cors in ASP.NET Web Api
Hello,I'm learning Angular 2 and web api core at the same time. Both applications are running in my local machine. Angular 2 is in VS Code and the web api is in Visual Studio. Requesting data from the...
View Article