feat(oidc)!: migrate OIDC to explicit exchange#47
Merged
Conversation
Verify OIDC JWTs as external proof, exchange verified identities for authkit access JWTs, and keep protected-resource routes on principal authenticators only. Replace the old notes example with testkit validation for API-token exchange, OIDC exchange, protected paste creation, and direct external token rejection. BREAKING CHANGE: protected resource pipelines no longer accept authkit.Authenticator identity authenticators, PipelineOptions.Authenticators, PipelineOptions.Resolver, compose.OIDC, or compose.Existing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Breaking change
Protected resource pipelines no longer accept
authkit.Authenticatoridentity authenticators,PipelineOptions.Authenticators,PipelineOptions.Resolver,compose.OIDC, orcompose.Existing. Resource routes should authenticate authkit access JWTs through principal authenticators.Validation
go test ./...go test -count=1 -tags=integration ./store/postgres ./testkit/internal/store/postgres ./testkit/internal/authflowmoon run root:check --summary minimalmoon run docs:typecheck --summary minimalmoon run docs:build --summary minimal