issuer

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 38 Imported by: 4

Documentation

Overview

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

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 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, params *CredentialIssuanceHistoryParams) (*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 NewInitiateCredentialComposeIssuanceRequest added in v1.10.0

func NewInitiateCredentialComposeIssuanceRequest(server string, profileID string, profileVersion string, body InitiateCredentialComposeIssuanceJSONRequestBody) (*http.Request, error)

NewInitiateCredentialComposeIssuanceRequest calls the generic InitiateCredentialComposeIssuance builder with application/json body

func NewInitiateCredentialComposeIssuanceRequestWithBody added in v1.10.0

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

NewInitiateCredentialComposeIssuanceRequestWithBody generates requests for InitiateCredentialComposeIssuance with any type of body

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 NewSetCredentialRefreshStateRequest added in v1.11.0

func NewSetCredentialRefreshStateRequest(server string, profileID string, profileVersion string, body SetCredentialRefreshStateJSONRequestBody) (*http.Request, error)

NewSetCredentialRefreshStateRequest calls the generic SetCredentialRefreshState builder with application/json body

func NewSetCredentialRefreshStateRequestWithBody added in v1.11.0

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

NewSetCredentialRefreshStateRequestWithBody generates requests for SetCredentialRefreshState 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, params *CredentialIssuanceHistoryParams, 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) InitiateCredentialComposeIssuance added in v1.10.0

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

func (*Client) InitiateCredentialComposeIssuanceWithBody added in v1.10.0

func (c *Client) InitiateCredentialComposeIssuanceWithBody(ctx context.Context, profileID string, profileVersion string, contentType string, body io.Reader, 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) SetCredentialRefreshState added in v1.11.0

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

func (*Client) SetCredentialRefreshStateWithBody added in v1.11.0

func (c *Client) SetCredentialRefreshStateWithBody(ctx context.Context, profileID string, profileVersion string, 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 {
	// PostCredentialsStatusWithBody 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)

	// ExchangeAuthorizationCodeRequestWithBody 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)

	// PrepareAuthorizationRequestWithBody 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)

	// PrepareCredentialWithBody 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)

	// PrepareBatchCredentialWithBody 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)

	// PushAuthorizationDetailsWithBody 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)

	// StoreAuthorizationCodeRequestWithBody 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)

	// ValidatePreAuthorizedCodeRequestWithBody 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, params *CredentialIssuanceHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostIssueCredentialsWithBody 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)

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

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

	// InitiateCredentialIssuanceWithBody 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)

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

	SetCredentialRefreshState(ctx context.Context, profileID string, profileVersion string, body SetCredentialRefreshStateJSONRequestBody, 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, params *CredentialIssuanceHistoryParams, 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) InitiateCredentialComposeIssuanceWithBodyWithResponse added in v1.10.0

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

InitiateCredentialComposeIssuanceWithBodyWithResponse request with arbitrary body returning *InitiateCredentialComposeIssuanceResponse

func (*ClientWithResponses) InitiateCredentialComposeIssuanceWithResponse added in v1.10.0

func (c *ClientWithResponses) InitiateCredentialComposeIssuanceWithResponse(ctx context.Context, profileID string, profileVersion string, body InitiateCredentialComposeIssuanceJSONRequestBody, reqEditors ...RequestEditorFn) (*InitiateCredentialComposeIssuanceResponse, error)

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) SetCredentialRefreshStateWithBodyWithResponse added in v1.11.0

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

SetCredentialRefreshStateWithBodyWithResponse request with arbitrary body returning *SetCredentialRefreshStateResponse

func (*ClientWithResponses) SetCredentialRefreshStateWithResponse added in v1.11.0

func (c *ClientWithResponses) SetCredentialRefreshStateWithResponse(ctx context.Context, profileID string, profileVersion string, body SetCredentialRefreshStateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCredentialRefreshStateResponse, 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 {
	// PostCredentialsStatusWithBodyWithResponse 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)

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

	// ExchangeAuthorizationCodeRequestWithBodyWithResponse 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)

	// PrepareAuthorizationRequestWithBodyWithResponse 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)

	// PrepareCredentialWithBodyWithResponse 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)

	// PrepareBatchCredentialWithBodyWithResponse 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)

	// PushAuthorizationDetailsWithBodyWithResponse 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)

	// StoreAuthorizationCodeRequestWithBodyWithResponse 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)

	// ValidatePreAuthorizedCodeRequestWithBodyWithResponse 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)

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

	// PostIssueCredentialsWithBodyWithResponse 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)

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

	InitiateCredentialComposeIssuanceWithResponse(ctx context.Context, profileID string, profileVersion string, body InitiateCredentialComposeIssuanceJSONRequestBody, reqEditors ...RequestEditorFn) (*InitiateCredentialComposeIssuanceResponse, error)

	// InitiateCredentialIssuanceWithBodyWithResponse 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)

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

	SetCredentialRefreshStateWithResponse(ctx context.Context, profileID string, profileVersion string, body SetCredentialRefreshStateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCredentialRefreshStateResponse, error)

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

	// OpenidCredentialIssuerConfigV2WithResponse 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 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
	CredentialRefreshService       CredentialRefreshService
}

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,
	extraParams CredentialIssuanceHistoryParams,
) 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) InitiateCredentialComposeIssuance added in v1.10.0

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

