JWT authorization | authentication in .net core 6
Вставка
- Опубліковано 7 вер 2024
- Learn free coding skills
In this video I have demonstrated the implementation of JWT authentication in asp.net core 6.0 with example.
NET 6.0 - JWT Authentication Tutorial with Example API |
JWT Token Authentication And Authorizations In .Net Core 6.0
Related video to implement swagger in asp.net 6.0
• Swagger Implementation...
Related link to implement the Basic Authentication in Swagger with example
• Basic Authentication i...
Setup application on okta
• Part-1 How to setup ok...
Implement okta client Credentials Flow in swagger asp.net core 6.0
• Part - 2 Okta Code Imp...
Good video. God sake i m being searching for asp core 6 u r a saviour 🙏🙏🙏🙏
Thanks friend if this video helps then don't forget to give your support. Like and subscribe ☺️
Thank you SO much
awesome thanks. :D
Hi, nice video!
At 10:21
if (user != null) I think should be if (userData != null)
You already made a check on the higher level if statement with if (user != null)
Thanks.
@@aonecode you welcome, keep on the good work and thanks to you too!
very good. thanks for the demo on swagger with token. next client part please.
Thanks for watching ☺️. What client part?
@@aonecode extend this , with login and signup page using angular
Genio!!
Hermoso!
bro how comes when i call this generic method (10:24)
var jwt = _configuration.GetSection("Jwt").Get();
the Jwt inside unable to be found and i had already added JWT in app settings, it just unable to retrieve
Thank @Bow for watching this. Actually If you have already created the object for JWT in your app settings then the name must be matched with the new class name you created. It is case-sensitive so you won't retrieve the object from appsettings if you did any verbiage or case mistakes.
Thanks bro.
No problem
no sound ?
Yes
Post is getting error bro in jwttockencontroler y i don't know
Thanks for watching bro. Might be you have missed something. Follow the steps you will not get error.
@@aonecode broi am getting exception in AddAuthentication () bro
What is the error can you please post the error or exception here
@@aonecode An unhandled exception occurred while processing the request.
Expectation is---
Invalid OperationExeption:Cannot modify Service collection after application is built.
BRO please post your code as well only the program file where you have injected the dependency.
hello can we have the
source code ?
Hello, no bro I don't have code in handy. Sorry, you can watch the full video.
I am getting CreateBuilder error
May be you can see the full video and it will work for you
@@aonecode twice i tried but I'm getting same issues
I am trying at visual studio 2019
Does it impact on that?
Yes, vs 2019 doesn't support asp.net 6.0. You need to upgrade your IDE to vs 2022.
share gthub link
Thanks for watching. I randomly created this and not uploaded the code to github.
@@aonecode waiting for github url then only useful to subscribers