Skip to main content

All Questions

Tagged with
1 vote
1 answer
735 views

Azure app service websocket buffer buffer size limits?

I have run into a problem where my websocket connection is functioning as expected locally, but not when deployed to azure app service. (.NET Core 3.0) I am able to receive messages of any size ...
eirikjor's user avatar
1 vote
2 answers
5k views

Why can't I create a jwt token with SHA256?

I am implementing a JWT based authentication for the first time, and based my implementation on some resources I found online. I was wondering, my secret for the jwt is defined as: "JwtConfig": { ...
Marin's user avatar
  • 891
0 votes
2 answers
533 views

AzureAD not working with IdentityUser and IdentityRole

I'm trying to get AzureAD authentication implemented in my app, which has role authentication. When I try to run the app, instead of automatically going to Microsoft login page (like it does in new ...
MariusG96's user avatar
0 votes
1 answer
825 views

How can i inject the AntiForgery token?

While using within my _Layout.cshtml @using Microsoft.AspNetCore.Antiforgery @inject IAntiforgery AntiForgery; I expect the RequestVerificationToken to be present at the Request headers. But ...
OrElse's user avatar
  • 9,879
12 votes
7 answers
26k views

.NET Core 3 [JsonIgnore] not working when requesting single resource

In my .net Core 3.0 API the [JsonIgnore] Attribute is not working as excepted. Im using System.Text.Json Instead of the old Newtonsoft.Json When I'm using my resource that returns a list of Objects, ...
mic's user avatar
  • 133
0 votes
1 answer
1k views

.Net Core 3 - api - XML and JSON format outputs upon URL request (.xml, .json)

I'm trying to figure out how setup content negotiations so the application servers both xml or json upon request. I've tried multiple things you can find on the internet including microsoft ...
KoU_warch's user avatar
  • 2,150
-1 votes
1 answer
248 views

How can I update the transactions status when cache expire?

var cacheExpirationOptions = new MemoryCacheEntryOptions { AbsoluteExpiration = DateTime.Now.AddMinutes(5), Priority = CacheItemPriority.Normal, }; _memoryCache.Set(fakeTransactionId, ...
venogn's user avatar
  • 56
0 votes
1 answer
197 views

.Net Core 3.0 Cookie Auth. Authorize Attribute always redirecting

I've finally got around to converting some .Net Framework projects to Core (3.0). I'm currently just looking at Cookie Authentication and getting a simple example up and running. I have the claims ...
LiamB's user avatar
  • 18.5k
3 votes
1 answer
4k views

How can I check if a route is valid in a .NET Core middleware before UseEndpoints does?

I am using .NET Core 3.1, creating a web api. My API Controllers are being mapped with the following: app.UseEndpoints(endpoints => endpoints.MapControllers()); Is there a way that I can perform ...
Chris's user avatar
  • 8,254
1 vote
1 answer
2k views

Custom routing in .NET Core 3 MVC

Can you help me to create custom routing in .NET Core 3? If the url looks like this: abc.com/tiger-animal then I want to execute the Index method on the AnimalController and pass tiger as query ...
Jishnu Chandran's user avatar
29 votes
3 answers
21k views

Allow anonymouos access to healthcheck endpoint when authentication fallback policy is set in ASP.NET Core 3

asp.net core 3 allows to set FallbackPolicy to make the endpoints secure by default: services.AddAuthorization(options => { options.FallbackPolicy = new ...
wxt's user avatar
  • 575
2 votes
0 answers
1k views

Difference between ASP.NET MVC 5 and ASP.NET CORE 3.0 (Blazor) [closed]

I am a beginner in learning in .NET Technologies. As I am aware of C# language and i had learned Asp.Net MVC 5. I am able to understand the concepts which i had been able to implement. I have been ...
user avatar
0 votes
0 answers
59 views

Entity Framework 6.3 as a Service and .Net Core 3

I have an existing WCF service that uses an .edmx model. I have a second service that has a method to call a stored procedure. I have updated the services to Entity Framework 6.3. Now I am trying ...
Mark Bonafe's user avatar
  • 1,481
1 vote
1 answer
862 views

ASP.Net Core 3 with Autofac ignores iis settings; log displays "Now listening on: http://localhost:5000"

I'm running an Asp.net core 3.0 web API using Autofac. Its entry-point looks like this: using Autofac.Extensions.DependencyInjection; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions....
Starnuto di topo's user avatar
0 votes
2 answers
523 views

Configuring Multiple HttpVerbs using EndPoint Routing in ASP.Net Core 3.0

I am getting an exception when I have multiple action methods with same verb i.e. POST, in the Account controller of my newly setup WebApi project using default template in Visual Studio. Here's the ...
Zeshan Munir's user avatar
  • 1,118

15 30 50 per page