Google Authentication with .NET 6 Identity, a Web API & Blazor WebAssembly 🔒

The first 1,000 people to use the link will get a 1 month free trial of Skillshare: skl.sh/patrickgod07221 🚀
🔒 Identity with a .NET 6 Web API & Blazor WebAssembly: • 🔒 Identity with a .NET...
📧 Newsletter: newsletter.patrickgod.com/
❤️ Ko-fi: ko-fi.com/patrickgod
☕ Coffee: www.buymeacoffee.com/patrickgod
💻 GitHub: github.com/patrickgod/BlazorG...
🐦 Twitter: / _patrickgod
📓 Articles: / patrickgod
Table of Contents:
00:00 Google Authentication with .NET 6 Identity, a Web API & Blazor 🔒
02:59 Create a Project with Individual Accounts & Preparations
07:21 Change Connection String
07:56 Install EF Core Tools
08:32 Apply Migrations
09:32 Register a New User Account
11:06 Starting with Google Authentication
15:58 Add Authorised Redirect URI
17:09 Store Google Client ID and Secret & Configure Google Authentication
22:18 Sign In with Google
🙏MANY THANKS TO THESE LOVELY PEOPLE:
Piotr Franczak
Jan Trichter
Tom
H. Ali
Ashley Gahl
Daniel Viveros
Mehmet Ali Ege
Winther
harry j
@Alaffer
Sam Catlow
Jim
Brian Williams
Gonzo
Jonas
Ariel Sartor
Andy Benson
@stevelikespies
Raphael Lukas
James Goforth
@williamdevine
Doug Nelson
Arif Hasanov
@kohji1712
@dlb78dlb
Thomas Korsgaard
FastTrak
Jeff Sager
Dan Moyer
AlgoMarket
Mennskr
Simon
Michael Mel
Hermann Rösch
Jim McNeal
Kieron
@mgrainger231
Gerrit Esmeijer
Axel
Kareem Skinner
Joaquim
Alain Legrand
Per Rieland
@prodrigu75
Greg
Brendan Maunder
Stageoner
Andrew Campbell
pascalditzfeld
PovilasSimanskas
Ameet Jayawant
jenö
Marco Otilli
Mark
l33ter
alibux
g.dassel
Luke Vincent
mrcl
Alain Legrand
Thomas Werner
István Csibor
Grant Burdon
@gianluigiconti
Gerrit Esmeijer
Illia
Németh-Pók István
Michael Mel
Marko Zdilar
GerryB
@DADA_universe
Domen Hren
@heroesch
Carey
Peter De Tender
Baris Keskin
@Big_Bear_27390
Mathias
walter e watkins
Günther Dassel
Axel
Josh
Daniel Huber
Fredric Adell
Juan Carlos
Manolis
Pajani
P.
Jonas Granlund
Bobby
Kristina
@xamarin007
#DotNet #Identity #PatrickGod

