Today we’re excited to announce the availability of Stormpath-powered social login integrations for ASP.NET. With the Stormpath plugins for ASP.NET and ASP.NET Core, you can add social login with Facebook, Github, Google, and LinkedIn to your application – absolutely no code required!
I posted about social login in our .NET SDK a few months ago. Now, we’ve gone one step further and wired up the functionality in our SDK with our ASP.NET plugins – meaning even less plumbing code for you to write. How much less? How about zero…
Here’s how easy it is to get social login working in ASP.NET Core with Stormpath:
- If you don’t already have the Stormpath plugin installed in your application, follow the ASP.NET Core quickstart to get it installed. Make sure you update to the latest version of the
- Create a new application in the developer console of the provider you want to use, and copy the credentials (app ID and secret) generated for your application.
- Create a new Directory in Stormpath that contains the app credentials. Map the Directory to your Stormpath Application.
The Stormpath ASP.NET Core plugin will pick up the configured Directory and render the appropriate login button on the
/login route automatically. I don’t know about you, but that’s definitely the easiest social login integration I’ve ever set up!
We have a full set of documentation for Facebook, Github, Google, and LinkedIn, including screenshots, in the social login section of the Stormpath ASP.NET Core documentation. Try it out!
If you haven’t made the jump to ASP.NET Core yet, never fear. The Stormpath ASP.NET plugin also contains this ~~zero-code magic~~ functionality. Update to the latest version of the
Stormpath.AspNet package, and then add a Directory in Stormpath that’s mapped to your Application.
Voila! Instant social login buttons.
Of course, we also have a full set of documentation (plus screenshots) for Facebook, Github, Google, and LinkedIn, in the social login section of the Stormpath ASP.NET documentation.
It’s possible to implement social login flows in ASP.NET using Identity and the Microsoft social provider middleware packages. You may wonder: Why use Stormpath when these are already available? Building social login flows takes time, even with the pre-built middleware packages.
At Stormpath, we think developers should spend less time reinventing the wheel, and more time building things that support the core function of their application (and business). Never build auth again; let us handle the nitty-gritty details of authentication and authorization, while you get back to building your application. And now we’ll handle the social login, too.
Want to learn more? Check out these awesome resources: