No authenticationScheme was specified, and there was no DefaultChallengeScheme found.
Hello, there! I added JWT Authentication to my ASP.NET Core Web API project by this code snipper:
Then, when I'm requesting any endpoint that requires authorization, asp.net core throws an exception:
What am I doing wrong?
B
Baturhan•144d ago
Did you use "UseAuthorizion"
H
hunterlan•144d ago
There's Program.cs file:
OK, I solved this.
I don't know why I added parameter "jwt" in , but I removed it and it starts to work correctly.
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
51KMembers
View on DiscordWant results from more Discord servers?
More PostsMVVM WPF - Change Color in ColorAnimation in Style ControlTemplate on RuntimeI have various styles with color animations, and I need to change the "To" color of a color animatioSmart enums, inheritance and "siblings" behaving weirdly and I don't understand why.So, I'm using `Ardalis.SmartEnum` to create some smart enums with data members.
I found myself haviHey guys I need some troubleshooting with a C# task using BFSI have a task that I's mostly working but sometimes I have undesirable outputs and not behaving righMVVM - View model with collection of view models?Within MVVM, can a view model have a collection of view models?
Is it okay to do:
```
class BasketV2 QuestionsHi, I need to ask 2 questions as i am new to C#. So im missing 2 tasks to deploy my first app. And iRaw SQL Query QuestionI have a raw SQL query that I need to execute against a database that's external to my application. ✅ Help for unityGood evening I am looking for someone who can teach me how to create a game from A to Z. Even if I dAny way to get XAML Auto-complete in VS Code?I recognize this isn't quite a C# question, but it's related. I want to make cross platform apps usi