Пікірлер: 47

  • @PatrickGod
    @PatrickGod2 жыл бұрын

    The first 1,000 people to use the link will get a 1 month free trial of Skillshare: skl.sh/patrickgod07221 🚀 🔒 Identity with a .NET 6 Web API & Blazor WebAssembly: kzread.info/dash/bejne/aJOHlpiGc9LRks4.html

  • @samjohnson5203
    @samjohnson5203 Жыл бұрын

    It is so satisfying to find a video that gets right down to the point. w/Playback at 1.5x everything shown here was up and working, in .Net 7, in about 14 minutes. That's about as 'instant gratification' as I've seen for dotnet & auth. Doing the same thing using B2C & a .JS SPA two years ago took *cough* quite a bit longer. Really appreciate this, Patrick. Thanks!

  • @txkyle2013
    @txkyle20132 жыл бұрын

    Heck yeah. Been waiting for this one

  • @FelipeSoto
    @FelipeSoto Жыл бұрын

    Excellent tutorial, I've learned a lot, now I'm trying to apply everything I've already learned in this and other tutorials I've seen on your channel, the same at some point if you did an Identity tutorial, but including Unit of Work and Repository Pattern, I haven't found many examples of it.

  • @stephenshillitoe817
    @stephenshillitoe817Ай бұрын

    Thank you for another helpful video Patrick. I appreciate your hard work in creating these videos on such a regular basis.

  • @RakeshBridgraj
    @RakeshBridgraj Жыл бұрын

    Thank you Patrick, this was a good tutorial. I appreciate the effort you put into getting these videos out here.

  • @PatrickGod

    @PatrickGod

    Жыл бұрын

    You are very welcome. Thank you so much for your feedback!

  • @ammarmangala9814
    @ammarmangala98142 жыл бұрын

    really really enjoyed this tutorial! thank you Patrick!

  • @PatrickGod

    @PatrickGod

    2 жыл бұрын

    Glad you did! Thanks a lot for your feedback!😊

  • @marcosdalmolin357
    @marcosdalmolin357 Жыл бұрын

    Muchas gracias Patrick !!! Realmente vales tu apellido.

  • @henrrypadills5011
    @henrrypadills5011 Жыл бұрын

    ¡¡Muchas gracias!! excelente enseñanza!!

  • @abdullahal-nahian
    @abdullahal-nahian2 жыл бұрын

    You are a life saver brother 💞

  • @stevemcqueen2887
    @stevemcqueen2887 Жыл бұрын

    Thanks for showing what the identity database populates with (24min in) no one else shows this and it makes the whole process hard to understand. So we do get the user's email saved, and the password is null.

  • @Leqsus5
    @Leqsus52 жыл бұрын

    Thank you very much interesting

  • @mrtrader3661
    @mrtrader366110 ай бұрын

    thanks for the tutorial. I have a question, towards the end after signing in to google there is a form to complete the registration. I have some extra fields to put such as first and last names, how to modify this form? where is it located in the project?

  • @azgan123
    @azgan1232 жыл бұрын

    This is insane man. Can you do a tutorial with just wasm and firebase as auth provider? They have all the identities.

  • @RikiGamesHD
    @RikiGamesHD Жыл бұрын

    As always a good tutorial, do you have any knowledge with Azure B2C? Maybe a .NET 6 Blazor WebAssembly and API using B2C for client authentication would be a great tutorial, and using Microsoft GraphAPI to create new users, etc! Keep the great work!

  • @raphaellukas3328
    @raphaellukas33282 жыл бұрын

    Vielen Dank für einen weiteres tolles Video Patrick :-) Kannst du mir noch folgende Frage beantworten: Was müsste ich tun, wenn NUR bestimmte Familienmitglieder Zugriff auf meine Web App über Google Login ohne Registrierung bekommen sollen? Die Registrierung möchte ich abschalten. Geht sowas überhaupt? Müsste ich dafür nur den kompletten 'Register'-Teil aus dem IdentityServer nehmen, oder reicht das nicht? Viele Grüße, Raphael

  • @therealherbzy
    @therealherbzy Жыл бұрын

    Good video. Why would they make it so when you have to enter another email when you decide to authenticate using google? That seems confusing.

  • @Ahmed-ui5wn
    @Ahmed-ui5wn3 ай бұрын

    Hi, a very good explanation. I have a question: Could the same be done with native mobile apps? Should then api send a url to the mobile client. It would be very helpful if you could explain how is it done. Thanks

  • @ernanmaisels
    @ernanmaisels2 ай бұрын

    Hi Patrik and thanks for your videos. My question is - what is the role of the client side? Something is not clear enough to me.

  • @sonnyskold5634
    @sonnyskold5634 Жыл бұрын

    Do you know how to make it so you can log in via facebook and google with the same email adress? So it would be the same account but you can login with both services. I haven't found a way to configure this with identity.

  • @YuzzyBee
    @YuzzyBee2 жыл бұрын

    Very nice ! Thanks for the 1 month free and for the video...but now how can I use claims and policy with this authentication method in a blazor app ? 😁 Thanks again ! 👍

  • @tinylittleanj2
    @tinylittleanj25 ай бұрын

    How do you grab the logged in user details to be able to use it with an api back end? How’s of tutes on the setup part but not a lot on actual use cases… :(

  • @path_selector
    @path_selector Жыл бұрын

    I'm looking to use another website's authentication url, i.e. when a user clicks login on my website, they are brought to the other website to sign in, then using the callback url i passed in, my website then saves the username they signed in with. can you point me to a tutorial or the concepts i need to know to do this?

  • @way_no6810
    @way_no68102 жыл бұрын

    Hi Patrick. How do you publish an app with Duede Identityserver4 to a IIS server. It's a nightmare to publish and run. Can you help?

  • @ultwolf
    @ultwolf Жыл бұрын

    Good evening, sorry, but what i can have to do if my project don`t use Identity?

  • @bogdanandrei364
    @bogdanandrei3649 ай бұрын

    And if I have a vue js 3 frontend with typescript? How would look like this authentication?

  • @OliverKempel
    @OliverKempel Жыл бұрын

    Hi, i have had a problem regarding this for months, and i cant seem to use this method to get a Acces token to use any of the google apis? im running .net 7.0 mvc and can for the love of god not figure out how to acces the accestoken for use withe the gmail api PLEEEASE HELP i am desparete

  • @pokeclub69
    @pokeclub695 ай бұрын

    but you did not explain how you redirected when we click on google button

  • @user-mp5zm4ti6j
    @user-mp5zm4ti6j4 ай бұрын

    how to apply it in maui please help me

  • @alywan3817
    @alywan3817 Жыл бұрын

    Can you do one with Azure AD ?

  • @user-jj1ml9im5o
    @user-jj1ml9im5o11 ай бұрын

    I'have the next error when I want to register the user: Error 401: invalid_client . Can somebody help me?

  • @AlemDeveloper
    @AlemDeveloper Жыл бұрын

    How can I test this with an API?

  • @thestudy9045
    @thestudy90454 ай бұрын

    where is web api are you accessing ? or you just give heading only ?

  • @frhadlizad2013
    @frhadlizad2013 Жыл бұрын

    Thanks for this. But is it possible to use google authentication without Identity Framework? I'm using JWT for authentication and authorization, but design of project also demands authorization with google -_-

  • @ghrafkly

    @ghrafkly

    8 ай бұрын

    Did you ever figure this out? I am running into the same issue

  • @frhadlizad2013

    @frhadlizad2013

    8 ай бұрын

    @@ghrafkly lol no -_-

  • @cissemy
    @cissemy2 жыл бұрын

    Thanks Patrick Can you make a video about Facebook authentication ?

  • @azgan123

    @azgan123

    2 жыл бұрын

    You can do facebook, google, etc with firebase.

  • @RajoyVuelvePorfa
    @RajoyVuelvePorfa Жыл бұрын

    Is everything here free? talking about all the google cloud part

  • @FUKYFILM
    @FUKYFILM Жыл бұрын

    Very good video, thanks a lot! Please, how do I add this functionality: I want to manage access, which logged user can actually use my web app (where I use google authentication)? I need to be manually able to select, which user has access to my app and which does not. The workflow will be this: User sign in for the first time into my web app and is able to use it for free. After a week, I will send him invoice, which if he will pay, I will let him use my web app for another year. If he will not pay, I will manually in some database or as admin - restrict access to that selected user. The only way he will be able to use my web app, is to pay me for the usage of int (like, rent it for a year - clasic SaaS subscription business model).- How am I able to do it using web app with built in google authenticatin, which is based on this video?

  • @laksithanayanajith5684
    @laksithanayanajith56842 жыл бұрын

    Need video for google auth for .net 6 web api

  • @PatrickGod

    @PatrickGod

    2 жыл бұрын

    Here you are: kzread.info/dash/bejne/pGeo29anqqbbfto.html

  • @surdz
    @surdz Жыл бұрын

    do ypunhave tutorial using web api

  • @deepwoodsengineering3763
    @deepwoodsengineering3763 Жыл бұрын

    Pretty ridiculous that I spent $85 on your Udemy course and you won't respond to anyone's questions, but you will on free KZread videos.