oidc.ms is the definitive resource for OpenID Connect — clear explanations, security best practices, and implementation guidance for authenticating humans, services, and AI agents the modern way.
OpenID Connect quietly authenticates billions of logins a day — yet it remains one of the most frequently misconfigured protocols in security. A single flawed redirect URI or unvalidated token can hand an attacker the keys to your application.
From protocol fundamentals to AI agent identity patterns — security-first guidance for every layer of modern authentication.
ID tokens, access tokens, claims, scopes, issuers, audiences — the building blocks of OIDC explained clearly, with diagrams of every major flow from Authorization Code + PKCE to client credentials.
The mistakes that turn OIDC into a vulnerability — open redirect URIs, missing state and nonce, weak token validation, implicit-flow leftovers — and exactly how to avoid each one.
Signature verification, issuer and audience checks, expiry and clock skew, key rotation via JWKS — the complete checklist for trusting a token without taking it on faith.
How the protocol is being extended to give AI agents verifiable identities: agent-issued tokens, scoped delegation, and the patterns emerging for agent-to-service and agent-to-agent authentication.
Hands-on walkthroughs for configuring OIDC correctly with Entra ID, Okta, Auth0, Google, and self-hosted options — highlighting each one's defaults and gotchas.
Annotated, security-reviewed example integrations you can study and adapt — instead of copying the first code snippet a search engine offers.
A structured path from conceptual understanding to a hardened implementation. Click any step to explore the details.
What OIDC adds on top of OAuth 2.0 and why ID tokens changed federated login.
oidc.conceptsPick the right flow for your scenario — web app, SPA, M2M, or AI agent.
flow.selectorProvider walkthroughs and reference implementations to build it correctly first time.
provider.guidesRun the security checklist: token validation, redirect hygiene, key rotation, session management.
security.checklistStart with the conceptual guides: what OpenID Connect adds on top of OAuth 2.0 and why the ID token was the piece that made federated login truly work.
Clear decision guidance for every use case — web app, SPA, native app, machine-to-machine, or AI agent. The wrong flow is a security misconfiguration, not just a technical choice.
Follow the provider-specific walkthroughs and annotated reference implementations. Build on security-reviewed patterns — not on the first code snippet a search returns.
A working OIDC integration is not a secure one until it's been through the full validation checklist. Security is in the validation, not the handshake.
Roll out SSO across your applications on correctly validated ID tokens — not on an integration that merely works until someone probes it. oidc.ms gives teams the knowledge to build SSO that's secure by default, not secure until proven otherwise.
Use the client credentials flow and scoped tokens to authenticate service-to-service calls — replacing long-lived API keys with short-lived, auditable credentials that can be revoked without a config change.
Issue agents their own OIDC identities with tightly scoped claims, so every agent call is attributable, revocable, and bounded by policy — not running under a shared service account that no one can audit.
Get it right, not just get it working. Annotated implementations and flow decision guides mean your integration is secure by design from the start.
Review OIDC implementations against a complete weakness taxonomy — every common misconfiguration documented with its precise impact and fix.
Design identity for applications, APIs, and agent ecosystems with the full protocol picture — including where OIDC ends and authorization policy begins.
Migrating off legacy authentication toward modern federation. Clear migration paths and before/after comparisons for every legacy pattern still running in production.
Which flow is right for your scenario — and which ones to retire today.
| Flow | Use Case | Client Secret | PKCE Required | Token in URL | Recommended |
|---|---|---|---|---|---|
| Auth Code + PKCE | Web, SPA, Mobile | Optional | Yes | No | ✓ 2026 Standard |
| Client Credentials | M2M / AI Agents | Yes | N/A | No | ✓ Recommended |
| Auth Code (legacy) | Server-side apps | Yes | Partial | No | Migrate to PKCE |
| Implicit | SPAs (legacy) | No | No | Yes | ✗ Retire Now |
| Hybrid | Server + SPA | Yes | Optional | Partial | Context-dependent |
| Device Code | CLI / TV / IoT | Optional | N/A | No | ✓ For device flows |
Every login, every API call, and increasingly every AI agent action passes through OpenID Connect. oidc.ms gives you the fluency to implement it securely — clear guides, hard-won best practices, and the patterns for authenticating the non-human workforce that's already arriving.