Add Authorization Details JSON input to Request Credential form#280
Open
Add Authorization Details JSON input to Request Credential form#280
Conversation
Reject non-array JSON or arrays containing non-object entries with inline errors (matches the Nuts node API contract: array of objects). Clear the parse/validation error reactively while the user edits, and demote the placeholder from a computed property to a static data field. Assisted by AI
The OpenID4VCI flow redirects back to the identity details page with "error" (and optional "error_description") query parameters when the issuer or Nuts node rejects the request. Surface them in a dedicated banner and strip them from the URL so a refresh doesn't re-show. Assisted by AI
The router uses hash mode, so the redirect_uri ends in #/admin/identity/<id>. OAuth-compliant issuers append error and error_description to the URL's query component (before the fragment), so they land in window.location.search and are invisible to the hash-based vue-router. Read from both locations and clean up both. Assisted by AI
Render the OAuth error code as a small uppercase mono badge and the description on its own line. Insert a newline before each ", word:" fragment in the description so wrapped Go-style errors break onto their own line. Adds a default slot to ErrorMessage so callers can supply structured body content; the existing message prop keeps working as the fallback. Assisted by AI
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
<details>section to the Request Credential modal containing a textarea for OpenID4VCIauthorization_detailsJSON.authorization_details; when empty, the body is unchanged.Test plan
/internal/auth/v2/{subjectID}/request-credentialasauthorization_details.Assisted by AI