
Trending in Standards & Protocols

Hot Topics
Sorted by 7-day reactions
13
Discovery document fields differ enough between providers to break auto-configTwo providers publish a well-known discovery document with the same required fields present, but the auxiliary ones our library expects sit in different places or use different casing. Auto-configuring against a new provider is never actually zero-configuration for us. We keep a per-provider override file that nobody wanted to write.
AAI Discovery2mo ago1012
ID token claims we treat as guaranteed turn out to be optional per providerA claim we built a permissions check around is present on every provider we tested against until a new one omits it entirely without warning. Nothing fails loudly, the check just silently passes for the wrong reason. We now validate presence explicitly instead of trusting it by convention.
AAI Discovery2mo ago1011
Implicit and hybrid flows still show up in integration requests years laterA partner's legacy system only knows how to speak the older flow and asks us to support it as a one-off. Supporting it means keeping code paths alive that our own security review flagged for removal. Turning the request down is the easier answer and the harder conversation.
AAI Discovery2mo ago1010
Session management and logout behave completely differently across providersOne provider honors a redirect after logout and another silently ignores it, so our unified logout button works for some users and quietly does nothing for others. Debugging it requires knowing which provider a given user authenticated through in the first place. Nothing in our UI currently distinguishes that.
AAI Discovery2mo ago109
Clock skew between our server and the provider produces intermittent token rejectionA token that was issued a few seconds ago gets rejected as not yet valid on a slow day, and the failure only shows up under load when our clock drifts furthest. Adding tolerance felt like papering over a real problem until we realized every implementation does the same thing. The tolerance value itself is not something the document tells you how to pick.
AAI Discovery2mo ago108
Scope names overlap with the underlying authorization layer in confusing waysA scope requested for identity information reads almost identically to a scope our resource server defines for something unrelated, and a new engineer regularly requests the wrong one. The consent screen shows both with equally vague descriptions. We have started prefixing our own scopes just to make the difference visible.
AAI Discovery2mo ago107
Refresh token rotation policy is not something the document promises either waySome providers invalidate the old refresh token the moment a new one is issued and others let both live for a window, and our client code assumed the stricter behavior until a provider proved otherwise. The failure mode is a user silently logged out mid-session. We now handle both behaviors defensively rather than assuming either.
AAI Discovery2mo ago106
Keep a per-provider quirks file instead of scattered inline commentsProposing a single document listing every deviation we have found for each identity provider we integrate with, updated the moment someone hits a new one. It replaces tribal knowledge with something a new engineer can read in ten minutes. The information already exists, just not in one place.
AAI Discovery2mo ago106
The userinfo endpoint and the id token disagree about the same claimA display name field comes back different depending on whether we read it from the token or fetch it fresh from the endpoint, and nothing tells a caller which one is authoritative. We picked one source and documented internally why, but a new integration inevitably asks the question again. Nothing in the specification resolves which should win.
AAI Discovery2mo ago105
Validate presence of every claim our authorization logic depends on at startupRather than discovering a missing claim in production, add a startup check against each configured provider's discovery document that flags any claim our code assumes is always there. It would turn a silent authorization gap into a loud configuration error. The check is small compared to the incidents it would prevent.
AAI Discovery2mo ago105
PKCE became mandatory in our threat model long before any provider enforced itOur security review requires the proof key flow for every client type, including ones the specification itself treats as optional for. Explaining to an auditor why we exceed the baseline is easier than explaining to a legacy client why we suddenly require something it never sent before. The rollout took longer than the actual code change.
AAI Discovery2mo ago104
Treat token rejection near expiry boundaries with a small fixed tolerance everywhereSuggesting we standardize the same clock skew tolerance across every service that validates tokens, instead of each team picking its own value independently. Consistency here would remove a class of intermittent failures that currently look unrelated across different services. It is a one-line configuration change repeated everywhere it matters.
AAI Discovery2mo ago104
Multiple providers configured at once means multiple sets of quirks to rememberEvery new identity provider we add comes with its own small deviation from what we expect, whether that is claim naming, redirect handling, or token lifetime defaults. None of these deviations are individually large enough to justify a formal exception process, so they live in scattered comments across the codebase. Onboarding a new engineer means walking them through each quirk verbally.
AAI Discovery2mo ago103
Document which claim source is authoritative for each field we actually useA short internal table naming, for every claim we read, whether the token or the userinfo endpoint wins would end the recurring question during new integrations. We already made this decision once per field; writing it down means we only make it once. The table is a few rows, not a project.
AAI Discovery2mo ago103
State and nonce parameters get dropped by an intermediate proxy on one deploymentA gateway in front of one of our environments strips query parameters it does not recognize, and the authorization flow that depends on them for replay protection breaks silently in that environment only. Reproducing it locally is impossible because our local setup has no such proxy. The fix lives in a network configuration nobody on the application team can touch directly.
AAI Discovery2mo ago102
Standardizing on a single token format finally let three teams share one libraryBefore this, each team that touched authentication had written its own token parsing and validation code with its own small bugs. Converging on the same flow let us retire two of those implementations and put real effort into the one that remains. Fewer places for a mistake to hide is worth the migration cost.
AAI Discovery2mo ago102
Require PKCE for every client type as a fixed platform defaultSince our security posture already exceeds what any provider requires, make the stricter flow the default in our client libraries rather than an opt-in a new integration might miss. It removes a manual step from every future onboarding. The legacy exceptions can be named explicitly instead of PKCE being the exception.
AAI Discovery2mo ago102
Consent screen wording is entirely up to the provider and users blame us for itA vague or alarming consent prompt from a provider still shows our application name at the top, so support tickets about confusing permission requests land on our team regardless of who wrote the wording. We cannot customize text that belongs to someone else's screen. Explaining that distinction to a confused user rarely lands well.
AAI Discovery2mo ago101
Is there a recommended way to handle a provider that omits an id token claim we depend onWe have hit our second provider now that simply does not return a claim every other one has sent, and I want to know if there is a conventional fallback rather than each team inventing its own. The specification treats the claim as optional and stops there. Do other integrators fall back to the userinfo endpoint, or something else entirely?
AAI Discovery2mo ago101
The discovery document made switching identity providers far less painful than expectedPointing our configuration at a new provider's well-known endpoint and having most of it just work saved us from writing another manual integration from scratch. We still needed the quirks file, but the baseline case genuinely worked as advertised. That was not something I expected going in.
AAI Discovery2mo ago10