Tim Burris
Tim Burris
  • 28
  • 47 800
ASP.NET: Add JWT Authentication using Owin
This video will give you an introduction into adding JWT generation and validation into an existing ASP.NET Web Application
If one of my videos has helped improved your daily activities, consider paying it forward (help someone else) or Buy Me a Coffee?
☕️ Buy me a coffee - www.buymeacoffee.com/timburris
Demo Source
github.com/TimBurris/AspNetJwtWithOwinDemo
Переглядів: 1 695

Відео

Asp.Net Core: Using Tag Helpers to reduce copy/pasting HTML
Переглядів 501Рік тому
This video will give you an introduction into authoring custom Tag Helpers in AspNet Core for MVC and Razor; allowing you to reduce the amout of html you need to copy and paste for redundant tasks like laying fields 00:00 - Intro 00:30 - Original Html - Details view 00:50 - Original Html - Edit view 01:30 - Target/Goal Html - Details view 01:50 - Target/Goal Html - Edit view 03:30 - Start writi...
Intro to MQTT for the everyday .NET Developer
Переглядів 2,4 тис.2 роки тому
This video will give you an introduction the MQTT Publish/Subscribe protocol and demonstrate some real world, non-iot, examples 00:00 - Intro 02:25 - Mosquitto 03:14 - MQTT Explorer 04:30 - Topics 11:55 - Real World Example 1: Printing 20:22 - Real World Example 2: Mapping 25:56 - MQTT .NET 28:14 - Open Architecture/Automation 30:12 - Dispose If one of my videos has helped improved your daily a...
Data and Business Layer Models: Gotta keep 'em separated
Переглядів 1242 роки тому
In this video I provide an argument for creating domain/business models that are independent of your data models. Examples are in .NET c# but the concept applies more broadly. If one of my videos has helped improved your daily activities, consider paying it forward (help someone else) or Buy Me a Coffee? ☕️ Buy me a coffee - www.buymeacoffee.com/timburris
Excel To Sql Server: a utility to simplify your life
Переглядів 2152 роки тому
A utility written in c# that will simply get data from excel to MSSQL. This tool does the basics and has a handful of configuration options allowing you to ditch the SSMS importer for those cases where you just want to get the data from excel into MSSSQL so that you can work with it there. Utility download and source code: github.com/TimBurris/ExcelToSqlServer If one of my videos has helped imp...
Authenticate .NET Core with Azure AD
Переглядів 24 тис.2 роки тому
Using Azure Active Directory to authenticate your .NET Core application can be accomplished in a few very simple steps. This video will show you the bare minimum code and configuration Source Code: github.com/TimBurris/DemoAzureActiveDirectory 00:00 - Intro 00:10 - Setup 00:21 - Install Nuget 01:02 - Add code to program.cs 03:10 - Stub appsettings.json 04:10 - Register Application in Azure AD 0...
Visual Studio: 10 tips for everyday use
Переглядів 3492 роки тому
If you spend a lot of time developing c# .NET applications, I hope that you'll find some of these tips to be time savers for you. 00:00 - Intro 00:09 - #1 Go to all (CNTL ,) 01:07 - #2 Move Lines (ALT up down) 01:52 - #3 Complete Line Copy/Cut 03:04 - #4 Duplicate Line/Duplicate Block (CNTL d) 04:20 - #5 Column Select (ALT SHIFT arrows) 11:46 - #6 Move to new File 14:36 - #7 Rename File 16:07 -...
Software Developer Toolbox: 10 of my must haves
Переглядів 1202 роки тому
Software Developer Toolbox: 10 of my must haves
.NET Startup.cs: Preventing the big ball of mud
Переглядів 1862 роки тому
.NET Startup.cs: Preventing the big ball of mud
Blazor Pages: Getting your c# out of the razor file
Переглядів 3902 роки тому
Blazor Pages: Getting your c# out of the razor file
DataGrip versus SSMS: Making the switch
Переглядів 1,2 тис.2 роки тому
DataGrip versus SSMS: Making the switch
FaultlessExecution: A package for readable, inline error handling
Переглядів 762 роки тому
FaultlessExecution: A package for readable, inline error handling
.NET Core Hosted Services
Переглядів 9772 роки тому
.NET Core Hosted Services
Microsoft Report Builder with POCOs from ASP.NET Core
Переглядів 6 тис.2 роки тому
Microsoft Report Builder with POCOs from ASP.NET Core
ScriptScripter: A utility for managing your MSSQL Migration Scripts
Переглядів 982 роки тому
ScriptScripter: A utility for managing your MSSQL Migration Scripts
Expand Your Models: A pattern for including associated/related models
Переглядів 392 роки тому
Expand Your Models: A pattern for including associated/related models
Ditch Your Debugger: Use logs
Переглядів 663 роки тому
Ditch Your Debugger: Use logs
Datagrip vs SSMS: T-SQL
Переглядів 1,5 тис.3 роки тому
Datagrip vs SSMS: T-SQL
Ultrawide Monitor for software development
Переглядів 3673 роки тому
Ultrawide Monitor for software development
DataGrip vs SSMS: Create New Tables
Переглядів 4,1 тис.3 роки тому
DataGrip vs SSMS: Create New Tables

