Single Sign-On

Login with OIDC you own this product

This project is part of the liveProject series Federation and Single Sign-On with OpenID Connect
prerequisites
basic Node.js • basic HTML, specifically forms
skills learned
build an Express.js-powered web application • set and check sessions for users • protect application routes using middleware
Josh Cunningham
1 week · 6-8 hours per week · BEGINNER

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside

You’re the sole engineer for PrincipalStack, an online publication focused on teaching software engineering the right way. As part of the company’s efforts to engage new users, your job is to connect the newly built OpenID Connect server with the main web application. Using Node.js, you’ll register the new web application with the authorization server, install and configure an OpenID Connect library, implement login authorization with OAuth 2.0, and integrate the new OpenID Connect authentication with an existing set of users.

This project is designed for learning purposes and is not a complete, production-ready application or solution.

book resources

When you start your liveProject, you get full access to the following books for 90 days.

project author

Josh Cunningham

Josh Cunningham is a staff product engineer at Okta (formerly Auth0) leading a team of engineers to help partners build identity solutions. Previously, he led the onboarding program for new engineers and built open-source SDKs to help customers connect their applications to Auth0 using OpenID Connect, OAuth2, and SAML. Josh has been teaching and writing about technology for over two decades in various leadership, design, and engineering roles.

prerequisites

This liveProject is for intermediate JavaScript developers with some experience building or maintaining a web application using Node.js. To begin these liveProjects you’ll need to be familiar with the following:

TOOLS
  • Basic JavaScript (declare variables, use loops and branches, object and array destructuring, debugging, error handling, etc.)
  • Basic Node.js (including npm and Express.js)
  • Basic command line/terminal proficiency
  • Intermediate in-browser development tool use (such as network call tracing (including URL parameters and request headers) and cookie management)
  • Basic HTML, specifically forms

you will learn

In this liveProject, you’ll learn to implement login authorization with OAuth 2.0.

  • Install and configure packages using the Node Package Manager (npm)
  • Store and use environment variables to keep our secrets safe
  • Use OpenSSL to generate secure, random strings used to sign tokens and session data
  • Use a simple Node application framework called Express.js to create routes, add middleware, and handle user-facing views
  • Fetch and cache the metadata from an authorization server to find authorization, token, and logout endpoints
  • Integrate an OpenID Connect digital identity with an existing store of users
  • Set and check a session for a user
  • Protect application routes using an authorization middleware

features

Self-paced
You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Login with OIDC project for free