Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

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 Article


Unable 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 Article


Front 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 Article

Turn 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 Article

In 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 Article


How 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 Article

Bearer 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 Article

Web 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 Article


Register 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 Article


How 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 Article

OWIN 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 Article

Web 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 Article

ASP.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 Article


JQUERY/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 Article

Localization, 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 Article


Image may be NSFW.
Clik here to view.

Project 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 Article

Authorized 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 Article


Asp.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 Article

WebApi 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 Article

How 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
Browsing all 4850 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>