InitiateCredentialComposeIssuance initiates OIDC credential issuance flow. POST /issuer/profiles/{profileID}/{profileVersion}/interactions/compose-and-initiate-issuance.

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) SetCredentialRefreshState added in v1.11.0

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

SetCredentialRefreshState sets claims for credential refresh. POST /issuer/profiles/{profileID}/{profileVersion}/interactions/refresh.

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.

func (*Controller) ValidateRawCredential added in v1.12.0

func (c *Controller) ValidateRawCredential(
	finalCredentials map[string]interface{},
	profile *profileapi.Issuer,
) *oidc4cierr.Error

nolint:gocognit

func (*Controller) ValidateRelatedResources added in v1.12.0

func (c *Controller) ValidateRelatedResources(
	relatedResources any,
) error

type CredentialConfigurationsSupported added in v1.8.0

type CredentialConfigurationsSupported struct {
	// Claims 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"`

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

	// CredentialSigningAlgValuesSupported 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"`

	// CryptographicBindingMethodsSupported 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"`

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

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

	// Format 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"`

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

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

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

	// Vct 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"`
}

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

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 {
	// CredentialId Credential ID.
	CredentialId string `json:"credential_id"`

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

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

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

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

	// ProfileVersion Issuer Profile version.
	ProfileVersion *string `json:"profile_version,omitempty"`

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

CredentialIssuanceHistoryData CredentialIssuanceHistoryData represents the credential issuance history array element.

type CredentialIssuanceHistoryParams added in v1.10.0

type CredentialIssuanceHistoryParams struct {
	// TxID Issuance transaction ID
	TxID *string `form:"txID,omitempty" json:"txID,omitempty"`

	// CredentialID Credential ID
	CredentialID *string `form:"credentialID,omitempty" json:"credentialID,omitempty"`
}

CredentialIssuanceHistoryParams defines parameters for CredentialIssuanceHistory.

type CredentialIssuanceHistoryResponse added in v1.5.0

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

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 CredentialRefreshService added in v1.11.0

type CredentialRefreshService interface {
	CreateRefreshState(
		ctx context.Context,
		req *refresh.CreateRefreshStateRequest,
	) (string, error)
}

type CredentialResponseEncryptionSupported added in v1.8.0

type CredentialResponseEncryptionSupported struct {
	// AlgValuesSupported 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"`

	// EncValuesSupported 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"`

	// EncryptionRequired 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"`
}

CredentialResponseEncryptionSupported 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"`
}

CredentialStatus Credential status.

type CredentialStatusOpt

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

CredentialStatusOpt 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 {
	// ClientAssertion 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"`

	// ClientAssertionType 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"`

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

ExchangeAuthorizationCodeRequest Model for exchanging auth code from issuer oauth

type ExchangeAuthorizationCodeRequestJSONRequestBody

type ExchangeAuthorizationCodeRequestJSONRequestBody = ExchangeAuthorizationCodeRequest

ExchangeAuthorizationCodeRequestJSONRequestBody defines body for ExchangeAuthorizationCodeRequest for application/json ContentType.

type ExchangeAuthorizationCodeRequestResponse

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

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"`
}

ExchangeAuthorizationCodeResponse 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 InitiateCredentialComposeIssuanceJSONRequestBody added in v1.10.0

type InitiateCredentialComposeIssuanceJSONRequestBody = InitiateOIDC4CIRequest

InitiateCredentialComposeIssuanceJSONRequestBody defines body for InitiateCredentialComposeIssuance for application/json ContentType.

type InitiateCredentialComposeIssuanceResponse added in v1.10.0

type InitiateCredentialComposeIssuanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InitiateOIDC4CIComposeRequest
	JSON400      *externalRef0.PrivateAPIErrorResponse
}

func ParseInitiateCredentialComposeIssuanceResponse added in v1.10.0

func ParseInitiateCredentialComposeIssuanceResponse(rsp *http.Response) (*InitiateCredentialComposeIssuanceResponse, error)

ParseInitiateCredentialComposeIssuanceResponse parses an HTTP response from a InitiateCredentialComposeIssuanceWithResponse call

func (InitiateCredentialComposeIssuanceResponse) Status added in v1.10.0

Status returns HTTPResponse.Status

func (InitiateCredentialComposeIssuanceResponse) StatusCode added in v1.10.0

StatusCode returns HTTPResponse.StatusCode

type InitiateCredentialIssuanceJSONRequestBody

type InitiateCredentialIssuanceJSONRequestBody = InitiateOIDC4CIRequest

InitiateCredentialIssuanceJSONRequestBody defines body for InitiateCredentialIssuance for application/json ContentType.

type InitiateCredentialIssuanceResponse

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

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

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

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

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

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

	// CredentialTemplateId 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"`
}

InitiateIssuanceCredentialConfiguration An object that describes specifics of the Multiple Credential Issuance.

type InitiateIssuanceCredentialConfigurationCompose added in v1.10.0

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

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

	// CredentialOverrideId override for the ID field in credentialSubject. Supports templating.
	CredentialOverrideId *string `json:"credential_override_id"`

	// CredentialOverrideIssuer Override issuer.
	CredentialOverrideIssuer *bool `json:"credential_override_issuer"`

	// CredentialOverrideSubjectDid Override credential subject did.
	CredentialOverrideSubjectDid *bool `json:"credential_override_subject_did"`

	// CredentialPerformStrictValidation Perform strict validation.
	CredentialPerformStrictValidation *bool `json:"credential_perform_strict_validation"`
}

InitiateIssuanceCredentialConfigurationCompose An object that describes specifics of the Multiple Credential Issuance.

type InitiateOIDC4CIComposeRequest added in v1.10.0

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

	// ClientInitiateIssuanceUrl 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"`

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

	// Compose An array of objects that describes specifics of the Multiple Credential Issuance.
	Compose *[]InitiateIssuanceCredentialConfigurationCompose `json:"compose,omitempty"`

	// GrantType 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 *InitiateOIDC4CIComposeRequestGrantType `json:"grant_type,omitempty"`

	// OpState 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"`

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

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

	// UserPinRequired 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"`

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

InitiateOIDC4CIComposeRequest Model for Initiate OIDC Compose Credential Issuance Request.

type InitiateOIDC4CIComposeRequestGrantType added in v1.10.0

type InitiateOIDC4CIComposeRequestGrantType string

InitiateOIDC4CIComposeRequestGrantType 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 (
	InitiateOIDC4CIComposeRequestGrantTypeAuthorizationCode                            InitiateOIDC4CIComposeRequestGrantType = "authorization_code"
	InitiateOIDC4CIComposeRequestGrantTypeUrnIetfParamsOauthGrantTypePreAuthorizedCode InitiateOIDC4CIComposeRequestGrantType = "urn:ietf:params:oauth:grant-type:pre-authorized_code"
)

Defines values for InitiateOIDC4CIComposeRequestGrantType.

type InitiateOIDC4CIRequest

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

	// ClientInitiateIssuanceUrl 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"`

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

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

	// GrantType 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"`

	// OpState 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"`

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

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

	// UserPinRequired 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"`

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

InitiateOIDC4CIRequest Model for Initiate OIDC Credential Issuance Request.

type InitiateOIDC4CIRequestGrantType added in v1.8.0

type InitiateOIDC4CIRequestGrantType string

InitiateOIDC4CIRequestGrantType 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 (
	InitiateOIDC4CIRequestGrantTypeAuthorizationCode                            InitiateOIDC4CIRequestGrantType = "authorization_code"
	InitiateOIDC4CIRequestGrantTypeUrnIetfParamsOauthGrantTypePreAuthorizedCode InitiateOIDC4CIRequestGrantType = "urn:ietf:params:oauth:grant-type:pre-authorized_code"
)

Defines values for InitiateOIDC4CIRequestGrantType.

type InitiateOIDC4CIResponse

