liveBook · Manning

Client id

As explained in Secure APIs

An identifier that distinguishes an OAuth client application to an authorization server.

A client ID is a unique identifier that tells an OAuth authorization server which application is requesting access. It identifies the client, but unlike a client secret, it is not treated as highly sensitive. section 7.4.1

In the authorization code flow, the client ID appears in the authorization URL. The authorization server binds the returned authorization code to that ID, and the client later supplies its secret when exchanging the code for an access token. section 7.4.1

The same identifier supports different OAuth interaction patterns:

  • A web application sends it with parameters such as redirect_uri and response_type=code. section 7.4.1
  • A smart TV or other input-constrained device includes it when requesting device and end-user codes, then uses it while polling. section 7.4.4
https://auth.example.com/authorize?response_type=code
&client_id=s6BhdRkqt3&redirect_uri=https://example.com

Inspect the client ID in a concrete OAuth authorization URL. section 7.4.1

How Secure APIs covers it

How deep it goes
Explains the identifier’s role in authorization URLs, authorization-code binding, token exchange, and device-flow polling.
Examples
Uses a job portal’s LinkedIn authorization URL and a smart TV’s device authorization request as concrete examples.
What it assumes
Assumes basic OAuth roles such as client, resource owner, authorization server, and access token.
What you can do after
Operate/configure OAuth authorization requests by supplying the registered client ID and distinguishing it from the client secret.
How it connects
Connects client IDs with OAuth, authorization servers, redirect URIs, authorization codes, client secrets, access tokens, and device authorization flow.

Also explained in

Compare how 2 books explain client id →

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.