Skip to content
Start with Identity
Build it

Developer recipes

Copy-paste, framework-agnostic recipes for the identity work developers actually do. Each one is built on the open standards, links to the spec it implements, and avoids any single vendor. Free to read and use, no email required.

Intermediate · 30 min
Add login to a Next.js app with OIDC

Wire OpenID Connect authorization code flow with PKCE into the Next.js App Router, with httpOnly session cookies and no client-side token storage.

Next.jsOIDCTypeScript
Intermediate · 25 min
Implement OAuth authorization code flow with PKCE

The canonical, framework-agnostic walkthrough of the authorization code grant with PKCE, the flow OAuth 2.1 recommends for every client type.

OAuthOIDCSecurity
Beginner · 20 min
Validate a JWT correctly

Verify a JSON Web Token's signature against a provider's JWKS and check every claim that matters, with the pitfalls that cause real vulnerabilities.

JWTSecurityNode.js
Intermediate · 25 min
Protect an API with OAuth scopes

Turn any HTTP API into an OAuth 2.1 resource server: validate the bearer access token, enforce scopes per route, and return correct error responses.

OAuthAPINode.js
Advanced · 40 min
Set up SCIM provisioning

Build a SCIM 2.0 server so identity providers can create, update, and deprovision users in your app automatically, with the minimum endpoints that satisfy real connectors.

SCIMProvisioningAPI
Advanced · 45 min
Add passkeys with WebAuthn

Implement passkey registration and login using the WebAuthn API and a server-side verification library, the phishing-resistant replacement for passwords.

WebAuthnPasskeysSecurity
Intermediate · 60 min
Microsoft Entra Conditional Access baseline policy set

Five Conditional Access policies that cover most of the risk in a Microsoft Entra tenant, built in report-only first, with the break-glass exclusion wired in from day one.

Microsoft Entra IDConditional AccessMicrosoft Graph
Intermediate · 45 min
Break-glass (emergency access) accounts in Microsoft Entra ID

Create two cloud-only Global Administrator accounts that still work when federation, MFA devices, or Conditional Access fail, protect them with FIDO2 passkeys, and alert on every sign-in.

Microsoft Entra IDAzure MonitorFIDO2
Intermediate · 60 min
Okta: authentication policies and global session policy for phishing-resistant MFA

Require passkeys or Okta FastPass for a pilot group in Okta Identity Engine, using the global session policy, an authenticator enrollment policy, app sign-in policy rules with the Phishing resistant constraint, and a deny-by-default catch-all.

OktaFIDO2MFAPolicy
Intermediate · 60 min
Federate AWS IAM Identity Center with Microsoft Entra ID or Okta (SAML + SCIM)

Make Entra ID or Okta the identity source for AWS IAM Identity Center: exchange SAML metadata, turn on SCIM so users and groups sync automatically, then grant access with permission sets and account assignments from the console or the AWS CLI.

AWSSAMLSCIMEntra ID / Okta
Intermediate · 60 min
Set up Google Cloud Workforce Identity Federation with Entra ID or Okta

Let employees sign in to the Google Cloud console and gcloud with their existing Entra ID or Okta account, with no user sync into Cloud Identity and IAM roles granted to IdP groups.

Google CloudEntra IDOktaOIDC
Intermediate · 45 min
GitHub Actions OIDC to AWS and Azure without long-lived keys

Replace stored cloud access keys and client secrets in GitHub Actions with short-lived OIDC federation, and scope the trust to an exact repository, branch, or environment.

GitHub ActionsAWS IAMEntra IDOIDC
Intermediate · 45 min
SCIM provisioning from Entra ID or Okta into a SaaS app: attribute mapping and testing deprovisioning

The admin side of SCIM: connect Microsoft Entra ID or Okta to a SaaS app's SCIM endpoint, get the matching attribute and mappings right, scope who is provisioned, and prove with a joiner-mover-leaver test that leavers lose access and sessions.

SCIMEntra IDOktaProvisioning
Advanced · 4 hours
Migrate users from Auth0 to another CIAM without forcing password resets

Export Auth0 profiles, get the bcrypt password hashes through support, then move users with a bulk hash import, a lazy migration, or both, without breaking the sub claim your apps depend on.

Auth0CIAMMigration
Advanced · 90 min
Migrate an app from AD FS to Microsoft Entra ID

The per-app procedure for moving one SAML relying party trust from AD FS to a Microsoft Entra enterprise application, with a tested cutover and a rollback that takes minutes.

AD FSMicrosoft Entra IDSAML
Intermediate · 90 min
Enforce SSO and disable local logins in a SaaS app

Make the identity provider the only way into GitHub, Atlassian, and Slack: enforce SSO, keep one or two break-glass admins, end old password sessions, close the token side doors, and alert on what is left.

SSOSAMLSaaS
Advanced · 60 min
Kubernetes workload identity: EKS Pod Identity or IRSA, and GKE Workload Identity Federation

Give each Kubernetes service account its own short-lived cloud identity on EKS and GKE, so pods stop using node credentials or mounted keys.

KubernetesAmazon EKSGKEIAM
Intermediate · 60 min
Rotate a leaked secret properly: revoke, rotate, check usage logs

What to do in the first hour after a GitHub token, AWS access key, or Stripe API key leaks: contain it, move consumers to a new credential, read the logs back to the leak date, and stop the next one.

SecretsGitHubAWSStripe