[needs-PR/discuss] credential offer - successful & error responses need to be defined

Issue #1642 resolved
Joseph Heenan created an issue

The spec says:

The Issuer sends the request as a HTTP GET request or a HTTP redirect to the Issuance Initiation Endpoint URL defined in Section 11.1.

I can’t figure out what this means. I think the “or a HTTP redirect” means “send the user’s browser to the issuance url with the parameters in the url query”. I’m not sure what the other option (the first part of the ‘or’, “sends the request as a HTTP GET request”) is, as 6.2 seems to make it pretty clear the request is done interactively in the user’s browser with the resulting html expected to be displayed by the browser.

It might make sense to use similar language to that used in RFC6749 for the authorization endpoint, e.g.:

The Issuer directs the resource owner to the constructed URI using an
HTTP redirection response, or by other means available to it via the
user-agent.

Comments (10)

  1. Kristina Yasuda

    when the issuer knows the wallet’s issuance initiation endpoint it can send an issuance initiation request as an HTTP GET directly without any user interaction or user agent involvement, instead of a redirect.

  2. Joseph Heenan reporter

    I’m not quite sure. If it has no content (and is successful), then 204 is probably most appropriate.

    However, there’s probably also a need to define what happens in the case that the request is not valid. Possibly an error response similar to the token endpoint error response (https://datatracker.ietf.org/doc/html/rfc6749#section-5.2) could be appropriate then, but I’ve not fully thought it through.

  3. Kristina Yasuda

    Oct-10-2022, Tobias suggested that GET request MUST be a treated as a redirect to allow the wallet to have a user interaction.

    Mike and Kristina agreed and clarified that if no need for user interaction, would be a silent redirect.

  4. Log in to comment