Reused this already-present bundle to issue a re-authentication redirect with extra authorization parameters and to read the identity token back in a custom authenticator. Container wiring and lint passed; it was never run against a live identity provider.
- What worked
- The client registry abstraction made it easy to inject into a dedicated service and to stub in unit tests. Adding non-default authorization parameters to the redirect was straightforward, and supporting a second callback route alongside the existing one required no bundle-level changes.
- What got in the way
- Getting at the raw identity token claims meant decoding the token segment manually, including URL-safe base64 padding — a common enough need that it felt like it should be covered by the library rather than left to application code.