Specialist topics
Deeper electives for people who already know the core: PKI operations, advanced OAuth and OpenID Connect, workload and agent identities, enterprise directories, and verifiable credentials and wallets.
Start with Issuing, renewing, and revoking certificates
PKI operations
Running certificates in practice: requesting them, proving control of a name, automating renewal, and revoking and replacing them after a key is exposed. The certificate basics are in Credentials and keys.
- Issuing, renewing, and revoking certificatesRequest a certificate, prove control of a domain name, automate renewal before expiry, and revoke and replace a certificate after a key is exposed.
Advanced OAuth
OAuth extensions for higher-security and larger deployments, grouped by the problem they solve. Assumes the core OAuth lessons.
- Pushing an authorization requestSee why a browser-carried authorization request can be read, changed or forged, then push it straight to the PAR endpoint with client authentication and read the request URI it returns.
- Using the request URI and handling failuresSend the browser with only a client ID and a single-use request URI, handle errors from the push and the authorization endpoint, and require PAR so the ordinary route is closed.
- Building a request objectSee why some requests need a signature that travels with them and lasts as evidence, then build a signed request object with protective claims, send it by value or by reference, and encrypt it.
- Validating a request objectFollow the authorization server's checks on a request object, see why only its own parameters count, fetch references safely, and stop downgrades to unsigned requests.
- Using JAR with PARPush a signed request object to the PAR endpoint, keep it distinct from the client assertion beside it, and see why high-assurance profiles combine the two mechanisms.
- Protecting an authorization responseSee why an ordinary authorization response cannot prove where it came from, ask for a signed JARM response, read it claim by claim, choose a response mode, and see which checks a signature cannot replace.
- Response validation and failuresValidate a JARM response in the right order before using its code, handle signed and unsigned errors, and reconcile the iss claim with the iss parameter.
- Checking the response issuerLearn how the iss response parameter names the authorization server, how a client compares it exactly with the issuer it asked, and what to do when the check fails.
- Describing access with authorization detailsSee why a scope cannot say "only album 42" or "pay 42.50 EUR once", then write Rich Authorization Requests objects for an album and a payment and send them safely.
- Processing and validating a requestFollow how an authorization server validates, presents, and returns authorization details, and how an API enforces them, including invalid_authorization_details and single-use payments.
- Selecting the intended resourceUse the resource parameter to name the API a token is for, write valid resource values, and see how it works in authorization and token requests.
- Requesting access to multiple resourcesRequest one authorization that covers two APIs, obtain a separate audience-restricted token for each, and see why one token for both is riskier.
- Audience restrictions and validationSee how an authorization server sets a token's audience and refuses unknown resources with invalid_target, and how an API checks the audience exactly.
- When an API needs stronger authenticationSee how acr and auth_time describe the sign-in behind a token, then follow a step-up challenge from a 401 insufficient_user_authentication, through acr_values and max_age, to a successful retry.
- Handling unmet authentication requirementsHandle step-up requirements that cannot be met, avoid sign-in loops, keep separate tokens for different needs, and write the API's authentication check carefully.
- Binding a token to a keySee how DPoP binds an access token to a key pair the client holds, so a copied token is useless without the private key that never leaves the device.
- Creating a DPoP proofBuild the signed proofs a client sends to the token endpoint and to an API, and compute the JWK thumbprint and access token hash they rely on.
- Validating proofs at the serverFollow the checks an authorization server and an API make on DPoP proofs, how refresh tokens and pushed requests stay bound, and why a bound token sent as Bearer must fail.
- Nonces and replay handlingLimit what a captured DPoP proof allows with time windows, identifier tracking, and server-provided nonces, and see what DPoP cannot protect against, especially in a browser.
- Authenticating a client with a certificateAuthenticate a confidential client with a TLS client certificate, compare the PKI and self-signed methods, and see why mutual TLS gets separate endpoint addresses.
- Certificate-bound access tokensBind an access token to the client certificate used to obtain it, check the binding at the API, bind a public client's tokens, forward certificates safely through proxies, and compare with DPoP.
- Certificate rotation and validationRenew client certificates without breaking authentication or bound tokens, monitor expiry and leaks, see what an authorization server validates, and choose a sender constraint for each kind of client.
- The problem token exchange solvesSee why an API calling another service on a person's behalf needs a new token, and how an authorization server acting as a token service issues one.
- Delegation, impersonation, and actor tokensLabel the token being exchanged, compare tokens that make their holder indistinguishable from the person with tokens that name who acts, and see how may_act and an actor token bring in a support agent.
- Following a token exchangeFollow the photo API as it exchanges the printer's token for a storage token, read every field of the request, response and new token, then follow storage's own exchange and its nested act chain.
- Scopes, resources, and audiencesName the target of an exchange with resource or audience, ask for one target at a time, and narrow scope so an exchange never adds access.
- Trust and validationWork through what an authorization server checks before exchanging a token, from client permission to lifetime, and what the downstream API checks afterwards.
- Errors and failure casesRead token exchange errors, handle subject tokens that expire mid-operation, decide which failures to retry and which service in a chain can recover, and trace a chain without logging tokens.
- Authorization server metadataFind and read an OAuth authorization server's RFC 8414 metadata: the well-known address for issuers with a path, the members an OAuth client relies on, the issuer check and signed metadata.
- Protected resource metadataFind an API's RFC 9728 metadata from its address or a 401 challenge, follow it to an authorization server, request a token for that API, and check the resource value and the server before trusting either.
- Registering a client dynamicallyRegister a client through an API, compare open and protected registration, and see what per-installation registration gives a native app and what it cannot prove.
- Client metadata and software statementsSee which client metadata a registration request can carry, how servers treat self-asserted values, and what a signed software statement does and does not prove.
- Registration responses and errorsRead a successful registration response, check what was actually registered, plan for an expiring secret, and handle the four registration error codes.
- Managing a registrationRead and replace a client registration at its configuration endpoint, protect and rotate its registration access token, and delete it, knowing which issued tokens stop working.
- Client ID metadata documentsUse an HTTPS URL as a client ID that points at the client's own metadata, see what the authorization server checks and fetches safely, and put discovery together from an API's 401 to a token.
- The purpose of a security profileSee why open banking ecosystems need OAuth choices made once for everyone, what a security profile like FAPI does, and how its attacker model frames it.
- How FAPI combines OAuth mechanismsFollow a bank payment through FAPI 2.0, trace each requirement to the OAuth mechanism behind it, and see where the profile deliberately departs from habit.
- Interoperability and conformance testingLearn why implementations of the same profile still disagree, how conformance testing and certification work, and what a passing test run does and does not prove.
Advanced OpenID Connect
OpenID Connect extensions for claims from other sources, protected messages, third-party initiated login and backchannel authentication.
- Combining claims from multiple sourcesSee how an OpenID Provider passes on another claims provider's statement, either as a signed JWT or as a reference to fetch it, using _claim_names and _claim_sources.
- Validating aggregated and distributed claimsValidate a claims provider's JWT, embedded or fetched, decide whom to trust for what, check an endpoint before calling it, and handle failures without breaking sign-in.
- Choosing which messages to protectDecide which OpenID Connect messages to sign, encrypt, or both, by asking who reads each one along the way and who needs to verify it afterwards.
- Signing and encryptionPublish an encryption key, register signing and encryption algorithms, and read a nested JWT: a signed UserInfo response encrypted with JWE, part by part.
- Key selection and validation failuresOpen a signed and encrypted message with the right keys in the right order, reject algorithm mismatches, rotate encryption keys safely, and fail without giving clues.
- Starting sign-in from another serviceSee how a provider's Applications page asks a relying party to start sign-in with iss, login_hint and target_link_uri, and how the relying party checks each value before starting a fresh sign-in.
- Separating the consumption and authentication devicesMeet Client-Initiated Backchannel Authentication at a poster kiosk in a print shop, where Ava uses one device, approves on her own phone, and the client asks the provider to reach her.
- Following a CIBA exchangeFollow the kiosk's backchannel authentication request, its auth_req_id acknowledgement, Ava's approval on her phone, and the CIBA grant that collects the ID token at the token endpoint.
- Poll, ping, and push modesCompare the three ways a CIBA result reaches the client: polling the token endpoint, a ping notification, or tokens pushed to the client, and see why many deployments avoid push.
- Binding the authentication to the requestSee why a CIBA request that anyone can aim at Ava's phone needs binding messages, user codes, and better hints, and what each one protects against.
Workload and agent identities
Identities for software: services, pipelines and AI agents that authenticate, act for people, and must be owned, limited and retired.
- When software needs its own identityFollow the photo printer's backend as it outgrows a shared key, and learn what a workload is, why it needs an identity of its own, and how to name one.
- Attesting a workloadSolve the first-secret problem: see how a platform vouches for the machine and process a workload runs in, and how that evidence becomes a credential.
- Credentials for workloadsCompare API keys, client secrets, private keys, short-lived certificates, and signed tokens for workloads, and see why automatic, short-lived credentials change what a leak costs.
- Authenticating between servicesFollow the order service calling the render service, and compare mutual TLS with application-layer tokens, including what each proves when a proxy sits in between.
- Workload identity federationLet a deployment pipeline reach a cloud platform without a stored key, by trusting the pipeline's signed token and writing conditions narrow enough to admit only the right job.
- Keeping context across servicesFollow your order through three services, and learn when to forward, exchange, or narrow a token so each service knows both who called it and whose request it is.
- Owning and retiring workload identitiesInventory the printer's workload identities, give each an owner, review what each can do, respond to a leaked credential, and retire identities no one needs.
- What makes an agent differentMeet a photo book assistant and compare it with a script, a service, and a person: it chooses its own steps, reads content that can try to steer it, and acts for someone else.
- Who is acting?Compare three ways an assistant can reach your photos: using your own credentials or session, acting under an identity of its own, and acting as your delegate, and see what each does to accountability.
- Delegating authority to an agentGrant the assistant access to one album, see what consent should say about an agent, and represent both you and the assistant in the token it receives.
- Keeping an agent's authority narrowSee why limits belong at the resource server rather than in the agent's instructions, and follow an injected instruction that fails because the token never allowed it.
- Asking a person before actingDesign approvals for consequential agent actions, bind each approval to the exact action, and approve from your phone when you are not at the screen.
- Tools, servers, and other agentsFollow the assistant as it calls a layout tool and hands photo selection to another agent, narrowing authority at every hop and never passing your token along.
- Tracing and stopping an agentReconstruct what the assistant did, for whom, and with whose approval from the audit trail, then revoke its access and see what stops immediately and what does not.
Enterprise directories
How Kerberos tickets work, Active Directory domains, forests and trusts, NTLM and Kerberos attacks, delegation and forged tickets, and connecting a directory to cloud sign-in.
- How Kerberos tickets workFollow Riley's password-free morning at Cedar through the ticket-granting ticket, a service ticket and a fresh authenticator, and see what each one proves to the file server.
- Domains, forests, and trusts in Active DirectoryLet Riley open a workbook at a partner company by choosing the direction and reach of a trust between two forests, while the partner still grants the permission itself.
- NTLM, pass-the-hash, and KerberoastingTell a reused password hash from a relayed authentication and from tickets collected for offline guessing, and contain each one with the repair that fits it.
- Kerberos delegation and forged ticketsSee how a service acts for a user through unconstrained, constrained and resource-based delegation, how silver and golden tickets forge access from a stolen key, and why recovery resets krbtgt twice.
- Connecting a directory to cloud sign-inKeep provisioning and sign-in apart when an office directory feeds a cloud application, and decide where the password is checked and what happens when a link goes down.
Verifiable credentials and wallets
Issuer, holder and verifier relationships, selective disclosure, wallet issuance and presentation, and mobile document evidence.
- Issuers, holders, and verifiersMeet the issuer, holder and verifier of a course credential, and see why a valid signature is only the first of the verifier's questions.
- Selective disclosure with SD-JWTShow the course and the result from a credential while the email stays hidden, and see how the verifier checks each revealed claim and the holder's key.
- Issuing to a wallet (OpenID4VCI)Follow a course credential from Cedar's training portal into Riley's wallet: the offer, the token, the key proof and a delivery that finishes later.
- Presenting from a wallet (OpenID4VP)Answer a verifier's request with only the claims it asks for, bound to that verifier and that request, and respond sensibly when the person refuses or has no such credential.
- Mobile driving licenses and mdocShow a shop reader that Riley is over 21 from a driving license on a phone, and see what an offline reader can check and what it cannot know.