Questions tagged as 'asp.net-web-api'

1
answer

Is it possible to have Authentication by IdentityServer4 and Authorization in the API, separately?

I recently asked a question on stackoverflow in English, however I may have expressed myself poorly and did not get the answer I wanted. Link in English . I have 3 different applications: IdentityServer which is my identity provider; Teac...
asked by 15.03.2018 / 23:27
1
answer

OAuth 2.0 flow for authentication of multiple APIs using an authentication server

When I log in through my front-end layer, a request is sent to my authentication server which, in turn, returns a Bearer Token that can be saved in a cookie, for example. No doubt about it! My problem is that my front layer requests N other...
asked by 06.03.2018 / 20:51
1
answer

Failed with PostAsJsonAsync - WebApi - C #

I made a WebAPI that for Postman I can make a CRUD complete, but I created a Windows Forms C# pelo Visual Studio and I have some problems. I can give get and all my data is fetched perfectly, but even givi...
asked by 23.02.2018 / 14:38
1
answer

What is the best solution for a web login api in xamarin forms?

I have the following challenge to solve, I am developing an app using xamarin forms , this application will have to communicate with a website developed in PHP to consume your data, for all functions there is a GET json method that...
asked by 21.02.2018 / 16:45
0
answers

View large video with ASP.net

I found an ASP code using Web Api to display videos, but it does not work for large videos (like a 100MB I have). I already tried changing the buffer number and it did not work. Controller: public class PlayController :ApiController {...
asked by 29.01.2018 / 19:41
0
answers

Consume Rest API in C # by Ajax in jquery

Hello I have a C # API that returns me an object in JSON Follow the code [HttpGet] public string Login(string Pass, string User) { Return ret = new Return(); try { UsuarioDA...
asked by 28.01.2018 / 21:23
0
answers

Web API: GetOne return object json

I've created a WEB API project with EMPTY template. I would like the GetOne () method to return a json object but it is returning an json array. Why? I would like it to return: {"Id": 1, "Nome":"Jhon"} But it's returning: [{"Id": 1, "N...
asked by 27.01.2018 / 20:41
1
answer

WebService REST with authentication [ID, CPF, User, Password]

Hello, I have been searching the web for some time but I can not find clear answers. I want to implement a webservice rest, with tokens and etc for security, and the webservice consists of just GET for queries with our SQL Server, but I'm hav...
asked by 27.01.2018 / 15:22
0
answers

Error in using and initializing Spotify API for Java web

I'm trying to use Spotify's Api for days and I really do not know what's going on, there are several errors in the WildFly Server Boot 11.0 in the case, already tried with others and the errors are the same and all related with apparently no achi...
asked by 25.01.2018 / 13:25
0
answers

Web api with authentication

I'm going to create an asp.net web api to expose data from a SQL database to some specific clients and my question is this: How do I make it so that only these clients access the api web data?     
asked by 18.01.2018 / 23:22