Author : MD TAREQ HASSAN | Updated : 2020/05/31

What is OpenID Connect?

Notes:

Problems with OAuth 2.0 for authentication

What OpenID Connect adds

OpenID Connect adds the following on top of OAuth 2.0

OpenID Connect is a simple identity layer built on top of the OAuth 2.0 protocol, which allows clients to verify the identity of an end user based on the authentication performed by an authorization server or identity provider (IdP), as well as to obtain basic profile information about the end user in an interoperable and REST-like manner. OpenID Connect specifies a RESTful HTTP API, using JSON as a data format.

OAuth2 vs OpenID Connect

OAuth2 and OpenID Connect

OAuth2 vs OpenID Connect

Use OAuth 2.0 for:

Use OpenID Connect for:

Flow

Coutesy: https://andrewlock.net/an-introduction-to-openid-connect-in-asp-net-core/

OpenID Connect Flow

Overview

OpenID Connect overview Step 1

OpenID Connect overview Step 2

OpenID Connect overview Step 3

OpenID Connect overview Step 4

OpenID Connect overview Step 5

OpenID Connect overview Step 6

OpenID Connect overview Step 7

OpenID Connect authorization code flow

Courtesy: that-2019-oauth-and-oidc by dogeared

OpenID Connect Authorization Code Flow Step 1

OpenID Connect Authorization Code Flow Step 2

OpenID Connect Authorization Code Flow Step 3

OpenID Connect Authorization Code Flow Step 4

OpenID Connect Authorization Code Flow Step 5

OpenID Connect Authorization Code Flow Step 6

OpenID Connect Authorization Code Flow Step 7