issuer

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 35 Imported by: 4

Documentation

Overview

Package issuer provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.11.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCredentialIssuanceHistoryRequest added in v1.5.0

func NewCredentialIssuanceHistoryRequest(server string, profileID string) (*http.Request, error)

NewCredentialIssuanceHistoryRequest generates requests for CredentialIssuanceHistory

func NewExchangeAuthorizationCodeRequestRequest

func NewExchangeAuthorizationCodeRequestRequest(server string, body ExchangeAuthorizationCodeRequestJSONRequestBody) (*http.Request, error)

NewExchangeAuthorizationCodeRequestRequest calls the generic ExchangeAuthorizationCodeRequest builder with application/json body

func NewExchangeAuthorizationCodeRequestRequestWithBody

func NewExchangeAuthorizationCodeRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewExchangeAuthorizationCodeRequestRequestWithBody generates requests for ExchangeAuthorizationCodeRequest with any type of body

func NewGetCredentialsStatusRequest

func NewGetCredentialsStatusRequest(server string, groupID string, statusID string) (*http.Request, error)

NewGetCredentialsStatusRequest generates requests for GetCredentialsStatus

func NewInitiateCredentialIssuanceRequest

func NewInitiateCredentialIssuanceRequest(server string, profileID string, profileVersion string, body InitiateCredentialIssuanceJSONRequestBody) (*http.Request, error)

NewInitiateCredentialIssuanceRequest calls the generic InitiateCredentialIssuance builder with application/json body

func NewInitiateCredentialIssuanceRequestWithBody

func NewInitiateCredentialIssuanceRequestWithBody(server string, profileID string, profileVersion string, contentType string, body io.Reader) (*http.Request, error)

NewInitiateCredentialIssuanceRequestWithBody generates requests for InitiateCredentialIssuance with any type of body

func NewOpenidCredentialIssuerConfigRequest

func NewOpenidCredentialIssuerConfigRequest(server string, profileID string, profileVersion string) (*http.Request, error)

NewOpenidCredentialIssuerConfigRequest generates requests for OpenidCredentialIssuerConfig

func NewOpenidCredentialIssuerConfigV2Request added in v1.5.0

func NewOpenidCredentialIssuerConfigV2Request(server string, profileID string, profileVersion string) (*http.Request, error)

NewOpenidCredentialIssuerConfigV2Request generates requests for OpenidCredentialIssuerConfigV2

func NewPostCredentialsStatusRequest

func NewPostCredentialsStatusRequest(server string, body PostCredentialsStatusJSONRequestBody) (*http.Request, error)

NewPostCredentialsStatusRequest calls the generic PostCredentialsStatus builder with application/json body

func NewPostCredentialsStatusRequestWithBody

func NewPostCredentialsStatusRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostCredentialsStatusRequestWithBody generates requests for PostCredentialsStatus with any type of body

func NewPostIssueCredentialsRequest

func NewPostIssueCredentialsRequest(server string, profileID string, profileVersion string, body PostIssueCredentialsJSONRequestBody) (*http.Request, error)

NewPostIssueCredentialsRequest calls the generic PostIssueCredentials builder with application/json body

func NewPostIssueCredentialsRequestWithBody

func NewPostIssueCredentialsRequestWithBody(server string, profileID string, profileVersion string, contentType string, body io.Reader) (*http.Request, error)

NewPostIssueCredentialsRequestWithBody generates requests for PostIssueCredentials with any type of body

func NewPrepareAuthorizationRequestRequest

func NewPrepareAuthorizationRequestRequest(server string, body PrepareAuthorizationRequestJSONRequestBody) (*http.Request, error)

NewPrepareAuthorizationRequestRequest calls the generic PrepareAuthorizationRequest builder with application/json body

func NewPrepareAuthorizationRequestRequestWithBody

func NewPrepareAuthorizationRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPrepareAuthorizationRequestRequestWithBody generates requests for PrepareAuthorizationRequest with any type of body

func NewPrepareBatchCredentialRequest added in v1.8.0

func NewPrepareBatchCredentialRequest(server string, body PrepareBatchCredentialJSONRequestBody) (*http.Request, error)

NewPrepareBatchCredentialRequest calls the generic PrepareBatchCredential builder with application/json body

func NewPrepareBatchCredentialRequestWithBody added in v1.8.0

func NewPrepareBatchCredentialRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPrepareBatchCredentialRequestWithBody generates requests for PrepareBatchCredential with any type of body

func NewPrepareCredentialRequest

func NewPrepareCredentialRequest(server string, body PrepareCredentialJSONRequestBody) (*http.Request, error)

NewPrepareCredentialRequest calls the generic PrepareCredential builder with application/json body

func NewPrepareCredentialRequestWithBody

func NewPrepareCredentialRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPrepareCredentialRequestWithBody generates requests for PrepareCredential with any type of body

func NewPushAuthorizationDetailsRequest

func NewPushAuthorizationDetailsRequest(server string, body PushAuthorizationDetailsJSONRequestBody) (*http.Request, error)

NewPushAuthorizationDetailsRequest calls the generic PushAuthorizationDetails builder with application/json body

func NewPushAuthorizationDetailsRequestWithBody

func NewPushAuthorizationDetailsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPushAuthorizationDetailsRequestWithBody generates requests for PushAuthorizationDetails with any type of body

func NewStoreAuthorizationCodeRequestRequest

func NewStoreAuthorizationCodeRequestRequest(server string, body StoreAuthorizationCodeRequestJSONRequestBody) (*http.Request, error)

NewStoreAuthorizationCodeRequestRequest calls the generic StoreAuthorizationCodeRequest builder with application/json body

func NewStoreAuthorizationCodeRequestRequestWithBody

func NewStoreAuthorizationCodeRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStoreAuthorizationCodeRequestRequestWithBody generates requests for StoreAuthorizationCodeRequest with any type of body

func NewValidatePreAuthorizedCodeRequestRequest

func NewValidatePreAuthorizedCodeRequestRequest(server string, body ValidatePreAuthorizedCodeRequestJSONRequestBody) (*http.Request, error)

NewValidatePreAuthorizedCodeRequestRequest calls the generic ValidatePreAuthorizedCodeRequest builder with application/json body

func NewValidatePreAuthorizedCodeRequestRequestWithBody

func NewValidatePreAuthorizedCodeRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewValidatePreAuthorizedCodeRequestRequestWithBody generates requests for ValidatePreAuthorizedCodeRequest with any type of body

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CredentialIssuanceHistory added in v1.5.0

