feat(issuance): reissue credentials automatically#362
Draft
florishafkenscheid wants to merge 13 commits into
Draft
feat(issuance): reissue credentials automatically#362florishafkenscheid wants to merge 13 commits into
florishafkenscheid wants to merge 13 commits into
Conversation
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.
Description of change
Adds the HTTP surface for automatic credential refresh on top of the credential reissuance flow.
This introduces a new
POST /v0/credential-refreshendpoint that accepts arefreshToken, resolves it through the refresh continuation service, and returns a form-url-encoded credential offer continuation when refresh preparation succeeds. The endpoint maps missing or disabled refresh references to404, unavailable refresh preparation to403, and other preparation failures to API problem responses.The change also wires the endpoint into the issuance router and OpenAPI generation, updates
openapi-generated.yaml, and adds a default no-op refresh preparation hook so the API can expose the refresh contract before a real domain-specific preparation implementation is plugged in.Links to any relevant issues
N/A
How the change has been tested
Added endpoint/unit coverage for:
404404403agent_issuanceValidated locally with:
Both commands passed locally.
Definition of Done checklist
Blocked by