C# ASP.NET MVC Authentication - Logging in locally or with OAuth (using Twitter) credentials

Share
Embed
  • Published on Feb 9, 2018
  • Newsletter signup (with exclusive discounts): signup.iamtimcorey.com/ (your email will be kept safe and you will not be spammed).
    Twitter App Signup: apps.twitter.com
    Twitter Certificate Fix: stackoverflow.com/questions/25011890/owin-twitter-login-the-remote-certificate-is-invalid-according-to-the-validati
    Setting up an ASP.NET MVC site to allow people to log in is not that hard. In this video, I demonstrate how you can set up a login system for users, how you can upgrade that system to include Twitter authentication (using OAuth), and then how you can lock down your site to only allow certain people access to certain areas. We will create security groups and lock things down even further.

Comments • 266

  • Chenting zhu
    Chenting zhu Day ago

    Hi, Tim. Your video is really helpful. I added the twitter login on my website successfully. However, after I logged in with one twitter account, I will log in automatically if I click the twitter button later. Is there any way that I can log in with another twitter account? Thanks.

    • IAmTimCorey
      IAmTimCorey  Day ago

      You have to log out in order to log in with another account.

  • UltimatePiccolo
    UltimatePiccolo 9 days ago

    Hey Tim, I updated to bootstrap 3.3.7, but my navigation bar still looks wonky. It didn't change like yours did.

    • IAmTimCorey
      IAmTimCorey  8 days ago

      Great!

    • UltimatePiccolo
      UltimatePiccolo 9 days ago

      Nevermind, deleting my project and making a new one seemed to solve the problem.

  • Worth it?
    Worth it? 17 days ago

    hi tim after getting a login from twitter can you please tell me how to get user feeds? and please can you reply asap thanks

    • IAmTimCorey
      IAmTimCorey  16 days ago

      We are using Twitter to identify ourselves. We are not logging into Twitter really. We aren’t giving the application those privileges.

  • bench squad
    bench squad 21 day ago

    Can anyone point me to a tutorial on setting up Microsoft sign in on a .NET Core 2.2 app? The documentation is confusing to me and I'm lost on how to get it all set up. I want to add it to an existing web app currently using JWT tokens for authentication. I tried chaining on .AddMicrosoftAccount to services.AddAuthentication and setting a client id and secret along with the redirect Url to my localhost through Azure, but on loading the app I don't see a button to sign in with Microsoft. It seems like starting a fresh project might be easier, but I'm not sure how to add this to an existing project (that may not be using Identity?). If anyone can help or offer a suggestion I'd appreciate it.

    • bench squad
      bench squad 19 days ago

      ​@IAmTimCorey Thanks Tim, I'll check it out. Wish I could find a good example of setting all of this up with separate front and back end projects.

    • IAmTimCorey
      IAmTimCorey  20 days ago +1

      Yes, you will need to create the button on your front-end for React. You can look at my TimCo Retail Manager series for a close equivalent of what to call (I am calling it from WPF but the principle is the same and the endpoints are the same).

    • bench squad
      bench squad 21 day ago

      Specifically I have a front end in React, and I'm not sure if I need to create a button for microsoft login, and if so, what endpoint to hit on submit, and what to do in the controller on that endpoint.

  • Jacob Lin
    Jacob Lin 22 days ago

    Hi Tim, could you provide source code for this topic ? Thank you very much.

    • IAmTimCorey
      IAmTimCorey  22 days ago

      Unfortunately, I don't know where that source code is. Sorry.

  • Mortaza Kamal Nourestani

    This guy is trying to drag it as much as you can so he could run more ads... Dude you don't have to repeat yourself 10 times just try to move forward if people don't know how to create a solution or project then they should not watch this at all

    • James T
      James T 23 days ago

      Thanks Tim. I like your explanation in details.

    • Barrosy
      Barrosy 28 days ago +2

      @IAmTimCorey Hi Tim, don't worry about this guy. Your explanation is very clear and repeating things is not a bad thing. To make things clear and showing examples is the best thing you could have done. Hats to you. Cheers for showing this. Only thing I was looking for is OAuth but this is very helpful to people who are not entirely aware of alternative ways of authentication and authorization within ASP.Net MVC.

      Also I would like to know how to publish my ASP.Net MVC app (for testing purpose) to my remote server (using Windows RDP feature). I believe I require IIS to make this work but I am not entirely sure how. I already have a Domain Name ready (which I currently use for a PHP app through FTP).

    • IAmTimCorey
      IAmTimCorey  Month ago +10

      Few things here. First, I don't run mid-video ads so the size of the video is actually detrimental to me, not a benefit. TheXvid looks at percentage watched on videos. The fact that I have a long video means I actually hurt that percentage since watching for the first minute is only about 1.5% of the video whereas if the video was 5 minutes, that would be 20% and be seen as more favorable by TheXvid. Second, teaching isn't about saying something once. You need to emphasize what is important. I try to give context around what I am teaching because the real world isn't a tutorial. You need the context to know how to plug something into a solution. Third, you aren't the gatekeeper of who gets to watch my videos. Don't be that person.

  • Andrew
    Andrew Month ago

    Hey. Is there a way to change the navbar to the older version or any other alternatives than to downgrade?

    • IAmTimCorey
      IAmTimCorey  Month ago

      Do you mean change it to a different version of Bootstrap? The navbar is just HTML so you can change it however you want. Changing Bootstrap versions is also possible, although there is more to change since all of the pages are laid out using Bootstrap 3.

  • Luel John Diaz
    Luel John Diaz Month ago

    error when I set the password '"P@ssw0rd" in log in, please help me

    • Luel John Diaz
      Luel John Diaz Month ago

      but there is no problem when i try another password like 12345678

    • Luel John Diaz
      Luel John Diaz Month ago

      @IAmTimCorey I tried both register & login
      but when i click the login or register button with P@ssword, the browser is just loading and not went to [httpPost] request

    • IAmTimCorey
      IAmTimCorey  Month ago

      Not sure how to help. Are you trying to make that the password of a new account? Are you trying to log in with that password? What is the error?

  • Inimitable MisterG
    Inimitable MisterG Month ago

    RequireNonLetterOrDigit means Require Non(letter or Digit) or require something other than an alphanumeric character (So, a special character).

    • IAmTimCorey
      IAmTimCorey  Month ago

      Yep, you are right. Drew a blank when looking at it.

  • ph ss
    ph ss 2 months ago

    I keep getting "403 (Forbidden)"
    Any idea guys?

    • Brandon Fabian
      Brandon Fabian Month ago

      For my callback URL I found this stackoverflow reference when getting a 403 after hitting the twitter button on my demo. "The default url is /signin-twitter So in my case i had to configure localhost:44378/signin-twitter as one of the callback urls in the twitter app portal"
      references
      stackoverflow.com/questions/51168020/twitter-external-login-with-owin-gives-http-403-forbidden-on-callback

    • IAmTimCorey
      IAmTimCorey  2 months ago

      Silly idea but are you sure you have your username and password typed correctly?

  • Dương Nguyễn
    Dương Nguyễn 2 months ago

    helpful for me and could you give me the project in your video, please !!!

    • Dương Nguyễn
      Dương Nguyễn 2 months ago

      @IAmTimCorey i got it :))

    • IAmTimCorey
      IAmTimCorey  2 months ago +1

      I'm sorry, I don't have the source code but I create everything on screen so if you follow along, you will end up with the source code.

  • Govind Saini
    Govind Saini 2 months ago

    Hi tim.. Please make a video, regarding integrate key validation system for window application wpf.. Plz

    • IAmTimCorey
      IAmTimCorey  2 months ago

      I am not sure what you are referring to. Do you mean having WPF authenticate against this provider? Because that is what the WPF app in the TimCo Retail Manager system does.

  • Chris Petraskie
    Chris Petraskie 3 months ago

    Hi! Could you possibly point me in any direction of how I could implement this with discord?

    • IAmTimCorey
      IAmTimCorey  3 months ago

      Sorry, I don't have any experience doing that. I would look at their documentation to see if they allow this and how it would work.

  • Jaspreet Sidhu
    Jaspreet Sidhu 3 months ago +2

    Hi Tim,Thanks for this video,however i am just curious to know how [Authorize] works behind the scene.How it gets to know the user details and token and authorize the user..
    It would really be helpful if you could provide me any pointers .

    • IAmTimCorey
      IAmTimCorey  3 months ago +1

      It uses the header token and converts that over to identify the user. From there, it figures out if you have access privileges or not.

  • DamagedSoul BrokenHeart
    DamagedSoul BrokenHeart 3 months ago +1

    Learned alot from this thanks !

  • See for Codes
    See for Codes 3 months ago

    Sir please upload a series of identity framework from scratch with user customisation..
    Please sir

    • IAmTimCorey
      IAmTimCorey  3 months ago

      I am using authorization in the TimCo Retail Manager series. That will include customization and authorization.

  • Micah hoffmann
    Micah hoffmann 4 months ago

    How do you handle managing Startup.Auth.cs in Git? You don't want to be sharing your keys?!

    • Micah hoffmann
      Micah hoffmann 3 months ago

      @IAmTimCorey Great thank you Tim.

    • IAmTimCorey
      IAmTimCorey  3 months ago +1

      You mean if we enable Twitter/Facebook/etc. authentication and had secret keys? We would not store them here in a production app. Instead, we could store them in our web.Release.config file and not check that file into source control. That would be if we are doing the publish from our local machine. Another option is to store those values in a config file on our deployment server and then do a config merge on deployment. We could also store them in Azure Key Vault and pull from there directly. That's the recommended practice for .NET Core web apps.

  • Gaming Hub
    Gaming Hub 4 months ago

    is this also a Oauth2.0 ? or it only applies in asp web api ?

  • Richie
    Richie 4 months ago

    How do you go about restricting the data seen on a page based on the logged in user? Example, user1 should see items a, b, c on the page and user2 should see items d, e, f

    • IAmTimCorey
      IAmTimCorey  4 months ago

      You do that in the queries based upon the UserId of the logged in user. We will be doing that shortly in the TimCo Retail Manager Series.

  • G-tronics
    G-tronics 4 months ago

    👌really simple as 123

    • G-tronics
      G-tronics 4 months ago

      Yeah man i think after 3 months i will join your courses. My problem right now my Bank account is suspended for some reason. Because i am new to mvc i dnt wanna keep asking. I have projects i am building already doing trial and error but i just want to be an expert in web development like you😊. Now i am struggling with creating responsive sidebar navigation (which can open and close ) with mvc. I searched the net it seems one of the abandoned topics.

    • IAmTimCorey
      IAmTimCorey  4 months ago +2

      Glad you found it simple.

  • Craig W
    Craig W 4 months ago +1

    Thanks for making these tutorials! Fantastic content

  • Mohamed Abd Elrahman
    Mohamed Abd Elrahman 4 months ago

    WOW , really very good explaination

  • Ares Dragoj
    Ares Dragoj 4 months ago +1

    Upon creating the twitter app
    Website URL accepts neither localhost nor 127.0.0.1

    • IAmTimCorey
      IAmTimCorey  4 months ago +2

      Twitter has changed things around since this video. It looks like they really want a public URL. You can use localtest.me as the solution for non-production apps: readme.localtest.me/ There are also some other suggestions in the comments as well.

  • tonyfearn
    tonyfearn 5 months ago

    Hi Tim, great tutorial. I followed it to learn the way authentication works in .net, but I have been trying to locate where the register details are saved to the database. I indent to create a similar project but do not want the local DB. I want to create a code first app with a user model to create the DB table. Could you point me in the right direction, or do I need to go about it in a different way?

    • IAmTimCorey
      IAmTimCorey  5 months ago +1

      Not sure what you mean by register details. The user information is stored in the AspNetUsers table. Personally, I don't mess with that table though. Instead, I add a separate database and put my data there. That keeps the authentication system separate from the data (easier to keep logins separate for the two plus easier for other security reasons). If you look at how I did it for the TimCo Retail Manager series, you will see me set up the two and then "link" them by using the userId from the authentication system to identify the user in the other database.

  • ryotgr
    ryotgr 5 months ago +1

    Hi Tim, followed your guide verbatim and after setting up Twitter, (on localhost), am getting a gnarly "Response status code does not indicate success: 403 (Forbidden)." A lot of reading says it may relate to callback urls, but I tried a dozen and am not sure what else to try. I used the same steps in the guide, nothing different! Anyone else have this issue?

    • William Ting
      William Ting 4 days ago

      @Jason Uronis thank you Jason this fixed the issue I had as well

    • Zaki
      Zaki 2 months ago +1

      @Jason Uronis Thanks you saved my day .... 😊😊

    • Micah hoffmann
      Micah hoffmann 3 months ago +1

      @Jason Uronis this is my solution, which is weird because twitter tells you to use 127.0.0.1

    • Jason Uronis
      Jason Uronis 5 months ago +3

      @ryotgr I ran into this today myself...in apps.twitter.com your callback URL should be localhost:[your port number]/signin-twitter

    • IAmTimCorey
      IAmTimCorey  5 months ago

      Twitter has changed things around since this video. It looks like they really want a public URL. You can use localtest.me as the solution for non-production apps: readme.localtest.me/

  • tired old programmer
    tired old programmer 5 months ago

    I am playing with VS 2019 and tried to create authentication for my web site. Unfortunately, your video (very good by the way) only deals with VS 2017. It would seem that VS 2019 has buried everything. Ideas where to look? or are you going to create a new/revised video for VS 2019.

    • Joe Mieszczur
      Joe Mieszczur 4 months ago

      Also throwing this out there: I had an issue when following these videos I couldn't find some of the project templates. Little did I notice: I was using .Net Framework 4 as the default option. Seems VS added some updates to some of the UI elements since this video. once set to the same version used in the video series @ 3:45 you can see its 4.6.1... all the templates are right there. Not sure if this is your same issue.

    • IAmTimCorey
      IAmTimCorey  5 months ago +1

      VS 2019 has the same templates as VS 2017. How you create them will be a bit different but it should work the same way. If you create an ASP.NET Core version then things will be different. In my Getting Started with .NET Core course, I covered what ASP.NET Core looks like and how to work with it.

  • MegasXLR
    MegasXLR 6 months ago

    Hello, I get "Response status code does not indicate success: 401 (Authorization Required)." when I click on the Twitter login button. Both sites in the apps.twitter.com app are real websites. What could be the problem? Also, do you have a tutorial on enabling email verification by using the built-in things that MVC makes for us. I know there are Email & SMS verifications but not sure how to use them after a person has registered.

    • IAmTimCorey
      IAmTimCorey  6 months ago

      This thread might help (there are a lot of possible reasons for a 401): twittercommunity.com/t/error-401-unauthorized/367
      As for configuring email and SMS verification, not yet I don't.

  • MegasXLR
    MegasXLR 6 months ago

    "I'm not sure why I'm a 'We' today" XD

    • IAmTimCorey
      IAmTimCorey  6 months ago

      Every once in a while my royalty slips out.

  • Antonio Comique
    Antonio Comique 6 months ago

    Hi, can I use this login technique with google, and after the user login to google, I need to use the credential to list the user's projects from the google cloud? thank you.. :)

    • Antonio Comique
      Antonio Comique 6 months ago

      @IAmTimCorey Thank you Tim.

    • IAmTimCorey
      IAmTimCorey  6 months ago

      That's not really what this is doing. That would be working with the Google API.

  • bryan smith
    bryan smith 6 months ago

    How do you forward the user login information to an external SQL database?

    • IAmTimCorey
      IAmTimCorey  6 months ago

      Not sure I'm following. You can use any database for your authentication DB. Just change the connection string to point to a remote database and you are all set.

  • ghizlane khattari
    ghizlane khattari 6 months ago

    I like your effort thank you
    Please if you have any cours of MVc share with us coz i have once project i choice MVC coz i think is vert performent really?

    • IAmTimCorey
      IAmTimCorey  6 months ago

      I have an add-on course for my C# Application from Start to Finish course that just replaces the WinForms user interface with ASP.NET MVC: www.iamtimcorey.com/p/tournament-tracker-add-on-asp-net-mvc-user-interface

  • hq cart
    hq cart 6 months ago

    Hello tim, Awesome tutorial, Thank you.
    I have a question about cookies and how to set its expiration date?

    • IAmTimCorey
      IAmTimCorey  6 months ago

      I believe this should help: stackoverflow.com/questions/33701398/oauth2-webapi-token-expiration

  • Faraz Siddique
    Faraz Siddique 6 months ago

    basically my database is show in server explorer, is it any problem if i used that database?

    • IAmTimCorey
      IAmTimCorey  6 months ago

      Not for development, no. You might want to look at a full SQL database when you go to production though.

  • Alexander Her
    Alexander Her 6 months ago

    the password is salted before hashed

  • Jesus Fonseca
    Jesus Fonseca 7 months ago

    This is only if u can't see the DB in localDB, do this, register a new user and that's it kkkkk

    • IAmTimCorey
      IAmTimCorey  7 months ago

      Yep. You can also manually trigger a database update in EF but I find that to be more difficult than just registering a user.

  • Demir Çelebi
    Demir Çelebi 7 months ago +2

    I wish someone to explain Authentication middleware in detail. What is Authenticaion Type? How does it work regarding cookie based authentication ?

    • Demir Çelebi
      Demir Çelebi 7 months ago +1

      @IAmTimCoreyThanks for your attention Tim. I'd be so thankfull to you if you take your time to pick up on it. I have really had a hard times to understand how this middleware and its properties behave after each request.

    • IAmTimCorey
      IAmTimCorey  7 months ago +2

      Sounds like a good in-depth video. I'll add it to the suggestion list.

  • Claus Eksing
    Claus Eksing 7 months ago

    Hi Tim - Great Introduction

  • Mike Munoz
    Mike Munoz 8 months ago +1

    Great stuff...

  • Amerco
    Amerco 8 months ago +1

    Great video
    Can you make. Video about how to add the standard login to an existing mvc projekt and define grouped roles/users.

    • IAmTimCorey
      IAmTimCorey  8 months ago +1

      That is a messy process. They didn't design it as a modular piece so what you would have to do is create a new project with authentication and then copy the files and modifications into your existing project.

  • Ali Makhmali
    Ali Makhmali 9 months ago

    Great work. I am preparing for Microsoft 70-486 exam. Any hints on what videos are must-watch? And books perhaps? Thanks.

    • IAmTimCorey
      IAmTimCorey  8 months ago

      I don't have any exam-focused content but anything I've done with MVC will help. I do have an add-on course that uses ASP.NET MVC at www.iamtimcorey.com that might help you out. It is an add-on to the main C# Application from Start to Finish course, though, so the add-on only covers MVC, not the business logic or data access since they are already covered in the previous course.

  • Sa nG
    Sa nG 9 months ago

    My company has Web/WPF/Mobile applications and we are planning to implement Oauth 2.0 (Okta) authentication. I see lot of examples on how to implement oauth on web and mobile applications but I do not find any examples/tutorials on implementing oauth on WPF applications. Can you suggest something for WPF application ?

    • IAmTimCorey
      IAmTimCorey  9 months ago

      I don't have any resources for that yet, but I'm planning on hooking up a WPF app to a WebAPI that has authentication on it in my TimCo Retail Manager course that I'm releasing on TheXvid. It just isn't that far along yet.

  • Martin Goodrich
    Martin Goodrich 9 months ago

    A most enjoyable tutorial. Thank you very much. Is there a possibility that you could do a similar tutorial for authentication with Microsoft Office365?

    • IAmTimCorey
      IAmTimCorey  9 months ago

      I will add it to the list. Thanks for the suggestion.

  • Ayman Mohamed
    Ayman Mohamed 9 months ago +1

    Another awesome tutorial, thank you so much for your efforts Mr.Tim :)

  • Bluer Gost
    Bluer Gost 9 months ago

    I saw lot of video but every one of them just cover the same topics and this one was no difference. I wish someone would cover the advance things rather than saying there are lot of things that could be done.

    • Bluer Gost
      Bluer Gost 9 months ago

      I will be looking forward to it and hope it covers the professional practices of building a software using ASP MVC. Good luck to you :)

    • IAmTimCorey
      IAmTimCorey  9 months ago +2

      There is only so much an intro can cover without being an entire course. However, stay tuned as I'll be setting up a WebAPI project with authentication for my upcoming course here on TheXvid (launching this Monday). That will go into practical use for authentication (permission levels, passing credentials, using tokens, etc.)

  • yogesh vaidya
    yogesh vaidya 10 months ago

    its too long but very useful and informative tutorial ,yo did just simply grate works , i request you to give email verification tutorial ,
    thanks

  • Karl Essinger
    Karl Essinger 10 months ago

    Hey, it seems if I add the authentication system when making a webapi based project there is no register or login button on the sample page. Is there some guide on how to use it with a webapi project?

    • Eng.Mohammed Salah
      Eng.Mohammed Salah 9 months ago

      @Michael Eichner
      Login over APi: u just send username &password inside header as ajax calling by jquery or angular
      then server side as api check the user and password and then create something called acccessToken some encrypted string saved inside database with expired dateTime and sent back to user to say hey u are login success and client side sent this access token inside header with every request to server and server take this accessToken and search it inside db and know that its not expired and user is login and so on ....

    • Michael Eichner
      Michael Eichner 10 months ago

      IAmTimCorey Karl has hit on a question that’s been puzzling me. How does the front end whether it’s using ASP.NET MVC or a JavaScript front end pass that login token in the API Call? How does the backend know that the front end has logged in?
      Thanks

    • IAmTimCorey
      IAmTimCorey  10 months ago

      WebAPI is trickier because there isn't a focus on the UI (because it is about the API calls). You will need to create your own front-end and then use the token with all future API calls.

  • joseph quesada
    joseph quesada 10 months ago

    Thank you so much!! You explained it amazing

  • Aranan Eyie
    Aranan Eyie 10 months ago

    Hi @IAmTimCorey, I notice that once we get into twitter signup page, it asks us to have/create a developer account? Did you have to do that too or is this a new step that Twitter has just created since your video was published early this year. Thanks.

    • IAmTimCorey
      IAmTimCorey  10 months ago +1

      Not sure but if Twitter says you have to do it, go for it. It is probably just a conversion of your existing account to allow for more features.

  • COMMANDER
    COMMANDER 10 months ago +1

    hi please add 2factor method to your list too ,that would be helpful

    • IAmTimCorey
      IAmTimCorey  10 months ago +1

      I'll see what I can do. Thanks for the suggestion.

  • Gareth Doherty
    Gareth Doherty 10 months ago

    Because of your 'Connecting to SQL video' I am a Dapper convert and never want to touch EF. Is this the only instance on which you would have EF installed into your app? Are there no other MVC type authentications which don't involve EF?

    • Gareth Doherty
      Gareth Doherty 10 months ago

      @IAmTimCorey Thanks Tim.

    • IAmTimCorey
      IAmTimCorey  10 months ago +1

      Pretty much this is the only place I use EF. As for authentication systems that don't use EF, not that I have found that aren't also very complicated.

  • mudit mathur
    mudit mathur 10 months ago

    Can you make a video about authentication without using Identity

    • mudit mathur
      mudit mathur 10 months ago

      How about using OWIN authentication with oauth as identity looks too complex to me

    • IAmTimCorey
      IAmTimCorey  10 months ago

      That's a slippery slope. Are you anticipating home-grown authentication?

  • António A
    António A 10 months ago

    I'm having this error when trying to access twitter login: "No connection could be made because the target machine actively refused it". Already tried the SSL=True and looked for answers online found nothing relevant...

    • IAmTimCorey
      IAmTimCorey  10 months ago

      Maybe try the localhost IP address (127.0.0.1)

    • António A
      António A 10 months ago

      @IAmTimCorey Nice video tho :)

    • António A
      António A 10 months ago

      @IAmTimCorey I guess that is it and I tried several ways: localhost, localhost:(whatever my port is), localhost:port/signin-twitter, none worked

    • IAmTimCorey
      IAmTimCorey  10 months ago

      It sounds like your callback URL is incorrect.

  • prince fold
    prince fold 10 months ago

    You didn't do the .Net Core part

    • prince fold
      prince fold 10 months ago

      @IAmTimCorey Okay, Great, Thanks

    • IAmTimCorey
      IAmTimCorey  10 months ago

      .NET Core is coming in a future video. Trying to cover authentication for both MVC and .NET Core in one video just doesn't make sense. They are different enough to be confusing but similar enough to cause problems.

  • Sanjiv Sabeswaran
    Sanjiv Sabeswaran 11 months ago

    wow!! thank you for sharing your knowledge!
    i have experience in c# windows form application development. now i have started also the ASP MVC. This video helped me to increase my knowledge. But i have a problem. i have already developed a mvc project. how can i add this user Authentication in exist project(which is none user Authentication)??

    • IAmTimCorey
      IAmTimCorey  11 months ago

      Hmm, I think there is a way to do this elegantly but I'm not sure how to do it. Maybe create a new demo project with authentication and then transfer the code over.

  • Andrew O'Regan
    Andrew O'Regan 11 months ago

    On the Twitter set up - on the Website URL all i get is 'Invalid website url'
    I have tried 127.0.0.1/ and 127.0.0.1:8080/ and 127.0.0.1:53243/
    but not getting any nearer - any ideas

    • IAmTimCorey
      IAmTimCorey  11 months ago +1

      You could try https. If that does not work, try a URL shortener (like bit.ly) to shorten your url (with the port number) and use the resulting bit.ly link.

  • WantOxide
    WantOxide 11 months ago

    For anyone watching: The first 35 minutes of the video could be resumed in 5 minutes.

  • WantOxide
    WantOxide 11 months ago

    I will explain you how it works > 19:00 by large you can leave this as it is and just works
    Wow, awesome explanation

  • Moroccan Jockey
    Moroccan Jockey 11 months ago

    How would one use authorization in say, a wpf application? Is that possible?

    • IAmTimCorey
      IAmTimCorey  11 months ago

      Yes it is. With authorization, typically you get a token that you then put in the header of all future calls to indicate who you are. You would just store that token and send it on any API call you make from your WPF application (or JavaScript application or Console app, etc.) I'll be doing a video on that in the future.

  • Max Bertram
    Max Bertram 11 months ago +1

    Hey Tim, I really appreciate your tutorial! Nevertheless since Twitter changed to developer.twitter.com I fail to login to Twitter. Could you maybe give some update on that? To be more precise I get an error 403 (Forbidden) after clicking the Twitter button. As far as I investigated there is some issue with the Callback URL, which I have to use when I create a new app at developer.twitter.com.

    • Eremia Laurentiu
      Eremia Laurentiu 6 months ago

      @IAmTimCorey I have the same issue as him, searched on the internet and nothing found yet

    • IAmTimCorey
      IAmTimCorey  11 months ago

      There are a number of reasons you might get a 403 error. You might be using http instead of https. Your callback URL might be incorrect. Try using 127.0.0.1 for your callback. You can also Google your specific error code to see what answers come back.

  • Joe Beauchamp
    Joe Beauchamp 11 months ago

    Tim, would it be possible to use Dapper to connect to SQL Azure in this scenario? I assume it would be possible, just wondering if it would be a good way to go. Any Dapper related videos planned?

    • IAmTimCorey
      IAmTimCorey  11 months ago

      Yes, Dapper can connect to SQL Azure. You just need to change the connection string. Everything else is the same compared to on-premises SQL. As for more Dapper videos, yep, they are coming.