type InitiateOIDC4CIResponse struct {
	// OfferCredentialUrl 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"`

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

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

InitiateOIDC4CIResponse Model for Initiate OIDC Credential Issuance Response.

type IssueCredentialData

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

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

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

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

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

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

IssueCredentialData Model for issuer credential.

type IssueCredentialOptions

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

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

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

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

	// VerificationMethod 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"`
}

IssueCredentialOptions Options for issuing credential.

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

	// Uri 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"`
}

OAuthParameters 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
	JSON400      *externalRef0.PublicAPIErrorResponse
}

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
	JSON400      *externalRef0.PublicAPIErrorResponse
}

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 PostCredentialsStatusJSONRequestBody

type PostCredentialsStatusJSONRequestBody = UpdateCredentialStatusRequest

PostCredentialsStatusJSONRequestBody defines body for PostCredentialsStatus for application/json ContentType.

type PostCredentialsStatusResponse

type PostCredentialsStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON400      *externalRef0.PublicAPIErrorResponse
	JSON401      *externalRef0.PublicAPIErrorResponse
	JSON403      *externalRef0.PublicAPIErrorResponse
}

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 PostIssueCredentialsJSONRequestBody

type PostIssueCredentialsJSONRequestBody = IssueCredentialData

PostIssueCredentialsJSONRequestBody defines body for PostIssueCredentials for application/json ContentType.

type PostIssueCredentialsResponse

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

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 PrepareAuthorizationRequestJSONRequestBody

type PrepareAuthorizationRequestJSONRequestBody = PrepareClaimDataAuthorizationRequest

PrepareAuthorizationRequestJSONRequestBody defines body for PrepareAuthorizationRequest for application/json ContentType.

type PrepareAuthorizationRequestResponse

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

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"`

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

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

PrepareBatchCredential Model for Prepare Batch Credential request.

type PrepareBatchCredentialJSONRequestBody added in v1.8.0

type PrepareBatchCredentialJSONRequestBody = PrepareBatchCredential

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
	JSON400      *externalRef0.PrivateAPIErrorResponse
}

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"`

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

PrepareClaimDataAuthorizationRequest Model for Prepare Claim Data Authorization Request.

type PrepareClaimDataAuthorizationResponse

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

	// AuthorizationRequest 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"`

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

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

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

PrepareClaimDataAuthorizationResponse Model for Prepare Claim Data Authorization Response.

type PrepareCredential

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

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

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

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

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

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

	// Types 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 {
	// AudienceClaim The "aud" claim received from the client.
	AudienceClaim string `json:"audienceClaim"`

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

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

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

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

PrepareCredentialBase PrepareCredential Base model.

type PrepareCredentialJSONRequestBody

type PrepareCredentialJSONRequestBody = PrepareCredential

PrepareCredentialJSONRequestBody defines body for PrepareCredential for application/json ContentType.

type PrepareCredentialResponse

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

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 Credential value. According to draft 13 spec.
	Credential any `json:"credential"`

	// Credentials Contains an array of one or more issued Credentials.
	Credentials []externalRef0.CredentialResponseCredentialObject `json:"credentials"`

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

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

	// OidcFormat OIDC credential format. Internal use only.
	OidcFormat string `json:"oidc_format"`

	// Retry Boolean value indicating whether the Wallet should retry the issuance request. Internal Use. Used for deferred issuance.
	Retry bool `json:"retry"`
}

PrepareCredentialResult Model for Prepare Credential response.

type ProofTypeSupported added in v1.8.0

type ProofTypeSupported struct {
	// ProofSigningAlgValuesSupported 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"`
}

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

type PushAuthorizationDetailsJSONRequestBody

type PushAuthorizationDetailsJSONRequestBody = PushAuthorizationDetailsRequest

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"`
}

PushAuthorizationDetailsRequest Model for Push Authorization Details request.

type PushAuthorizationDetailsResponse

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

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 {
	// Alg JWE alg algorithm for encrypting the Credential Response.
	Alg string `json:"alg"`

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

RequestedCredentialResponseEncryption 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, params CredentialIssuanceHistoryParams) error
	// Issue credential
	// (POST /issuer/profiles/{profileID}/{profileVersion}/credentials/issue)
	PostIssueCredentials(ctx echo.Context, profileID string, profileVersion string) error
	// Initiate OIDC Compose Credential Issuance
	// (POST /issuer/profiles/{profileID}/{profileVersion}/interactions/compose-and-initiate-issuance)
	InitiateCredentialComposeIssuance(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
	// Set Credential Refresh State
	// (POST /issuer/profiles/{profileID}/{profileVersion}/interactions/refresh)
	SetCredentialRefreshState(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) InitiateCredentialComposeIssuance added in v1.10.0

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

InitiateCredentialComposeIssuance 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) SetCredentialRefreshState added in v1.11.0

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

