Duende IdentityServer integration with Facebook, Google, Microsoft, GitHub, and Twitter

Fuji Nguyen
Scrum and Coke
Published in
7 min readNov 21, 2022

--

Introduction

Recently, I worked on a project to integrate external authentication providers such as Facebook, Google, Microsoft, Github, and Twitter into the Duende IdentityServer. This solution enables login to the application using accounts from popular social media platforms. See Figure 1 for an example of external login options.

Figure 1— Local and External Login

In this story, I will go over the C# code that enables external authentication providers. It is easier than you may think. The complete working source code is available on GitHub. A complimentary screencast is provided as well.

Architecture Overview

Modern applications typically consist of three major components (see Figure 2 for visual aids)

  1. Clients — apps such as web, mobile, console
  2. Api Resources — the REST API resources that provide data to Clients
  3. Token Service — the security components that issue/validate JWT

--

--

Scrum and Coke
Scrum and Coke

Published in Scrum and Coke

Tools and Techniques for Agile Transformation. Promote and Highlight Outstanding Opensource Projects

Fuji Nguyen
Fuji Nguyen

Written by Fuji Nguyen

DX Advocate, Open Source Contributor improving dev experience. Pickleball enthusiast who enjoys playing and coaching, sharing skills on and off the court.