КОМЕНТАРІ

  • @randallpowell979
    @randallpowell979 2 місяці тому

    Awesome work! I was looking for a quick primer on the nuances of Startup with .Net 6 and your video provided me with exactly what I needed. Very succinct and to the point. Thanks!

    • @TimBurris
      @TimBurris 2 місяці тому

      Very glad to hear that this helped you out!

  • @etleo3811
    @etleo3811 4 місяці тому

    Gold🎉❤🎉

  • @tiagomonteirinho4179
    @tiagomonteirinho4179 6 місяців тому

    Hello. You mentioned that you can't make the YT videos fullscreen, but what if you cover 1/3 or half of the screen with that window like the one in the middle, won't they get bigger?

  • @danmaroff324
    @danmaroff324 9 місяців тому

    Fantastic video! Very useful 👍

  • @JuanPabloRussi
    @JuanPabloRussi 9 місяців тому

    Thnaks, Bro! you are the best.

  • @WayneGreen-g8l
    @WayneGreen-g8l 9 місяців тому

    Do I use the same nuget identity package if I want to allow multi tenant and MS accounts ?

  • @SirOsis_
    @SirOsis_ 10 місяців тому

    This is excellent, I was looking for a simple tutorial on basic usage of tag helpers and luckily stumbled across this gem.

    • @TimBurris
      @TimBurris 10 місяців тому

      very glad it was helpful!!

  • @mithunbobade1
    @mithunbobade1 10 місяців тому

    Great Video, Just a doubt, is it the same process for delegated permission?

  • @raggardy
    @raggardy 10 місяців тому

    Great video, cheers!

  • @DannysGalaxyTab
    @DannysGalaxyTab 10 місяців тому

    This video could have literally be 3 minutes long. Are you insane?

    • @TimBurris
      @TimBurris 10 місяців тому

      I am indeed! 🤪

  • @kyrylovagabond9172
    @kyrylovagabond9172 10 місяців тому

    Thanks! Documentation for this tool is still poor, so this video is very helpful

  • @RicardoJacobsen-g7h
    @RicardoJacobsen-g7h 10 місяців тому

    Great video mate. Thanks for the information. Very useful. Now, I have a question. I need to get the access token after user is logged in. Is it possible? is it available? I found something in the internet about HttpContext.GetTokenAsync("access_token"); But I checked the values in HttpContext doesn't have anything like the access token. Any tips?

  • @bradleylund6563
    @bradleylund6563 Рік тому

    You are a legend! Thanks so much for the video, exactly what I was looking for :)

    • @TimBurris
      @TimBurris 11 місяців тому

      Glad I could help!

  • @uctrinhquang9371
    @uctrinhquang9371 Рік тому

    Can you share solution for refreshToken ?

    • @TimBurris
      @TimBurris 11 місяців тому

      For the most part, the act of refreshing the token is handled auto-magically by the .net core Authentication code, so typically you don't need to do anything. That being said, you can gain access to the refresh token by adding code to respond to OnTokenValidated then store that and use it in a custom Post if need be. options.Events.OnTokenValidated = ctx => { //get the refresh token var refreshToken = ctx.TokenEndpointResponse.RefreshToken;

  • @guhacdc
    @guhacdc Рік тому

    Nice

  • @arihadi2287
    @arihadi2287 Рік тому

    Hi Tim, thanks for the great tutorial video. by the way, I try using your code in Program.cs but there's an error that says "No authenticationScheme was specified, and there was no DefaultChallengeScheme found.". I'm not sure why since we already define the authentication in AddAuthentication method. Did I miss something?

    • @TimBurris
      @TimBurris 11 місяців тому

      Hopefully by now you have gotten past the scheme error. I pulled the code and tested again just now and I am not getting any error. Additionally, I don't recall running into that error anytime in the past. A quick google search yields a number of different causes, so it's hard to know which one you might have been encountering

  • @mohammadNadeem-i6g
    @mohammadNadeem-i6g Рік тому

    Hey nice video, but can you tell how we can do the single sign on using azure.

    • @TimBurris
      @TimBurris Рік тому

      I must be misunderstanding the question. This demonstration is authenticating with Azure, can you elaborate on your question?

  • @RidaRamadan
    @RidaRamadan Рік тому

    Hi Thank you for the video. Can you please explain how to hook up with our custom pages? I need to redirect to a checkpoint before redirecting to the main page. I need the get the user's email to get his ID from the Db. Can you please help with that?

    • @TimBurris
      @TimBurris Рік тому

      absolutely! the short answer is, in your .AddMicrosoftIdentityWebApp call, you can hook into an "OnTokenValidated" callback event. With that you'll have access to all the claims that Azure AD put in, including the email address. Using that email address lookup your user and then add your User ID as a claim so that you can access it during page requests. I just created a branch in the git repo that demonstrates exactly that. here is the branch: github.com/TimBurris/DemoAzureActiveDirectory/tree/local-database-user-lookup DISCLAIMER: I put all the code directly into Program.cs, but in the real world I always have OnTokenValidated invoke a custom class to do all the real work.

    • @RidaRamadan
      @RidaRamadan Рік тому

      @@TimBurris Thank you so much. Subscribed. :)

    • @RidaRamadan
      @RidaRamadan Рік тому

      @@TimBurris Hi. I applied the configurations and it seems to be ok. But how can I get the UserId from the db in program.cs. And can you please explain invoking a custom class from OnTokenValidated?

    • @TimBurris
      @TimBurris Рік тому

      to use a custom class, you could create an instance in the OnTokenValidated either by directly "newing it up" like: var service= new CustomClaimService() or using Dependency Injection: var service = ctx.HttpContext.RequestServices.GetService<CustomClaimsService>(); regardless how you construct, you would then just pass the TokenValidationContext like this: return service.AssignClaims(ctx); then, inside of you CustomClaimService you could make a database call or do anything you needed

  • @aavishar
    @aavishar Рік тому

    Please create a video on using Microsoft authentication library with .net core api .

    • @TimBurris
      @TimBurris Рік тому

      That's a good idea, I'll see if can throw one together. in the next few weeks

  • @aavishar
    @aavishar Рік тому

    THanks man

  • @UnknownMoses
    @UnknownMoses Рік тому

    You still have less vertical space though. I like the 16:10 aspect ratio, would love to see an ultrawide monitor as 16:10 but sadly that will never happen.

    • @TimBurris
      @TimBurris Рік тому

      i agree the loss of vertical space is a drawback. that being said, a couple years in, I'm definitely happier with the Ultrawide than the 3-monitor setup. I have augmented my setup with a smaller 13" monitor (tablet sized) that sits just below my primary, and on that little fella i throw my email, SMS, slack, etc... all the communication apps. That way the big boy is all dedicated to productivity. anyway, thanks for the feedback!

    • @UnknownMoses
      @UnknownMoses Рік тому

      @@TimBurris Yes agreed for gaming especially, I was just saying i would love to buy an ultra wide with 16:10 aspect ratio.

  • @SyedAmirAbbasRizvi
    @SyedAmirAbbasRizvi Рік тому

    Do I have to do this for every single razor page?

    • @TimBurris
      @TimBurris Рік тому

      out of the box, yes, but if you have your pages organized via some convention, you could create a class that you invoke at startup that could go through your pages (probably via reflection) and add routes for each of your pages. that would work for all the basic, simple routes, but when it gets down to the nitty gritty, some pages are going to have different route parameters than others, so for me it's better to just define all my routes so that I get a very nice clean set of routes that match exactly how each independent page needs

  • @BillKempf
    @BillKempf Рік тому

    Bad extension method. An extension method should never do something you can't do with an instance method. You can't call an instance method with a null reference!

  • @norbertcsibi7720
    @norbertcsibi7720 Рік тому

    What happens if I want to get AAD b2b to be able to sign in? I assume I`d need a multi-tenant selected and do I need to do something extra for the X org to be able to sign in into my app?

  • @EntertheBlackDragon
    @EntertheBlackDragon Рік тому

    Followed everything to the letter but I've come across 2 issues the first being that my IAppBuilder doesn't contain definitions for the other types of cookies UseExternalSigningCookie, UseTwoFactorSignInCookie, UseTwoFactorRememberBrowserCookie, I didn't remember you mentioning that any of these were necessary so I commented them out. While the token generation is good and all of the logic is holding together I'm getting a 401 Unauthorized by using a GET request from postman only passing headers Authorization Bearer ey.... Not sure what i've missed.

  • @milacayn921
    @milacayn921 Рік тому

    Thank you! this video is much easier to follow than other videos related to the same topic.

  • @ShotMuse
    @ShotMuse Рік тому

    Great explanation, very helpful thanks.

    • @TimBurris
      @TimBurris Рік тому

      You are welcome, I'm glad you found it useful!

  • @tagetget2148
    @tagetget2148 Рік тому

    thank you for this video. Is it possible to return some claims from AzureAD using this method ?

    • @TimBurris
      @TimBurris Рік тому

      absolutely, you can have the Groups that the User is a member of automatically flow into Claims of type Role, or you can use custom logic to map them how you want. here is an example walk through damienbod.com/2021/02/01/implement-app-roles-authorization-with-azure-ad-and-asp-net-core/

  • @deegodoub
    @deegodoub Рік тому

    We love you tim! 😎

    • @TimBurris
      @TimBurris Рік тому

      Thank you! your check is in the mail :p

  • @georgekampen9250
    @georgekampen9250 Рік тому

    Hi Tim, one of the things you mentioned that bugged you was the Services tab and how much space that wasted. If you haven't found the setting yet, you can turn the tree off via the Gear icon on the far right of the tab. You can also use Ctrl-Shift-T ( Windows) or Shift-Cmd-T (Mac).

    • @TimBurris
      @TimBurris Рік тому

      great tip! not sure how i missed that. I just turned it off and reclaimed that space, looks much better :)

  • @PratapSingh-op8hi
    @PratapSingh-op8hi Рік тому

    Thank you! It is helpful.

  • @tanyashcholokova4072
    @tanyashcholokova4072 Рік тому

    Yay! Thank you

  • @robnilsen
    @robnilsen Рік тому

    Hello Tim. For me, this video is absolute GOLD! I've been using the report designer inside Visual Studio for many years and was looking for a path forward that wouldn't be a complete overhaul and wouldn't break the bank. I believe this will be a large part of the answer for us. Thanks!! (Rob)

    • @TimBurris
      @TimBurris Рік тому

      Rob, I'm very glad to hear the video was useful. thanks for the comment and good luck! :)

  • @miguelmejia3425
    @miguelmejia3425 2 роки тому

    This is one of the most informative videos about windows reporting I've ever watched. Thanks for sharing.

    • @TimBurris
      @TimBurris 2 роки тому

      Thank you for your exceptionally positive feedback!!

  • @dispinser548
    @dispinser548 2 роки тому

    Hi, this only support for database sql server ? how about another database such as mysql and postgresql still same ?

    • @TimBurris
      @TimBurris 2 роки тому

      Because the option is using POCOs, it's database agnostic. you could load your class with data from anything you want. In fact, you could load the data from a Json file stored on a 1.44" Floppy disk :) -Create the class models (POCOs) -Load them from any datasource you want -send them in to the report -party

    • @dispinser548
      @dispinser548 2 роки тому

      @@TimBurris oh ya another question, about report builder we can run it in linux based? Containerize or can deploy it to docker or k8s ?

    • @TimBurris
      @TimBurris 2 роки тому

      @@dispinser548 according to their documentation it will run on linux. I haven't try containerizing it or running it on linux myself, you might look through the github wiki and questions to see if there is a solid answer github.com/lkosson/reportviewercore

  • @idonkey1
    @idonkey1 2 роки тому

    Thanks Tim for the example with local report. Is there a way of generating report on ssrs report server and passing the byte array back to the asp.net core app as sub reports cannot be run locally?

    • @TimBurris
      @TimBurris 2 роки тому

      The purpose of this approach is for those not using SSRS. If you are using SSRS, then you don't really need to create a local rdlc or use POCOs. SSRS provides a webservice where you can execute reports remotely, passing in the params and optionally exporting to PDF (and other formats) That being said, in general subreports are supported by this local RDLC with POCO approach. they work the same as the orginal .NET Framework Report viewer. here is an example of the code to handle subreports; it's in wpf but the C# logic is the same www.c-sharpcorner.com/article/rdlc-subreport-using-c-sharp-and-wpf/

  • @NDSpodcast
    @NDSpodcast 2 роки тому

    i really like your tuples 😂

    • @TimBurris
      @TimBurris 2 роки тому

      Thank you! It's important to focus on tuple health every single day.

  • @KorsAir1987
    @KorsAir1987 2 роки тому

    Excellent tutorial! Is there any equivalent of this for the old 4.8 version?

    • @TimBurris
      @TimBurris 2 роки тому

      Yes there is indeed. infact, the 4.8 version is the official microsoft package which was ported to .net core. just search for and install Microsoft Report Viewer once you install report viewer, you can add a reference to it in visual studio and use it basically identically to the .netcore version here is some sample code i found via AOL web crawler search: www.c-sharpcorner.com/article/asp-net-mvc-5-angularjs-create-pdf-file-using-microsoft-report/ disregard that it's listed as angular, the sample has absolutely nothing to do with angular

  • @melisentbuttz2203
    @melisentbuttz2203 2 роки тому

    ✅ p̳r̳o̳m̳o̳s̳m̳

  • @henriquenunes3437
    @henriquenunes3437 2 роки тому

    Can various workers attached on an app affect the performance of this app ?

    • @TimBurris
      @TimBurris 2 роки тому

      Under the hood, there's not much overhead to a hosted service, so having many of them won't have a negative impact, it's the code within your hosted service that will determine the performance impact.

  • @EldonElledge
    @EldonElledge 2 роки тому

    Great video. I am using the tools you provide here with a Home Automation and Security System that I am designing and developing. I really like it. I did start out using Mosquitto. But, for my project, I am using the broker that came with the NuGet package. Both works really well. You did a great job covering the topic here. I think MQTT has many more uses outside of the IoT world.

    • @TimBurris
      @TimBurris 2 роки тому

      @EldonElledge thank you for the feedback! Curious if you left mosquitto because of a specific reason? i kinda like having the broker be standalone, but if there is an advantage to the nuget package version, i'll give it a try

    • @EldonElledge
      @EldonElledge 2 роки тому

      @@TimBurris, only because it was a broker written in dotNet. And that is something I could play around with.

  • @tanyashcholokova4072
    @tanyashcholokova4072 2 роки тому

    Super useful, thanks!

    • @TimBurris
      @TimBurris 2 роки тому

      Thank you, I appreciate the feedback :)

  • @coolsoftware_ws
    @coolsoftware_ws 2 роки тому

    Brilliant. Thanks Tim, exactly what I was looking for.

    • @TimBurris
      @TimBurris 2 роки тому

      Awesome, I'm truly glad this was able to help you out!

  • @hvtien1998
    @hvtien1998 2 роки тому

    Hello, How to read files from SSRS server

    • @TimBurris
      @TimBurris 2 роки тому

      I'm not 100% sure. Quite a while back used GetItemDefinition as part of the ReportServices package. I don't know if that's still the recommended approach. For my specific cases, i'm typically trying to avoid SSRS. As a result i'm not pulling the definitions from SSRS, they are just included as content files in my application deployment

  • @faisalalhoqani6151
    @faisalalhoqani6151 2 роки тому

    Great video dear Tim I was currently adding reports to my system and searching and planning to create a standard for creating reports on my system. Thanks again dear Tim and keep it up

    • @TimBurris
      @TimBurris 2 роки тому

      Faisal, I'm happy to hear you found value in the content!

    • @faisalalhoqani6151
      @faisalalhoqani6151 2 роки тому

      ​@@TimBurris, It's my pleasure

  • @shawty_ds
    @shawty_ds 2 роки тому

    Tim, well done. I have lost count of how many times I've tackled this subject, with expensive 3rd party tools (The latest being bold reports from SF) and you've just wrapped up a method I will now use forever in little over 30 minutes. Last project I was working on that required doing this, we where converting a bunch of Grape City reports that where all designed using the old windows forms esc designer, in a custom OCX add on for VS, that was an absolute nightmare to get the report definitions into a more sensible format. I've long known that you could plug in your own data like this, but for some reason I was never quite able to make it work, you've now set the blue print. The ONLY thing I now have to figure out how to do, is how to add an image (In my case a thumbnail) to a report list, that can be populated in a report using the image control. Peter "Shawty" Shaw

    • @shawty_ds
      @shawty_ds 2 роки тому

      PS: Figured out how to do images 🙂 Set the field up exactly as you do for the standard text fields, as shown in your demo, only instead of using a text box, use an image, set it's type to "Database" but don't fill anything else in. Then in your C# model, set the field type in your class to byte[] and load the image you want to use into that byte array (I used File.ReadAllBytes) and hey presto, works just as simply. I can now use this to produce "thumbnail brochures" in the image list PDF's my image search app I wrote for the local history charity I help run, when someone requests a list of old images from thier archive.

    • @TimBurris
      @TimBurris 2 роки тому

      thank you so much for the positive feedback! Very glad you found the content useful and kudos to you getting the image from data working so quickly!

  • @brianwiggins6981
    @brianwiggins6981 2 роки тому

    Thanks for this example with Microsoft Report Builder

    • @TimBurris
      @TimBurris 2 роки тому

      I'm glad you found it useful!

  • @hamedamin9324
    @hamedamin9324 2 роки тому

    can you add a logout button in the next video please

  • @alonzo3668
    @alonzo3668 2 роки тому

    😬 ƤRO𝓂O𝕤ᗰ

  • @tanyashcholokova4072
    @tanyashcholokova4072 2 роки тому

    Awesome tips! Thanks!

    • @TimBurris
      @TimBurris 2 роки тому

      Tanya, I'm glad you found the video useful! :)