SetCredentialRefreshState 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 SetCredentialRefreshStateJSONRequestBody added in v1.11.0

type SetCredentialRefreshStateJSONRequestBody = SetCredentialRefreshStateRequest

SetCredentialRefreshStateJSONRequestBody defines body for SetCredentialRefreshState for application/json ContentType.

type SetCredentialRefreshStateRequest added in v1.11.0

type SetCredentialRefreshStateRequest struct {
	// Claims New claims.
	Claims map[string]interface{} `json:"claims"`

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

	// CredentialId Credential ID.
	CredentialId string `json:"credential_id"`

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

SetCredentialRefreshStateRequest defines model for SetCredentialRefreshStateRequest.

type SetCredentialRefreshStateResponse added in v1.11.0

type SetCredentialRefreshStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SetCredentialRefreshStateResult
	JSON400      *externalRef0.PublicAPIErrorResponse
}

func ParseSetCredentialRefreshStateResponse added in v1.11.0

func ParseSetCredentialRefreshStateResponse(rsp *http.Response) (*SetCredentialRefreshStateResponse, error)

ParseSetCredentialRefreshStateResponse parses an HTTP response from a SetCredentialRefreshStateWithResponse call

func (SetCredentialRefreshStateResponse) Status added in v1.11.0

Status returns HTTPResponse.Status

func (SetCredentialRefreshStateResponse) StatusCode added in v1.11.0

func (r SetCredentialRefreshStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetCredentialRefreshStateResult added in v1.11.0

type SetCredentialRefreshStateResult struct {
	// TransactionId Transaction ID.
	TransactionId string `json:"transaction_id"`
}

SetCredentialRefreshStateResult defines model for SetCredentialRefreshStateResult.

type StoreAuthorizationCodeRequest

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

StoreAuthorizationCodeRequest Model for storing auth code from issuer oauth

type StoreAuthorizationCodeRequestJSONRequestBody

type StoreAuthorizationCodeRequestJSONRequestBody = StoreAuthorizationCodeRequest

StoreAuthorizationCodeRequestJSONRequestBody defines body for StoreAuthorizationCodeRequest for application/json ContentType.

type StoreAuthorizationCodeRequestResponse

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

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"`
}

StoreAuthorizationCodeResponse Response model for storing auth code from issuer oauth

type UpdateCredentialStatusRequest

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

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

UpdateCredentialStatusRequest UpdateCredentialStatusRequest request struct for updating VC status.

type ValidatePreAuthorizedCodeRequest

type ValidatePreAuthorizedCodeRequest struct {
	// ClientAssertion 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"`

	// ClientAssertionType 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"`

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

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

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

ValidatePreAuthorizedCodeRequest Model for validating pre-authorized code and pin.

type ValidatePreAuthorizedCodeRequestJSONRequestBody

type ValidatePreAuthorizedCodeRequestJSONRequestBody = ValidatePreAuthorizedCodeRequest

ValidatePreAuthorizedCodeRequestJSONRequestBody defines body for ValidatePreAuthorizedCodeRequest for application/json ContentType.

type ValidatePreAuthorizedCodeRequestResponse

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

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 {
	// AuthorizationDetails 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"`

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

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

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

ValidatePreAuthorizedCodeResponse Model for validating pre-authorized code and pin.

type WellKnownOpenIDIssuerConfiguration

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

	// BatchCredentialEndpoint 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"`

	// CredentialConfigurationsSupported 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 *map[string]CredentialConfigurationsSupported `json:"credential_configurations_supported,omitempty"`

	// CredentialEndpoint 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"`

	// CredentialIdentifiersSupported 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"`

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

	// CredentialResponseEncryption 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"`

	// DeferredCredentialEndpoint 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"`

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

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

	// NotificationEndpoint 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"`

	// PreAuthorizedGrantAnonymousAccessSupported 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"`

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

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

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

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

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

	// TokenEndpointAuthMethodsSupported 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 WellKnownOpenIDIssuerConfiguration represents the OIDC Configuration response for cases when VCS serves as IDP.

Jump to

Keyboard shortcuts

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