Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to use google login for asp.net webforms?


Asked by London Waller on Dec 14, 2021 ASP.NET



I have been searching the net for a solution to use a users google account for authentications on a asp.net webform application. All I want is that the user login to his google account and return to my webform application with display name, google ID and Email form there I will take care of the rest.
Thereof,
Fill the table with specific column names and their Datatypes and name this table as users and add them identity on Primary Key,as show you below image. Update the table before closing them. Now right click on solution and select Add than New item and select Web Form name it UserRegistration. Now Web Form has been created.
Next, Despite the fact Microsoft has moved their attention to ASP.NET MVC years ago, ASP.NET Web Forms is still very popular and there are many web apps using it. They needs to be maintained and extended with new features. Microsoft has been working on .NET Core lately, but there are not plans to bring Web Forms onto this new platform.
Likewise,
The login form has been implemented using ASP.Net controls and Forms Authentication. It also has the Remember Me CheckBox feature which allows user to save the credentials when he visits site next time. Complete source code is attached at the end of article.
Moreover,
So here is the step by step procedure of implementing Google Authentication in your MVC App: 1 .Create a new project in your Visual Studio (File-> New->Project->From web (Left pane)-> Select "Asp.Net Web Application" (right pane)) . c) Click on Change Authentication Button -> Select Individual User Accounts.