parkopk.blogg.se

Slack login with google
Slack login with google










In the Startup.cs class, add basic authentication in the ConfigureServices method as shown below. In my examples, I am using ASP.NET Core 2.1. If you don't have an ASP.NET Core project handy, feel free to create one. Prepare and Enable Authentication in ASP.NET Core StackOverflow also has a good explanation. If you would like to read more about OAuth, Digital Ocean has a good introduction to OAuth 2. The benefit of this is that the user can use their existing username and password, with for instance Google, and you don't have to handle or process their password. Once successfully authorized, the provider will redirect back to your app with an access token and that will be exchanged with an authorization token. Providers such as Google, Facebook, Twitter are popular examples. On a very high-level, OAuth is an open and agreed standard or workflow where it allows delegation of authorization to a provider. Quick intro to OAuthįeel free to skip this section if you are familiar with OAuth and just want to get integrating. But, I will be going through how to integrate GitHub, Google and Slack as examples.įor demonstration purposes, I have omitted general good practices such as putting settings in config etc to avoid confusion and to make things clearer.įull source code can be found in my GitHub repository. I'm not going to go into depth of what OAuth is, which is the underlying standard which makes it all possible.

slack login with google

In this post, I will describe how to use ASP.NET Core and with the help of a very helpful library provided by ASPNET Contrib and the many people who have contributed to the project to enable integration with popular social logins.

slack login with google

With the addition of ASPNET Contrib one can incorporate other various social logins such as Slack, BitBucket and more with a few lines of code.

slack login with google

With the introduction of ASP.NET Core 2.X, it already comes bundled with Google, Twiter and Facebook authentication. If the potential customer or user has the social login that you support, the more likely they will try the product or service. The main benefit of this is that it lowers the barrier of entry for people registering to use your product or service. It's especially great if you can incorporate them into your own applications. It also reduces the friction of signing up. This is great, as its one less sign up and login you have to remember. I'm sure you have come across web and mobile applications where they offer social logins such as Google, Facebook, Twitter and many more.












Slack login with google