How Does the “validatedToken” Work in “ValidateToken()” Method?
I’m trying to understand the code block below. Everything is fine until the third argument of the tokenHandler.ValidateToken(...) method which is out SecurityToken validatedToken.
I’m trying to understand the code block below. Everything is fine until the third argument of the tokenHandler.ValidateToken(...) method which is out SecurityToken validatedToken.
I am building an asp.net core web api project.I am trying to add a search query through the following code. However, I am getting an error at the “view” that “the name view does not exist in current context”.
I’m seeing an issue when our API is parsing the post values. This only appears to be happening in the live environment, hence it was missed during testing.
This is the first time i am deploying an ASP web api. The api runs smoothly in Debug/Release section but i got an error when first deployed it.
I have on ASP.Net C# web API with an endpoint for the import. Javascript client sends a list of items to this API and API process this list in another thread (long task) and immediately returns unique id (GUID) of process. Now I need the cancel the background task from the CLIENT. Is possible to somehow send the cancelation token from the client? I have tried to add CancellationToken as a parameter to my controller async action but I don’t know how to pass it from the client. For simplification, we can use as the client the Postman app.
I am making a POST method. The following code takes in an object, takes the data from the object that it wants, then formats it into a new object and saves that to the database. I use the following code:
I’ve been learning how to make WEB APIs with ASP.NET for several days but I could not find out how the whole process works generally from the very first beginning, a request from a browser, to the end, response sent to client. I just want to see the code flow. What first starts to work … Read more
I’m just trying to apply Option Pattern and I coded that in ConfigureServices:
I have hard time to make working attribute routing for urls ending with .json. It is working for GET requests and not working with POST requests. Not sure what is wrong.
How to check if there exists an entry in the database? Debugging shows that the result returns null.