func (c *Client) CredentialIssuanceHistory(ctx context.Context, profileID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExchangeAuthorizationCodeRequest

func (c *Client) ExchangeAuthorizationCodeRequest(ctx context.Context, body ExchangeAuthorizationCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ExchangeAuthorizationCodeRequestWithBody

func (c *Client) ExchangeAuthorizationCodeRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCredentialsStatus

func (c *Client) GetCredentialsStatus(ctx context.Context, groupID string, statusID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InitiateCredentialIssuance

func (c *Client) InitiateCredentialIssuance(ctx context.Context, profileID string, profileVersion string, body InitiateCredentialIssuanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InitiateCredentialIssuanceWithBody

func (c *Client) InitiateCredentialIssuanceWithBody(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OpenidCredentialIssuerConfig

func (c *Client) OpenidCredentialIssuerConfig(ctx context.Context, profileID string, profileVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OpenidCredentialIssuerConfigV2 added in v1.5.0

func (c *Client) OpenidCredentialIssuerConfigV2(ctx context.Context, profileID string, profileVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostCredentialsStatus

func (c *Client) PostCredentialsStatus(ctx context.Context, body PostCredentialsStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostCredentialsStatusWithBody

func (c *Client) PostCredentialsStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostIssueCredentials

func (c *Client) PostIssueCredentials(ctx context.Context, profileID string, profileVersion string, body PostIssueCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostIssueCredentialsWithBody

func (c *Client) PostIssueCredentialsWithBody(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PrepareAuthorizationRequest

func (c *Client) PrepareAuthorizationRequest(ctx context.Context, body PrepareAuthorizationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PrepareAuthorizationRequestWithBody

func (c *Client) PrepareAuthorizationRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PrepareBatchCredential added in v1.8.0

func (c *Client) PrepareBatchCredential(ctx context.Context, body PrepareBatchCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PrepareBatchCredentialWithBody added in v1.8.0

func (c *Client) PrepareBatchCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PrepareCredential

func (c *Client) PrepareCredential(ctx context.Context, body PrepareCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PrepareCredentialWithBody

func (c *Client) PrepareCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PushAuthorizationDetails

func (c *Client) PushAuthorizationDetails(ctx context.Context, body PushAuthorizationDetailsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PushAuthorizationDetailsWithBody

func (c *Client) PushAuthorizationDetailsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StoreAuthorizationCodeRequest

func (c *Client) StoreAuthorizationCodeRequest(ctx context.Context, body StoreAuthorizationCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StoreAuthorizationCodeRequestWithBody

func (c *Client) StoreAuthorizationCodeRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ValidatePreAuthorizedCodeRequest

func (c *Client) ValidatePreAuthorizedCodeRequest(ctx context.Context, body ValidatePreAuthorizedCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ValidatePreAuthorizedCodeRequestWithBody

func (c *Client) ValidatePreAuthorizedCodeRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// PostCredentialsStatus request with any body
	PostCredentialsStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostCredentialsStatus(ctx context.Context, body PostCredentialsStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCredentialsStatus request
	GetCredentialsStatus(ctx context.Context, groupID string, statusID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExchangeAuthorizationCodeRequest request with any body
	ExchangeAuthorizationCodeRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ExchangeAuthorizationCodeRequest(ctx context.Context, body ExchangeAuthorizationCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PrepareAuthorizationRequest request with any body
	PrepareAuthorizationRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PrepareAuthorizationRequest(ctx context.Context, body PrepareAuthorizationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PrepareCredential request with any body
	PrepareCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PrepareCredential(ctx context.Context, body PrepareCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PrepareBatchCredential request with any body
	PrepareBatchCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PrepareBatchCredential(ctx context.Context, body PrepareBatchCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PushAuthorizationDetails request with any body
	PushAuthorizationDetailsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PushAuthorizationDetails(ctx context.Context, body PushAuthorizationDetailsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StoreAuthorizationCodeRequest request with any body
	StoreAuthorizationCodeRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	StoreAuthorizationCodeRequest(ctx context.Context, body StoreAuthorizationCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ValidatePreAuthorizedCodeRequest request with any body
	ValidatePreAuthorizedCodeRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ValidatePreAuthorizedCodeRequest(ctx context.Context, body ValidatePreAuthorizedCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CredentialIssuanceHistory request
	CredentialIssuanceHistory(ctx context.Context, profileID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostIssueCredentials request with any body
	PostIssueCredentialsWithBody(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostIssueCredentials(ctx context.Context, profileID string, profileVersion string, body PostIssueCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InitiateCredentialIssuance request with any body
	InitiateCredentialIssuanceWithBody(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InitiateCredentialIssuance(ctx context.Context, profileID string, profileVersion string, body InitiateCredentialIssuanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OpenidCredentialIssuerConfig request
	OpenidCredentialIssuerConfig(ctx context.Context, profileID string, profileVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OpenidCredentialIssuerConfigV2 request
	OpenidCredentialIssuerConfigV2(ctx context.Context, profileID string, profileVersion string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CredentialIssuanceHistoryWithResponse added in v1.5.0

func (c *ClientWithResponses) CredentialIssuanceHistoryWithResponse(ctx context.Context, profileID string, reqEditors ...RequestEditorFn) (*CredentialIssuanceHistoryResponse, error)

CredentialIssuanceHistoryWithResponse request returning *CredentialIssuanceHistoryResponse

func (*ClientWithResponses) ExchangeAuthorizationCodeRequestWithBodyWithResponse

func (c *ClientWithResponses) ExchangeAuthorizationCodeRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExchangeAuthorizationCodeRequestResponse, error)

ExchangeAuthorizationCodeRequestWithBodyWithResponse request with arbitrary body returning *ExchangeAuthorizationCodeRequestResponse

func (*ClientWithResponses) GetCredentialsStatusWithResponse

func (c *ClientWithResponses) GetCredentialsStatusWithResponse(ctx context.Context, groupID string, statusID string, reqEditors ...RequestEditorFn) (*GetCredentialsStatusResponse, error)

GetCredentialsStatusWithResponse request returning *GetCredentialsStatusResponse

func (*ClientWithResponses) InitiateCredentialIssuanceWithBodyWithResponse

func (c *ClientWithResponses) InitiateCredentialIssuanceWithBodyWithResponse(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitiateCredentialIssuanceResponse, error)

InitiateCredentialIssuanceWithBodyWithResponse request with arbitrary body returning *InitiateCredentialIssuanceResponse

func (*ClientWithResponses) InitiateCredentialIssuanceWithResponse

func (c *ClientWithResponses) InitiateCredentialIssuanceWithResponse(ctx context.Context, profileID string, profileVersion string, body InitiateCredentialIssuanceJSONRequestBody, reqEditors ...RequestEditorFn) (*InitiateCredentialIssuanceResponse, error)

func (*ClientWithResponses) OpenidCredentialIssuerConfigV2WithResponse added in v1.5.0

func (c *ClientWithResponses) OpenidCredentialIssuerConfigV2WithResponse(ctx context.Context, profileID string, profileVersion string, reqEditors ...RequestEditorFn) (*OpenidCredentialIssuerConfigV2Response, error)

OpenidCredentialIssuerConfigV2WithResponse request returning *OpenidCredentialIssuerConfigV2Response

func (*ClientWithResponses) OpenidCredentialIssuerConfigWithResponse

func (c *ClientWithResponses) OpenidCredentialIssuerConfigWithResponse(ctx context.Context, profileID string, profileVersion string, reqEditors ...RequestEditorFn) (*OpenidCredentialIssuerConfigResponse, error)

OpenidCredentialIssuerConfigWithResponse request returning *OpenidCredentialIssuerConfigResponse

func (*ClientWithResponses) PostCredentialsStatusWithBodyWithResponse

func (c *ClientWithResponses) PostCredentialsStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCredentialsStatusResponse, error)

PostCredentialsStatusWithBodyWithResponse request with arbitrary body returning *PostCredentialsStatusResponse

func (*ClientWithResponses) PostCredentialsStatusWithResponse

func (c *ClientWithResponses) PostCredentialsStatusWithResponse(ctx context.Context, body PostCredentialsStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PostCredentialsStatusResponse, error)

func (*ClientWithResponses) PostIssueCredentialsWithBodyWithResponse

func (c *ClientWithResponses) PostIssueCredentialsWithBodyWithResponse(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostIssueCredentialsResponse, error)

PostIssueCredentialsWithBodyWithResponse request with arbitrary body returning *PostIssueCredentialsResponse

func (*ClientWithResponses) PostIssueCredentialsWithResponse

func (c *ClientWithResponses) PostIssueCredentialsWithResponse(ctx context.Context, profileID string, profileVersion string, body PostIssueCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostIssueCredentialsResponse, error)

func (*ClientWithResponses) PrepareAuthorizationRequestWithBodyWithResponse

func (c *ClientWithResponses) PrepareAuthorizationRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareAuthorizationRequestResponse, error)

PrepareAuthorizationRequestWithBodyWithResponse request with arbitrary body returning *PrepareAuthorizationRequestResponse

func (*ClientWithResponses) PrepareAuthorizationRequestWithResponse

func (c *ClientWithResponses) PrepareAuthorizationRequestWithResponse(ctx context.Context, body PrepareAuthorizationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareAuthorizationRequestResponse, error)

func (*ClientWithResponses) PrepareBatchCredentialWithBodyWithResponse added in v1.8.0

func (c *ClientWithResponses) PrepareBatchCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareBatchCredentialResponse, error)

PrepareBatchCredentialWithBodyWithResponse request with arbitrary body returning *PrepareBatchCredentialResponse

func (*ClientWithResponses) PrepareBatchCredentialWithResponse added in v1.8.0

func (c *ClientWithResponses) PrepareBatchCredentialWithResponse(ctx context.Context, body PrepareBatchCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareBatchCredentialResponse, error)

func (*ClientWithResponses) PrepareCredentialWithBodyWithResponse

func (c *ClientWithResponses) PrepareCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareCredentialResponse, error)

PrepareCredentialWithBodyWithResponse request with arbitrary body returning *PrepareCredentialResponse

func (*ClientWithResponses) PrepareCredentialWithResponse

func (c *ClientWithResponses) PrepareCredentialWithResponse(ctx context.Context, body PrepareCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareCredentialResponse, error)

func (*ClientWithResponses) PushAuthorizationDetailsWithBodyWithResponse

func (c *ClientWithResponses) PushAuthorizationDetailsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PushAuthorizationDetailsResponse, error)

PushAuthorizationDetailsWithBodyWithResponse request with arbitrary body returning *PushAuthorizationDetailsResponse

func (*ClientWithResponses) PushAuthorizationDetailsWithResponse

func (c *ClientWithResponses) PushAuthorizationDetailsWithResponse(ctx context.Context, body PushAuthorizationDetailsJSONRequestBody, reqEditors ...RequestEditorFn) (*PushAuthorizationDetailsResponse, error)

func (*ClientWithResponses) StoreAuthorizationCodeRequestWithBodyWithResponse

func (c *ClientWithResponses) StoreAuthorizationCodeRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StoreAuthorizationCodeRequestResponse, error)

StoreAuthorizationCodeRequestWithBodyWithResponse request with arbitrary body returning *StoreAuthorizationCodeRequestResponse

func (*ClientWithResponses) StoreAuthorizationCodeRequestWithResponse

func (c *ClientWithResponses) StoreAuthorizationCodeRequestWithResponse(ctx context.Context, body StoreAuthorizationCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*StoreAuthorizationCodeRequestResponse, error)

func (*ClientWithResponses) ValidatePreAuthorizedCodeRequestWithBodyWithResponse

func (c *ClientWithResponses) ValidatePreAuthorizedCodeRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidatePreAuthorizedCodeRequestResponse, error)

ValidatePreAuthorizedCodeRequestWithBodyWithResponse request with arbitrary body returning *ValidatePreAuthorizedCodeRequestResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// PostCredentialsStatus request with any body
	PostCredentialsStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostCredentialsStatusResponse, error)

	PostCredentialsStatusWithResponse(ctx context.Context, body PostCredentialsStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*PostCredentialsStatusResponse, error)

	// GetCredentialsStatus request
	GetCredentialsStatusWithResponse(ctx context.Context, groupID string, statusID string, reqEditors ...RequestEditorFn) (*GetCredentialsStatusResponse, error)

	// ExchangeAuthorizationCodeRequest request with any body
	ExchangeAuthorizationCodeRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExchangeAuthorizationCodeRequestResponse, error)

	ExchangeAuthorizationCodeRequestWithResponse(ctx context.Context, body ExchangeAuthorizationCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ExchangeAuthorizationCodeRequestResponse, error)

	// PrepareAuthorizationRequest request with any body
	PrepareAuthorizationRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareAuthorizationRequestResponse, error)

	PrepareAuthorizationRequestWithResponse(ctx context.Context, body PrepareAuthorizationRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareAuthorizationRequestResponse, error)

	// PrepareCredential request with any body
	PrepareCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareCredentialResponse, error)

	PrepareCredentialWithResponse(ctx context.Context, body PrepareCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareCredentialResponse, error)

	// PrepareBatchCredential request with any body
	PrepareBatchCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareBatchCredentialResponse, error)

	PrepareBatchCredentialWithResponse(ctx context.Context, body PrepareBatchCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareBatchCredentialResponse, error)

	// PushAuthorizationDetails request with any body
	PushAuthorizationDetailsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PushAuthorizationDetailsResponse, error)

	PushAuthorizationDetailsWithResponse(ctx context.Context, body PushAuthorizationDetailsJSONRequestBody, reqEditors ...RequestEditorFn) (*PushAuthorizationDetailsResponse, error)

	// StoreAuthorizationCodeRequest request with any body
	StoreAuthorizationCodeRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StoreAuthorizationCodeRequestResponse, error)

	StoreAuthorizationCodeRequestWithResponse(ctx context.Context, body StoreAuthorizationCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*StoreAuthorizationCodeRequestResponse, error)

	// ValidatePreAuthorizedCodeRequest request with any body
	ValidatePreAuthorizedCodeRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidatePreAuthorizedCodeRequestResponse, error)

	ValidatePreAuthorizedCodeRequestWithResponse(ctx context.Context, body ValidatePreAuthorizedCodeRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidatePreAuthorizedCodeRequestResponse, error)

	// CredentialIssuanceHistory request
	CredentialIssuanceHistoryWithResponse(ctx context.Context, profileID string, reqEditors ...RequestEditorFn) (*CredentialIssuanceHistoryResponse, error)

	// PostIssueCredentials request with any body
	PostIssueCredentialsWithBodyWithResponse(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostIssueCredentialsResponse, error)

	PostIssueCredentialsWithResponse(ctx context.Context, profileID string, profileVersion string, body PostIssueCredentialsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostIssueCredentialsResponse, error)

	// InitiateCredentialIssuance request with any body
	InitiateCredentialIssuanceWithBodyWithResponse(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitiateCredentialIssuanceResponse, error)

	InitiateCredentialIssuanceWithResponse(ctx context.Context, profileID string, profileVersion string, body InitiateCredentialIssuanceJSONRequestBody, reqEditors ...RequestEditorFn) (*InitiateCredentialIssuanceResponse, error)

	// OpenidCredentialIssuerConfig request
	OpenidCredentialIssuerConfigWithResponse(ctx context.Context, profileID string, profileVersion string, reqEditors ...RequestEditorFn) (*OpenidCredentialIssuerConfigResponse, error)

	// OpenidCredentialIssuerConfigV2 request
	OpenidCredentialIssuerConfigV2WithResponse(ctx context.Context, profileID string, profileVersion string, reqEditors ...RequestEditorFn) (*OpenidCredentialIssuerConfigV2Response, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type ComposeOIDC4CICredential added in v1.8.0

type ComposeOIDC4CICredential struct {
	// Raw Complete credential for sign and customization
	Credential *map[string]interface{} `json:"credential,omitempty"`

	// ID of the credential template.
	IdTemplate *string `json:"id_template"`

	// Override issuer.
	OverrideIssuer *bool `json:"override_issuer"`

	// Override credential subject did.
	OverrideSubjectDid *bool `json:"override_subject_did"`
}

Model for composing OIDC4CI credential.

type Config

type Config struct {
	EventSvc                       eventService
	EventTopic                     string
	ProfileSvc                     profileService
	DocumentLoader                 ld.DocumentLoader
	IssueCredentialService         issuecredential.ServiceInterface
	OIDC4CIService                 oidc4ciService
	VcStatusManager                vcStatusManager
	OpenidIssuerConfigProvider     openidCredentialIssuerConfigProvider
	CredentialIssuanceHistoryStore credentialIssuanceHistoryStore
	ExternalHostURL                string
	Tracer                         trace.Tracer
	JSONSchemaValidator            jsonSchemaValidator
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller for Issuer Profile Management API.

func NewController

func NewController(config *Config) *Controller

NewController creates a new controller for Issuer Profile Management API.

func (*Controller) CredentialIssuanceHistory added in v1.5.0

func (c *Controller) CredentialIssuanceHistory(e echo.Context, profileID string) error

CredentialIssuanceHistory returns Credential Issuance history. GET /issuer/profiles/{profileID}/issued-credentials.

func (*Controller) ExchangeAuthorizationCodeRequest

func (c *Controller) ExchangeAuthorizationCodeRequest(ctx echo.Context) error

ExchangeAuthorizationCodeRequest Exchanges authorization code. POST /issuer/interactions/exchange-authorization-code.

func (*Controller) GetCredentialsStatus

func (c *Controller) GetCredentialsStatus(ctx echo.Context, groupID string, statusID string) error

GetCredentialsStatus retrieves the credentialstatus.CSL. GET /issuer/groups/{groupID}/credentials/status/{statusID}.

func (*Controller) InitiateCredentialIssuance

func (c *Controller) InitiateCredentialIssuance(e echo.Context, profileID, profileVersion string) error

InitiateCredentialIssuance initiates OIDC credential issuance flow. POST /issuer/profiles/{profileID}/{profileVersion}/interactions/initiate-oidc.

func (*Controller) OpenidCredentialIssuerConfig

func (c *Controller) OpenidCredentialIssuerConfig(ctx echo.Context, profileID, profileVersion string) error

OpenidCredentialIssuerConfig request VCS IDP OIDC Configuration. GET /issuer/{profileID}/{profileVersion}/.well-known/openid-credential-issuer.

func (*Controller) OpenidCredentialIssuerConfigV2 added in v1.5.0

func (c *Controller) OpenidCredentialIssuerConfigV2(ctx echo.Context, profileID, profileVersion string) error

OpenidCredentialIssuerConfigV2 request VCS IDP OIDC Configuration. GET /oidc/idp/{profileID}/{profileVersion}/.well-known/openid-credential-issuer.

func (*Controller) PostCredentialsStatus

func (c *Controller) PostCredentialsStatus(ctx echo.Context) error

PostCredentialsStatus updates credentialstatus.CSL. POST /issuer/credentials/status.

func (*Controller) PostIssueCredentials

func (c *Controller) PostIssueCredentials(e echo.Context, profileID, profileVersion string) error

PostIssueCredentials issues credentials. POST /issuer/profiles/{profileID}/{profileVersion}/credentials/issue.

func (*Controller) PrepareAuthorizationRequest

func (c *Controller) PrepareAuthorizationRequest(ctx echo.Context) error

PrepareAuthorizationRequest prepares claim data authorization request. POST /issuer/interactions/prepare-claim-data-authz-request.

func (*Controller) PrepareBatchCredential added in v1.8.0

func (c *Controller) PrepareBatchCredential(e echo.Context) error

PrepareBatchCredential requests claim data and prepares batch of requested VC for signing by issuer. POST /issuer/interactions/prepare-credential-batch.

func (*Controller) PrepareCredential

func (c *Controller) PrepareCredential(e echo.Context) error

PrepareCredential requests claim data and prepares VC for signing by issuer. POST /issuer/interactions/prepare-credential.

func (*Controller) PushAuthorizationDetails

func (c *Controller) PushAuthorizationDetails(ctx echo.Context) error

PushAuthorizationDetails updates authorization details. (POST /issuer/interactions/push-authorization-request).

func (*Controller) StoreAuthorizationCodeRequest

func (c *Controller) StoreAuthorizationCodeRequest(ctx echo.Context) error

StoreAuthorizationCodeRequest Stores authorization code from issuer oauth provider. POST /issuer/interactions/store-authorization-code.

func (*Controller) ValidatePreAuthorizedCodeRequest

func (c *Controller) ValidatePreAuthorizedCodeRequest(ctx echo.Context) error

ValidatePreAuthorizedCodeRequest Validates authorization code and pin. POST /issuer/interactions/validate-pre-authorized-code.

type CredentialConfigurationsSupported added in v1.8.0

type CredentialConfigurationsSupported struct {
	// For mso_mdoc and vc+sd-jwt vc only. Object containing a list of name/value pairs, where each name identifies a claim about the subject offered in the Credential. The value can be another such object (nested data structures), or an array of such objects.
	Claims *map[string]interface{} `json:"claims,omitempty"`

	// Object containing the detailed description of the credential type.
	CredentialDefinition *externalRef0.CredentialDefinition `json:"credential_definition,omitempty"`

	// Array of case sensitive strings that identify the algorithms that the Issuer uses to sign the issued Credential.
	CredentialSigningAlgValuesSupported *[]string `json:"credential_signing_alg_values_supported,omitempty"`

	// Array of case sensitive strings that identify how the Credential is bound to the identifier of the End-User who possesses the Credential.
	CryptographicBindingMethodsSupported *[]string `json:"cryptographic_binding_methods_supported,omitempty"`

	// An array of objects, where each object contains the display properties of the supported credential for a certain language.
	Display *[]CredentialDisplay `json:"display,omitempty"`

	// For mso_mdoc vc only. String identifying the Credential type, as defined in [ISO.18013-5].
	Doctype *string `json:"doctype,omitempty"`

	// A JSON string identifying the format of this credential, i.e., jwt_vc_json or ldp_vc. Depending on the format value, the object contains further elements defining the type and (optionally) particular claims the credential MAY contain and information about how to display the credential.
	Format string `json:"format"`

	// Array of the claim name values that lists them in the order they should be displayed by the Wallet.
	Order *[]string `json:"order,omitempty"`

	// Object that describes specifics of the key proof(s) that the Credential Issuer supports.
	ProofTypesSupported *CredentialConfigurationsSupported_ProofTypesSupported `json:"proof_types_supported,omitempty"`

	// A JSON string identifying the scope value that this Credential Issuer supports for this particular credential.
	Scope *string `json:"scope,omitempty"`

	// For vc+sd-jwt vc only. String designating the type of a Credential, as defined in https://datatracker.ietf.org/doc/html/draft-ietf-oauth-sd-jwt-vc-01
	Vct *string `json:"vct,omitempty"`
}

An object that describes specifics of the Credential that the Credential Issuer supports issuance of.

type CredentialConfigurationsSupported_ProofTypesSupported added in v1.8.0

type CredentialConfigurationsSupported_ProofTypesSupported struct {
	AdditionalProperties map[string]ProofTypeSupported `json:"-"`
}

Object that describes specifics of the key proof(s) that the Credential Issuer supports.

func (CredentialConfigurationsSupported_ProofTypesSupported) Get added in v1.8.0

Getter for additional properties for CredentialConfigurationsSupported_ProofTypesSupported. Returns the specified element and whether it was found

func (CredentialConfigurationsSupported_ProofTypesSupported) MarshalJSON added in v1.8.0

Override default JSON handling for CredentialConfigurationsSupported_ProofTypesSupported to handle AdditionalProperties

func (*CredentialConfigurationsSupported_ProofTypesSupported) Set added in v1.8.0

Setter for additional properties for CredentialConfigurationsSupported_ProofTypesSupported

func (*CredentialConfigurationsSupported_ProofTypesSupported) UnmarshalJSON added in v1.8.0

Override default JSON handling for CredentialConfigurationsSupported_ProofTypesSupported to handle AdditionalProperties

type CredentialDisplay

type CredentialDisplay struct {
	BackgroundColor *string `json:"background_color,omitempty"`
	Locale          *string `json:"locale,omitempty"`
	Name            *string `json:"name,omitempty"`
	TextColor       *string `json:"text_color,omitempty"`
	Url             *string `json:"url,omitempty"`
}

CredentialDisplay defines model for CredentialDisplay.

type CredentialIssuanceHistoryData added in v1.5.0

type CredentialIssuanceHistoryData struct {
	// Credential ID.
	CredentialId string `json:"credential_id"`

	// JSON array of credential types.
	CredentialTypes []string `json:"credential_types"`

	// Expiration Date.
	ExpirationDate *string `json:"expiration_date,omitempty"`

	// Issuance Date.
	IssuanceDate *string `json:"issuance_date,omitempty"`

	// Issuer identifier.
	Issuer string `json:"issuer"`

	// Transaction ID.
	TransactionId *string `json:"transaction_id,omitempty"`
}

CredentialIssuanceHistoryData represents the credential issuance history array element.

type CredentialIssuanceHistoryResponse added in v1.5.0

type CredentialIssuanceHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]CredentialIssuanceHistoryData
}

func ParseCredentialIssuanceHistoryResponse added in v1.5.0

func ParseCredentialIssuanceHistoryResponse(rsp *http.Response) (*CredentialIssuanceHistoryResponse, error)

ParseCredentialIssuanceHistoryResponse parses an HTTP response from a CredentialIssuanceHistoryWithResponse call

func (CredentialIssuanceHistoryResponse) Status added in v1.5.0

Status returns HTTPResponse.Status

func (CredentialIssuanceHistoryResponse) StatusCode added in v1.5.0

func (r CredentialIssuanceHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CredentialResponseEncryptionSupported added in v1.8.0

type CredentialResponseEncryptionSupported struct {
	// Array containing a list of the JWE [RFC7516] encryption algorithms (alg values) [RFC7518] supported by the Credential and Batch Credential Endpoint to encode the Credential or Batch Credential Response in a JWT [RFC7519].
	AlgValuesSupported []string `json:"alg_values_supported"`

	// Array containing a list of the JWE [RFC7516] encryption algorithms (enc values) [RFC7518] supported by the Credential and Batch Credential Endpoint to encode the Credential or Batch Credential Response in a JWT [RFC7519].
	EncValuesSupported []string `json:"enc_values_supported"`

	// Boolean value specifying whether the Credential Issuer requires the additional encryption on top of TLS for the Credential Response. If the value is true, the Credential Issuer requires encryption for every Credential Response and therefore the Wallet MUST provide encryption keys in the Credential Request. If the value is false, the Wallet MAY chose whether it provides encryption keys or not.
	EncryptionRequired bool `json:"encryption_required"`
}

Object containing information about whether the Credential Issuer supports encryption of the Credential and Batch Credential Response on top of TLS

type CredentialStatus

type CredentialStatus struct {
	Status string `json:"status"`
	Type   string `json:"type"`
}

Credential status.

type CredentialStatusOpt

type CredentialStatusOpt struct {
	Type string `json:"type"`
}

Options for issuing credential.

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type ExchangeAuthorizationCodeRequest

type ExchangeAuthorizationCodeRequest struct {
	// The value MUST contain two JWTs, separated by a "~" character. The first JWT is the client attestation JWT, the second is the client attestation PoP JWT.
	ClientAssertion *string `json:"client_assertion,omitempty"`

	// Specifies the method used to authenticate the client application to the authorization server (VCS). The only supported value is "urn:ietf:params:oauth:client-assertion-type:jwt-client-attestation". It indicates that the client must authenticate using OAuth 2.0 Attestation-Based Client Authentication method.
	ClientAssertionType *string `json:"client_assertion_type,omitempty"`

	// Client ID for VCS OIDC interaction.
	ClientId *string `json:"client_id,omitempty"`
	OpState  string  `json:"op_state"`
}

Model for exchanging auth code from issuer oauth

type ExchangeAuthorizationCodeRequestJSONBody

type ExchangeAuthorizationCodeRequestJSONBody = ExchangeAuthorizationCodeRequest

ExchangeAuthorizationCodeRequestJSONBody defines parameters for ExchangeAuthorizationCodeRequest.

type ExchangeAuthorizationCodeRequestJSONRequestBody

type ExchangeAuthorizationCodeRequestJSONRequestBody = ExchangeAuthorizationCodeRequestJSONBody

ExchangeAuthorizationCodeRequestJSONRequestBody defines body for ExchangeAuthorizationCodeRequest for application/json ContentType.

type ExchangeAuthorizationCodeRequestResponse

type ExchangeAuthorizationCodeRequestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ExchangeAuthorizationCodeResponse
}

func ParseExchangeAuthorizationCodeRequestResponse

func ParseExchangeAuthorizationCodeRequestResponse(rsp *http.Response) (*ExchangeAuthorizationCodeRequestResponse, error)

ParseExchangeAuthorizationCodeRequestResponse parses an HTTP response from a ExchangeAuthorizationCodeRequestWithResponse call

func (ExchangeAuthorizationCodeRequestResponse) Status

Status returns HTTPResponse.Status

func (ExchangeAuthorizationCodeRequestResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ExchangeAuthorizationCodeResponse

type ExchangeAuthorizationCodeResponse struct {
	AuthorizationDetails *[]externalRef0.AuthorizationDetails `json:"authorization_details,omitempty"`
	TxId                 string                               `json:"tx_id"`
}

Response model for exchanging auth code from issuer oauth

type GetCredentialsStatusResponse

type GetCredentialsStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParseGetCredentialsStatusResponse

func ParseGetCredentialsStatusResponse(rsp *http.Response) (*GetCredentialsStatusResponse, error)

ParseGetCredentialsStatusResponse parses an HTTP response from a GetCredentialsStatusWithResponse call

func (GetCredentialsStatusResponse) Status

Status returns HTTPResponse.Status

func (GetCredentialsStatusResponse) StatusCode

func (r GetCredentialsStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InitiateCredentialIssuanceJSONBody

type InitiateCredentialIssuanceJSONBody = InitiateOIDC4CIRequest

InitiateCredentialIssuanceJSONBody defines parameters for InitiateCredentialIssuance.

type InitiateCredentialIssuanceJSONRequestBody

type InitiateCredentialIssuanceJSONRequestBody = InitiateCredentialIssuanceJSONBody

InitiateCredentialIssuanceJSONRequestBody defines body for InitiateCredentialIssuance for application/json ContentType.

type InitiateCredentialIssuanceResponse

type InitiateCredentialIssuanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InitiateOIDC4CIResponse
}

func ParseInitiateCredentialIssuanceResponse

func ParseInitiateCredentialIssuanceResponse(rsp *http.Response) (*InitiateCredentialIssuanceResponse, error)

ParseInitiateCredentialIssuanceResponse parses an HTTP response from a InitiateCredentialIssuanceWithResponse call

func (InitiateCredentialIssuanceResponse) Status

Status returns HTTPResponse.Status

func (InitiateCredentialIssuanceResponse) StatusCode

func (r InitiateCredentialIssuanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InitiateIssuanceCredentialConfiguration added in v1.8.0

type InitiateIssuanceCredentialConfiguration struct {
	// Required for Pre-Authorized Code Flow. VCS OIDC Service acts as OP for wallet applications
	ClaimData *map[string]interface{} `json:"claim_data"`

	// Claim endpoint of the Issuer from where credential claim data has to be requested after successfully acquiring access tokens.
	ClaimEndpoint *string `json:"claim_endpoint"`

	// Model for composing OIDC4CI credential.
	Compose *ComposeOIDC4CICredential `json:"compose,omitempty"`

	// Credential description
	CredentialDescription *string `json:"credential_description,omitempty"`

	// Date when credentials should be consider as expired
	CredentialExpiresAt *time.Time `json:"credential_expires_at,omitempty"`

	// Credential name
	CredentialName *string `json:"credential_name,omitempty"`

	// Template of the credential to be issued while successfully concluding this interaction. REQUIRED, if the profile is configured to use multiple credential templates.
	CredentialTemplateId *string `json:"credential_template_id,omitempty"`
}

An object that describes specifics of the Multiple Credential Issuance.

type InitiateOIDC4CIRequest

type InitiateOIDC4CIRequest struct {
	// Customizes what kind of access Issuer wants to give to VCS.
	AuthorizationDetails *string `json:"authorization_details,omitempty"`

	// Required for Pre-Authorized Code Flow. VCS OIDC Service acts as OP for wallet applications
	ClaimData *map[string]interface{} `json:"claim_data"`

	// Claim endpoint of the Issuer from where credential claim data has to be requested after successfully acquiring access tokens.
	ClaimEndpoint *string `json:"claim_endpoint,omitempty"`

	// URL of the issuance initiation endpoint of a Wallet. Takes precedence over client_wellknown request parameter. If both client_initiate_issuance_url and client_wellknown are not provided then response initiate issuance URL will contain custom initiate issuance URL in format openid-initiate-issuance://.
	ClientInitiateIssuanceUrl *string `json:"client_initiate_issuance_url,omitempty"`

	// String containing wallet/holder application OIDC client wellknown configuration URL.
	ClientWellknown *string `json:"client_wellknown,omitempty"`

	// An array of objects that describes specifics of the Multiple Credential Issuance.
	CredentialConfiguration *[]InitiateIssuanceCredentialConfiguration `json:"credential_configuration,omitempty"`

	// Credential description
	CredentialDescription *string `json:"credential_description,omitempty"`

	// Date when credentials should be consider as expired
	CredentialExpiresAt *time.Time `json:"credential_expires_at,omitempty"`

	// Credential name
	CredentialName *string `json:"credential_name,omitempty"`

	// Template of the credential to be issued while successfully concluding this interaction. REQUIRED, if the profile is configured to use multiple credential templates.
	CredentialTemplateId *string `json:"credential_template_id,omitempty"`

	// Issuer can provide custom grant types through this parameter. This grant type has to be used while exchanging an access token for authorization code in later steps.
	GrantType *InitiateOIDC4CIRequestGrantType `json:"grant_type,omitempty"`

	// String value created by the Credential Issuer and opaque to the Wallet that is used to bind the sub-sequent authentication request with the Credential Issuer to a context set up during previous steps. If the client receives a value for this parameter, it MUST include it in the subsequent Authentication Request to the Credential Issuer as the op_state parameter value. MUST NOT be used in Authorization Code flow when pre-authorized_code is present.
	OpState *string `json:"op_state,omitempty"`

	// Contains response type that issuer expects VCS to use while performing OIDC authorization request. Defaults to token.
	ResponseType *string `json:"response_type,omitempty"`

	// Contains scopes that issuer expects VCS to use while requesting authorization code for claim data. Defaults to openid.
	Scope *[]string `json:"scope,omitempty"`

	// Required for Pre-Authorized Code Flow. Boolean value specifying whether the issuer expects presentation of a user PIN along with the Token Request in a pre-authorized code flow.
	UserPinRequired *bool `json:"user_pin_required,omitempty"`

	// Boolean flags indicates whether given transaction is initiated by Wallet.
	WalletInitiatedIssuance *bool `json:"wallet_initiated_issuance,omitempty"`
}

Model for Initiate OIDC Credential Issuance Request.

type InitiateOIDC4CIRequestGrantType added in v1.8.0

type InitiateOIDC4CIRequestGrantType string

Issuer can provide custom grant types through this parameter. This grant type has to be used while exchanging an access token for authorization code in later steps.

const (
	AuthorizationCode                            InitiateOIDC4CIRequestGrantType = "authorization_code"
	UrnIetfParamsOauthGrantTypePreAuthorizedCode InitiateOIDC4CIRequestGrantType = "urn:ietf:params:oauth:grant-type:pre-authorized_code"
)

Defines values for InitiateOIDC4CIRequestGrantType.

type InitiateOIDC4CIResponse

type InitiateOIDC4CIResponse struct {
	// OIDC4CI initiate issuance URL to be used by the Issuer to pass relevant information to the Wallet to initiate issuance flow. Supports both HTTP GET and HTTP Redirect. Issuers may present QR code containing request data for users to scan from their mobile Wallet app.
	OfferCredentialUrl string `json:"offer_credential_url"`

	// To be used by Issuer applications for correlation if needed.
	TxId string `json:"tx_id"`

	// Pre-authorized flow. Generated OTP pin for issuance.
	UserPin *string `json:"user_pin,omitempty"`
}

Model for Initiate OIDC Credential Issuance Response.

type IssueCredentialData

type IssueCredentialData struct {
	// Should be specified if using credential template
	Claims *map[string]interface{} `json:"claims,omitempty"`

	// Credential in jws(string) or jsonld(object) formats.
	Credential *interface{} `json:"credential,omitempty"`

	// Credential description
	CredentialDescription *string `json:"credential_description,omitempty"`

	// Credential name
	CredentialName *string `json:"credential_name,omitempty"`

	// Credential template id
	CredentialTemplateId *string `json:"credential_template_id,omitempty"`

	// Options for issuing credential.
	Options *IssueCredentialOptions `json:"options,omitempty"`
}

Model for issuer credential.

type IssueCredentialOptions

type IssueCredentialOptions struct {
	// Chalange is added to the proof.
	Challenge *string `json:"challenge,omitempty"`

	// The date of the proof. If omitted system time will be used.
	Created *string `json:"created,omitempty"`

	// Options for issuing credential.
	CredentialStatus *CredentialStatusOpt `json:"credentialStatus,omitempty"`

	// Domain is added to the proof.
	Domain *string `json:"domain,omitempty"`

	// The URI of the verificationMethod used for the proof. If omitted first ed25519 public key of DID (Issuer or Profile DID) will be used.
	VerificationMethod *string `json:"verificationMethod,omitempty"`
}

Options for issuing credential.

type Logo struct {
	AltText *string `json:"alt_text,omitempty"`

	// String value that contains a URI where the Wallet can obtain the logo of the Credential Issuer.
	Uri string `json:"uri"`
}

Logo defines model for Logo.

type OAuthParameters

type OAuthParameters struct {
	ClientId     string   `json:"client_id"`
	ClientSecret string   `json:"client_secret"`
	ResponseType string   `json:"response_type"`
	Scope        []string `json:"scope"`
}

Model with key value pairs containing parameters to build OIDC core authorization request (RFC6749) for Issuer OIDC provider to perform wallet user authorization grant.

type OpenidCredentialIssuerConfigResponse

type OpenidCredentialIssuerConfigResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WellKnownOpenIDIssuerConfiguration
}

func ParseOpenidCredentialIssuerConfigResponse

func ParseOpenidCredentialIssuerConfigResponse(rsp *http.Response) (*OpenidCredentialIssuerConfigResponse, error)

ParseOpenidCredentialIssuerConfigResponse parses an HTTP response from a OpenidCredentialIssuerConfigWithResponse call

func (OpenidCredentialIssuerConfigResponse) Status

Status returns HTTPResponse.Status

func (OpenidCredentialIssuerConfigResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type OpenidCredentialIssuerConfigV2Response added in v1.5.0

type OpenidCredentialIssuerConfigV2Response struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WellKnownOpenIDIssuerConfiguration
}

func ParseOpenidCredentialIssuerConfigV2Response added in v1.5.0

func ParseOpenidCredentialIssuerConfigV2Response(rsp *http.Response) (*OpenidCredentialIssuerConfigV2Response, error)

ParseOpenidCredentialIssuerConfigV2Response parses an HTTP response from a OpenidCredentialIssuerConfigV2WithResponse call

func (OpenidCredentialIssuerConfigV2Response) Status added in v1.5.0

Status returns HTTPResponse.Status

func (OpenidCredentialIssuerConfigV2Response) StatusCode added in v1.5.0

StatusCode returns HTTPResponse.StatusCode

type PostCredentialsStatusJSONBody

type PostCredentialsStatusJSONBody = UpdateCredentialStatusRequest

PostCredentialsStatusJSONBody defines parameters for PostCredentialsStatus.

type PostCredentialsStatusJSONRequestBody

type PostCredentialsStatusJSONRequestBody = PostCredentialsStatusJSONBody

PostCredentialsStatusJSONRequestBody defines body for PostCredentialsStatus for application/json ContentType.

type PostCredentialsStatusResponse

type PostCredentialsStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParsePostCredentialsStatusResponse

func ParsePostCredentialsStatusResponse(rsp *http.Response) (*PostCredentialsStatusResponse, error)

ParsePostCredentialsStatusResponse parses an HTTP response from a PostCredentialsStatusWithResponse call

func (PostCredentialsStatusResponse) Status

Status returns HTTPResponse.Status

func (PostCredentialsStatusResponse) StatusCode

func (r PostCredentialsStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostIssueCredentialsJSONBody

type PostIssueCredentialsJSONBody = IssueCredentialData

PostIssueCredentialsJSONBody defines parameters for PostIssueCredentials.

type PostIssueCredentialsJSONRequestBody

type PostIssueCredentialsJSONRequestBody = PostIssueCredentialsJSONBody

PostIssueCredentialsJSONRequestBody defines body for PostIssueCredentials for application/json ContentType.

type PostIssueCredentialsResponse

type PostIssueCredentialsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
}

func ParsePostIssueCredentialsResponse

func ParsePostIssueCredentialsResponse(rsp *http.Response) (*PostIssueCredentialsResponse, error)

ParsePostIssueCredentialsResponse parses an HTTP response from a PostIssueCredentialsWithResponse call

func (PostIssueCredentialsResponse) Status

Status returns HTTPResponse.Status

func (PostIssueCredentialsResponse) StatusCode

func (r PostIssueCredentialsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PrepareAuthorizationRequestJSONBody

type PrepareAuthorizationRequestJSONBody = PrepareClaimDataAuthorizationRequest

PrepareAuthorizationRequestJSONBody defines parameters for PrepareAuthorizationRequest.

type PrepareAuthorizationRequestJSONRequestBody

type PrepareAuthorizationRequestJSONRequestBody = PrepareAuthorizationRequestJSONBody

PrepareAuthorizationRequestJSONRequestBody defines body for PrepareAuthorizationRequest for application/json ContentType.

type PrepareAuthorizationRequestResponse

type PrepareAuthorizationRequestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PrepareClaimDataAuthorizationResponse
}

func ParsePrepareAuthorizationRequestResponse

func ParsePrepareAuthorizationRequestResponse(rsp *http.Response) (*PrepareAuthorizationRequestResponse, error)

ParsePrepareAuthorizationRequestResponse parses an HTTP response from a PrepareAuthorizationRequestWithResponse call

func (PrepareAuthorizationRequestResponse) Status

Status returns HTTPResponse.Status

func (PrepareAuthorizationRequestResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PrepareBatchCredential added in v1.8.0

type PrepareBatchCredential struct {
	CredentialRequests []PrepareCredentialBase `json:"credential_requests"`

	// Transaction ID.
	TxId string `json:"tx_id"`
}

Model for Prepare Batch Credential request.

type PrepareBatchCredentialJSONBody added in v1.8.0

type PrepareBatchCredentialJSONBody = PrepareBatchCredential

PrepareBatchCredentialJSONBody defines parameters for PrepareBatchCredential.

type PrepareBatchCredentialJSONRequestBody added in v1.8.0

type PrepareBatchCredentialJSONRequestBody = PrepareBatchCredentialJSONBody

PrepareBatchCredentialJSONRequestBody defines body for PrepareBatchCredential for application/json ContentType.

type PrepareBatchCredentialResponse added in v1.8.0

type PrepareBatchCredentialResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]PrepareCredentialResult
}

func ParsePrepareBatchCredentialResponse added in v1.8.0

func ParsePrepareBatchCredentialResponse(rsp *http.Response) (*PrepareBatchCredentialResponse, error)

ParsePrepareBatchCredentialResponse parses an HTTP response from a PrepareBatchCredentialWithResponse call

func (PrepareBatchCredentialResponse) Status added in v1.8.0

Status returns HTTPResponse.Status

func (PrepareBatchCredentialResponse) StatusCode added in v1.8.0

func (r PrepareBatchCredentialResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PrepareClaimDataAuthorizationRequest

type PrepareClaimDataAuthorizationRequest struct {
	AuthorizationDetails *[]externalRef0.AuthorizationDetails `json:"authorization_details,omitempty"`
	OpState              string                               `json:"op_state"`

	// Value MUST be set to "code".
	ResponseType string    `json:"response_type"`
	Scope        *[]string `json:"scope,omitempty"`
}

Model for Prepare Claim Data Authorization Request.

type PrepareClaimDataAuthorizationResponse

type PrepareClaimDataAuthorizationResponse struct {
	// Issuer's OIDC provider authorization endpoint.
	AuthorizationEndpoint string `json:"authorization_endpoint"`

	// Model with key value pairs containing parameters to build OIDC core authorization request (RFC6749) for Issuer OIDC provider to perform wallet user authorization grant.
	AuthorizationRequest OAuthParameters `json:"authorization_request"`

	// Profile specific Auth state TTL.
	ProfileAuthStateTtl int `json:"profile_auth_state_ttl"`

	// Issuer's OIDC provider PAR endpoint.
	PushedAuthorizationRequestEndpoint *string `json:"pushed_authorization_request_endpoint,omitempty"`

	// Transaction ID to correlate upcoming authorization response.
	TxId                string                                `json:"tx_id"`
	WalletInitiatedFlow *externalRef0.WalletInitiatedFlowData `json:"wallet_initiated_flow"`
}

Model for Prepare Claim Data Authorization Response.

type PrepareCredential

type PrepareCredential struct {
	// The "aud" claim received from the client.
	AudienceClaim string `json:"audienceClaim"`

	// DID to which issued credential has to be bound.
	Did *string `json:"did,omitempty"`

	// Format of the credential being issued.
	Format *string `json:"format,omitempty"`

	// Hashed token received from the client.
	HashedToken string `json:"hashed_token"`

	// Object containing requested information for encrypting the Credential Response.
	RequestedCredentialResponseEncryption *RequestedCredentialResponseEncryption `json:"requested_credential_response_encryption,omitempty"`

	// Transaction ID.
	TxId string `json:"tx_id"`

	// Array of types of the credential being issued.
	Types []string `json:"types"`
}

PrepareCredential defines model for PrepareCredential.

type PrepareCredentialBase added in v1.8.0

type PrepareCredentialBase struct {
	// The "aud" claim received from the client.
	AudienceClaim string `json:"audienceClaim"`

	// DID to which issued credential has to be bound.
	Did *string `json:"did,omitempty"`

	// Format of the credential being issued.
	Format *string `json:"format,omitempty"`

	// Hashed token received from the client.
	HashedToken string `json:"hashed_token"`

	// Object containing requested information for encrypting the Credential Response.
	RequestedCredentialResponseEncryption *RequestedCredentialResponseEncryption `json:"requested_credential_response_encryption,omitempty"`

	// Array of types of the credential being issued.
	Types []string `json:"types"`
}

PrepareCredential Base model.

type PrepareCredentialJSONBody

type PrepareCredentialJSONBody = PrepareCredential

PrepareCredentialJSONBody defines parameters for PrepareCredential.

type PrepareCredentialJSONRequestBody

type PrepareCredentialJSONRequestBody = PrepareCredentialJSONBody

PrepareCredentialJSONRequestBody defines body for PrepareCredential for application/json ContentType.

type PrepareCredentialResponse

type PrepareCredentialResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PrepareCredentialResult
}

func ParsePrepareCredentialResponse

func ParsePrepareCredentialResponse(rsp *http.Response) (*PrepareCredentialResponse, error)

ParsePrepareCredentialResponse parses an HTTP response from a PrepareCredentialWithResponse call

func (PrepareCredentialResponse) Status

func (r PrepareCredentialResponse) Status() string

Status returns HTTPResponse.Status

func (PrepareCredentialResponse) StatusCode

func (r PrepareCredentialResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PrepareCredentialResult

type PrepareCredentialResult struct {
	Credential interface{} `json:"credential"`

	// Format of issued credential.
	Format string `json:"format"`

	// String identifying an issued Credential that the Wallet includes in the acknowledgement request.
	NotificationId *string `json:"notification_id,omitempty"`

	// OIDC credential format
	OidcFormat string `json:"oidc_format"`

	// TRUE if claim data is not yet available in the issuer OP server. This will indicate VCS OIDC to issue acceptance_token instead of credential response (Deferred Credential flow).
	Retry bool `json:"retry"`
}

Model for Prepare Credential response.

type ProofTypeSupported added in v1.8.0

type ProofTypeSupported struct {
	// Array of case sensitive strings that identify the algorithms that the Issuer supports for this proof type.
	ProofSigningAlgValuesSupported []string `json:"proof_signing_alg_values_supported"`
}

Object that contains metadata about the proof type that the Credential Issuer supports.

type PushAuthorizationDetailsJSONBody

type PushAuthorizationDetailsJSONBody = PushAuthorizationDetailsRequest

PushAuthorizationDetailsJSONBody defines parameters for PushAuthorizationDetails.

type PushAuthorizationDetailsJSONRequestBody

type PushAuthorizationDetailsJSONRequestBody = PushAuthorizationDetailsJSONBody

PushAuthorizationDetailsJSONRequestBody defines body for PushAuthorizationDetails for application/json ContentType.

type PushAuthorizationDetailsRequest

type PushAuthorizationDetailsRequest struct {
	AuthorizationDetails []externalRef0.AuthorizationDetails `json:"authorization_details"`
	OpState              string                              `json:"op_state"`
}

Model for Push Authorization Details request.

type PushAuthorizationDetailsResponse

type PushAuthorizationDetailsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePushAuthorizationDetailsResponse

func ParsePushAuthorizationDetailsResponse(rsp *http.Response) (*PushAuthorizationDetailsResponse, error)

ParsePushAuthorizationDetailsResponse parses an HTTP response from a PushAuthorizationDetailsWithResponse call

func (PushAuthorizationDetailsResponse) Status

Status returns HTTPResponse.Status

func (PushAuthorizationDetailsResponse) StatusCode

func (r PushAuthorizationDetailsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestedCredentialResponseEncryption added in v1.8.0

type RequestedCredentialResponseEncryption struct {
	// JWE alg algorithm for encrypting the Credential Response.
	Alg string `json:"alg"`

	// JWE enc algorithm for encrypting the Credential Response.
	Enc string `json:"enc"`
}

Object containing requested information for encrypting the Credential Response.

type ServerInterface

type ServerInterface interface {
	// Updates credential status.
	// (POST /issuer/credentials/status)
	PostCredentialsStatus(ctx echo.Context) error
	// Retrieves the credential status.
	// (GET /issuer/groups/{groupID}/credentials/status/{statusID})
	GetCredentialsStatus(ctx echo.Context, groupID string, statusID string) error
	// Exchange authorization code from issuer oauth provider
	// (POST /issuer/interactions/exchange-authorization-code)
	ExchangeAuthorizationCodeRequest(ctx echo.Context) error
	// Prepare Claim Data Authorization Request
	// (POST /issuer/interactions/prepare-claim-data-authz-request)
	PrepareAuthorizationRequest(ctx echo.Context) error
	// Prepare Credential
	// (POST /issuer/interactions/prepare-credential)
	PrepareCredential(ctx echo.Context) error
	// Prepare Batch Credential
	// (POST /issuer/interactions/prepare-credential-batch)
	PrepareBatchCredential(ctx echo.Context) error
	// Push Authorization Details
	// (POST /issuer/interactions/push-authorization-request)
	PushAuthorizationDetails(ctx echo.Context) error
	// Stores authorization code from issuer oauth provider
	// (POST /issuer/interactions/store-authorization-code)
	StoreAuthorizationCodeRequest(ctx echo.Context) error
	// Validates pre-authorized code and user pin
	// (POST /issuer/interactions/validate-pre-authorized-code)
	ValidatePreAuthorizedCodeRequest(ctx echo.Context) error
	// Request Credential Issuance history.
	// (GET /issuer/profiles/{profileID}/issued-credentials)
	CredentialIssuanceHistory(ctx echo.Context, profileID string) error
	// Issue credential
	// (POST /issuer/profiles/{profileID}/{profileVersion}/credentials/issue)
	PostIssueCredentials(ctx echo.Context, profileID string, profileVersion string) error
	// Initiate OIDC Credential Issuance
	// (POST /issuer/profiles/{profileID}/{profileVersion}/interactions/initiate-oidc)
	InitiateCredentialIssuance(ctx echo.Context, profileID string, profileVersion string) error
	// Request VCS IDP OIDC Configuration.
	// (GET /issuer/{profileID}/{profileVersion}/.well-known/openid-credential-issuer)
	OpenidCredentialIssuerConfig(ctx echo.Context, profileID string, profileVersion string) error
	// Request VCS IDP OIDC Configuration.
	// (GET /oidc/idp/{profileID}/{profileVersion}/.well-known/openid-credential-issuer)
	OpenidCredentialIssuerConfigV2(ctx echo.Context, profileID string, profileVersion string) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) CredentialIssuanceHistory added in v1.5.0

func (w *ServerInterfaceWrapper) CredentialIssuanceHistory(ctx echo.Context) error

CredentialIssuanceHistory converts echo context to params.

func (*ServerInterfaceWrapper) ExchangeAuthorizationCodeRequest

func (w *ServerInterfaceWrapper) ExchangeAuthorizationCodeRequest(ctx echo.Context) error

ExchangeAuthorizationCodeRequest converts echo context to params.

func (*ServerInterfaceWrapper) GetCredentialsStatus

func (w *ServerInterfaceWrapper) GetCredentialsStatus(ctx echo.Context) error

GetCredentialsStatus converts echo context to params.

func (*ServerInterfaceWrapper) InitiateCredentialIssuance

func (w *ServerInterfaceWrapper) InitiateCredentialIssuance(ctx echo.Context) error

InitiateCredentialIssuance converts echo context to params.

func (*ServerInterfaceWrapper) OpenidCredentialIssuerConfig

func (w *ServerInterfaceWrapper) OpenidCredentialIssuerConfig(ctx echo.Context) error

OpenidCredentialIssuerConfig converts echo context to params.

func (*ServerInterfaceWrapper) OpenidCredentialIssuerConfigV2 added in v1.5.0

func (w *ServerInterfaceWrapper) OpenidCredentialIssuerConfigV2(ctx echo.Context) error

OpenidCredentialIssuerConfigV2 converts echo context to params.

func (*ServerInterfaceWrapper) PostCredentialsStatus

func (w *ServerInterfaceWrapper) PostCredentialsStatus(ctx echo.Context) error

PostCredentialsStatus converts echo context to params.

func (*ServerInterfaceWrapper) PostIssueCredentials

func (w *ServerInterfaceWrapper) PostIssueCredentials(ctx echo.Context) error

PostIssueCredentials converts echo context to params.

func (*ServerInterfaceWrapper) PrepareAuthorizationRequest

func (w *ServerInterfaceWrapper) PrepareAuthorizationRequest(ctx echo.Context) error

PrepareAuthorizationRequest converts echo context to params.

func (*ServerInterfaceWrapper) PrepareBatchCredential added in v1.8.0

func (w *ServerInterfaceWrapper) PrepareBatchCredential(ctx echo.Context) error

PrepareBatchCredential converts echo context to params.

func (*ServerInterfaceWrapper) PrepareCredential

func (w *ServerInterfaceWrapper) PrepareCredential(ctx echo.Context) error

PrepareCredential converts echo context to params.

func (*ServerInterfaceWrapper) PushAuthorizationDetails

func (w *ServerInterfaceWrapper) PushAuthorizationDetails(ctx echo.Context) error

PushAuthorizationDetails converts echo context to params.

func (*ServerInterfaceWrapper) StoreAuthorizationCodeRequest

func (w *ServerInterfaceWrapper) StoreAuthorizationCodeRequest(ctx echo.Context) error

StoreAuthorizationCodeRequest converts echo context to params.

func (*ServerInterfaceWrapper) ValidatePreAuthorizedCodeRequest

func (w *ServerInterfaceWrapper) ValidatePreAuthorizedCodeRequest(ctx echo.Context) error

ValidatePreAuthorizedCodeRequest converts echo context to params.

type StoreAuthorizationCodeRequest

type StoreAuthorizationCodeRequest struct {
	Code                string                                `json:"code"`
	OpState             string                                `json:"op_state"`
	WalletInitiatedFlow *externalRef0.WalletInitiatedFlowData `json:"wallet_initiated_flow"`
}

Model for storing auth code from issuer oauth

type StoreAuthorizationCodeRequestJSONBody

type StoreAuthorizationCodeRequestJSONBody = StoreAuthorizationCodeRequest

StoreAuthorizationCodeRequestJSONBody defines parameters for StoreAuthorizationCodeRequest.

type StoreAuthorizationCodeRequestJSONRequestBody

type StoreAuthorizationCodeRequestJSONRequestBody = StoreAuthorizationCodeRequestJSONBody

StoreAuthorizationCodeRequestJSONRequestBody defines body for StoreAuthorizationCodeRequest for application/json ContentType.

type StoreAuthorizationCodeRequestResponse

type StoreAuthorizationCodeRequestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *StoreAuthorizationCodeResponse
}

func ParseStoreAuthorizationCodeRequestResponse

func ParseStoreAuthorizationCodeRequestResponse(rsp *http.Response) (*StoreAuthorizationCodeRequestResponse, error)

ParseStoreAuthorizationCodeRequestResponse parses an HTTP response from a StoreAuthorizationCodeRequestWithResponse call

func (StoreAuthorizationCodeRequestResponse) Status

Status returns HTTPResponse.Status

func (StoreAuthorizationCodeRequestResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type StoreAuthorizationCodeResponse

type StoreAuthorizationCodeResponse struct {
	TxId *string `json:"tx_id,omitempty"`
}

Response model for storing auth code from issuer oauth

type UpdateCredentialStatusRequest

type UpdateCredentialStatusRequest struct {
	CredentialID string `json:"credentialID"`

	// Credential status.
	CredentialStatus CredentialStatus `json:"credentialStatus"`
	ProfileID        string           `json:"profileID"`
	ProfileVersion   string           `json:"profileVersion"`
}

UpdateCredentialStatusRequest request struct for updating VC status.

type ValidatePreAuthorizedCodeRequest

type ValidatePreAuthorizedCodeRequest struct {
	// The value MUST contain two JWTs, separated by a "~" character. The first JWT is the client attestation JWT, the second is the client attestation PoP JWT.
	ClientAssertion *string `json:"client_assertion,omitempty"`

	// Specifies the method used to authenticate the client application to the authorization server (VCS). The only supported value is "urn:ietf:params:oauth:client-assertion-type:jwt-client-attestation". It indicates that the client must authenticate using OAuth 2.0 Attestation-Based Client Authentication method.
	ClientAssertionType *string `json:"client_assertion_type,omitempty"`

	// Client ID for VCS OIDC interaction.
	ClientId *string `json:"client_id,omitempty"`

	// Pre authorized code.
	PreAuthorizedCode string `json:"pre-authorized_code"`

	// User pin.
	UserPin *string `json:"user_pin,omitempty"`
}

Model for validating pre-authorized code and pin.

type ValidatePreAuthorizedCodeRequestJSONBody

type ValidatePreAuthorizedCodeRequestJSONBody = ValidatePreAuthorizedCodeRequest

ValidatePreAuthorizedCodeRequestJSONBody defines parameters for ValidatePreAuthorizedCodeRequest.

type ValidatePreAuthorizedCodeRequestJSONRequestBody

type ValidatePreAuthorizedCodeRequestJSONRequestBody = ValidatePreAuthorizedCodeRequestJSONBody

ValidatePreAuthorizedCodeRequestJSONRequestBody defines body for ValidatePreAuthorizedCodeRequest for application/json ContentType.

type ValidatePreAuthorizedCodeRequestResponse

type ValidatePreAuthorizedCodeRequestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ValidatePreAuthorizedCodeResponse
}

func ParseValidatePreAuthorizedCodeRequestResponse

func ParseValidatePreAuthorizedCodeRequestResponse(rsp *http.Response) (*ValidatePreAuthorizedCodeRequestResponse, error)

ParseValidatePreAuthorizedCodeRequestResponse parses an HTTP response from a ValidatePreAuthorizedCodeRequestWithResponse call

func (ValidatePreAuthorizedCodeRequestResponse) Status

Status returns HTTPResponse.Status

func (ValidatePreAuthorizedCodeRequestResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ValidatePreAuthorizedCodeResponse

type ValidatePreAuthorizedCodeResponse struct {
	// REQUIRED when authorization_details parameter is used to request issuance of a certain Credential type as defined in Section 5.1.1. It MUST NOT be used otherwise. It is an array of objects, as defined in Section 7 of [RFC9396].
	AuthorizationDetails *[]externalRef0.AuthorizationDetails `json:"authorization_details,omitempty"`

	// Op state.
	OpState string `json:"op_state"`

	// A list of pre-authorized scopes
	Scopes []string `json:"scopes"`

	// transaction id
	TxId string `json:"tx_id"`
}

Model for validating pre-authorized code and pin.

type WellKnownOpenIDIssuerConfiguration

type WellKnownOpenIDIssuerConfiguration struct {
	// URL of the OP's OAuth 2.0 Authorization Endpoint.
	AuthorizationEndpoint *string `json:"authorization_endpoint,omitempty"`

	// URL of the Credential Issuer's Batch Credential Endpoint. This URL MUST use the https scheme and MAY contain port, path and query parameter components. If omitted, the Credential Issuer does not support the Batch Credential Endpoint.
	BatchCredentialEndpoint *string `json:"batch_credential_endpoint,omitempty"`

	// An object that describes specifics of the Credential that the Credential Issuer supports issuance of. This object contains a list of name/value pairs, where each name is a unique identifier of the supported credential being described.
	CredentialConfigurationsSupported *WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported `json:"credential_configurations_supported,omitempty"`

	// URL of the Credential Issuer's Credential Endpoint. This URL MUST use the https scheme and MAY contain port, path and query parameter components.
	CredentialEndpoint *string `json:"credential_endpoint,omitempty"`

	// Boolean value specifying whether the Credential Issuer supports returning credential_identifiers parameter in the authorization_details Token Response parameter, with true indicating support. If omitted, the default value is false.
	CredentialIdentifiersSupported *bool `json:"credential_identifiers_supported,omitempty"`

	// The Credential Issuer's identifier.
	CredentialIssuer *string `json:"credential_issuer,omitempty"`

	// Object containing information about whether the Credential Issuer supports encryption of the Credential and Batch Credential Response on top of TLS
	CredentialResponseEncryption *CredentialResponseEncryptionSupported `json:"credential_response_encryption,omitempty"`

	// URL of the Credential Issuer's Deferred Credential Endpoint. This URL MUST use the https scheme and MAY contain port, path, and query parameter components. If omitted, the Credential Issuer does not support the Deferred Credential Endpoint.
	DeferredCredentialEndpoint *string `json:"deferred_credential_endpoint,omitempty"`

	// An array of objects, where each object contains display properties of a Credential Issuer for a certain language.
	Display *[]CredentialDisplay `json:"display,omitempty"`

	// JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
	GrantTypesSupported *[]string `json:"grant_types_supported,omitempty"`

	// URL of the Credential Issuer's Notification Endpoint. This URL MUST use the https scheme and MAY contain port, path, and query parameter components. If omitted, the Credential Issuer does not support the Notification Endpoint.
	NotificationEndpoint *string `json:"notification_endpoint,omitempty"`

	// JSON Boolean indicating whether the issuer accepts a Token Request with a Pre-Authorized Code but without a client id. The default is false.
	PreAuthorizedGrantAnonymousAccessSupported *bool `json:"pre-authorized_grant_anonymous_access_supported,omitempty"`

	// URL of the OP's Dynamic Client Registration Endpoint.
	RegistrationEndpoint *string `json:"registration_endpoint,omitempty"`

	// JSON array containing a list of the OAuth 2.0 response_type values that this OP supports.
	ResponseTypesSupported *[]string `json:"response_types_supported,omitempty"`

	// JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports.
	ScopesSupported *[]string `json:"scopes_supported,omitempty"`

	// String that is a signed JWT. This JWT contains Credential Issuer metadata parameters as claims.
	SignedMetadata *string `json:"signed_metadata,omitempty"`

	// URL of the OP's OAuth 2.0 Token Endpoint.
	TokenEndpoint *string `json:"token_endpoint,omitempty"`

	// JSON array containing a list of client authentication methods supported by this token endpoint. Default is "none".
	TokenEndpointAuthMethodsSupported *[]string `json:"token_endpoint_auth_methods_supported,omitempty"`
}

WellKnownOpenIDIssuerConfiguration represents the OIDC Configuration response for cases when VCS serves as IDP.

type WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported added in v1.8.0

type WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported struct {
	AdditionalProperties map[string]CredentialConfigurationsSupported `json:"-"`
}

An object that describes specifics of the Credential that the Credential Issuer supports issuance of. This object contains a list of name/value pairs, where each name is a unique identifier of the supported credential being described.

func (WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported) Get added in v1.8.0

Getter for additional properties for WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported. Returns the specified element and whether it was found

func (WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported) MarshalJSON added in v1.8.0

Override default JSON handling for WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported to handle AdditionalProperties

func (*WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported) Set added in v1.8.0

Setter for additional properties for WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported

func (*WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported) UnmarshalJSON added in v1.8.0

Override default JSON handling for WellKnownOpenIDIssuerConfiguration_CredentialConfigurationsSupported to handle AdditionalProperties

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL