liveBook · Manning

Identity provider

As explained in Secure APIs

An identity provider is a service that authenticates identities and issues identity or authorization artifacts to relying clients.

An identity provider (IdP) manages user identities, authenticates users, and issues identity or authorization artifacts to client applications. OpenID Connect (OIDC) lets an application outsource login while receiving an ID token and, optionally, an access token. section 7.6

A typical OIDC integration works like this:

  • Register the relying-party application with the IdP. section 7.6
  • Redirect the user to the authorization endpoint with the client ID and openid scope. section 7.6 section 8.7
  • Receive an authorization code, exchange it for tokens, and validate access tokens on every request. section 8.7
  • Use discovery metadata and the JWKS endpoint to locate keys and verify token signatures; constrain the accepted signing algorithm. section 8.7

Logging in with an external identity

A website can let users sign in with Gmail or GitHub. The site redirects them to the provider, receives an ID token after consent, and may use an access token for authorized requests. section 7.6

Figure 7.14 OIDC allows applications to use OPs to manage their user identities securely. In this case, the application redirects the user to the OIDC server to log in and give consent, and it obtains an ID token and an access token in return.
figure

Follow the redirect, consent, and token exchange visually. section 7.6

How Secure APIs covers it

How deep it goes
Explains the OIDC flow and token-validation integration, including discovery, JWKS keys, claims, and signing algorithms.
Examples
Uses Gmail and GitHub login, authorization endpoints, discovery metadata, authorization codes, and JWKS key selection.
What it assumes
Assumes OAuth concepts and introduces the roles, redirects, consent, tokens, discovery, and key validation needed for OIDC integration.
What you can do after
Apply via OIDC to delegate login, obtain tokens, and validate protected API requests.
How it connects
Connects OpenID Connect with OAuth 2.0, JWT, authorization servers, relying parties, access tokens, and role-based access control.

Also explained in

Compare how 12 books explain identity provider →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secure APIs. The section links point to the parts of the book it draws on.