Last post Sep 04, 2018 02:51 AM by Yuki Tao
Aug 26, 2018 06:02 PM|liorgal100|LINK
I can see lots of articles regarding social networks login\signin.
What i cant figure out is what identification does the social network return to the calling web site.
If I want the social login to replace my user name + password login i need it to return an identifier for the user that i can keep in my users table and use to login the user
from now on
is that correct ?
Aug 27, 2018 10:01 AM|Yuki Tao|LINK
You could refer to:
From the Google APIs API Manager, visit the Credentials tab to obtain the Client ID. Download to save a JSON file with application secrets. Copy and paste the ClientId and ClientSecret into
the UseGoogleAuthentication method found in the Startup.Auth.cs file in the App_Start folder.
public void ConfigureAuth(IAppBuilder app)
// Configure the db context and user manager to use a single instance per request
// Enable the application to use a cookie to store information for the signed in user
// and to use a cookie to temporarily store information about a user logging in with a third party login provider
// Configure the sign in cookie
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
Provider = new CookieAuthenticationProvider
OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
// Uncomment the following lines to enable logging in with third party login providers
// clientId: "",
// clientSecret: "");
// consumerKey: "",
// consumerSecret: "");
// appId: "",
// appSecret: "");
Aug 27, 2018 10:25 AM|liorgal100|LINK
This links are using MVC + Owin and i need example for a simple asp.net web application
Sep 04, 2018 02:51 AM|Yuki Tao|LINK
From ASP.NET Site,
"ASP.NET authentication is now based on OWIN middleware that can be used on any OWIN-based host. ASP.NET Identity does not have any dependency on System.Web. It is a fully compliant OWIN framework and can be used in any OWIN hosted application. ASP.NET Identity
uses OWIN Authentication for log-in/log-out of users in the web site. This means that instead of using FormsAuthentication to generate the cookie, the application uses OWIN CookieAuthentication to do that."
So you cannot use ASP.NET Identity without Owin, also, your app should not be self-hosted you can still use the IIS with OWIN configured, i suggest to dig deeper into the ASP.NET OWIN.