Versions in this module Expand all Collapse all v1 v1.1.0 May 23, 2022 v1.0.3 May 16, 2022 v1.0.1 Apr 29, 2022 v1.0.0 Apr 1, 2022 Changes in this version + func NewCreateAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewCreateJwtGrantRequest(server string, body CreateJwtGrantJSONRequestBody) (*http.Request, error) + func NewCreateJwtGrantRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewCreateSignSessionRequest(server string, body CreateSignSessionJSONRequestBody) (*http.Request, error) + func NewCreateSignSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewDrawUpContractRequest(server string, body DrawUpContractJSONRequestBody) (*http.Request, error) + func NewDrawUpContractRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewGetContractByTypeRequest(server string, contractType string, params *GetContractByTypeParams) (*http.Request, error) + func NewGetSignSessionStatusRequest(server string, sessionID string) (*http.Request, error) + func NewIntrospectAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewRequestAccessTokenRequest(server string, body RequestAccessTokenJSONRequestBody) (*http.Request, error) + func NewRequestAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewVerifyAccessTokenRequest(server string, params *VerifyAccessTokenParams) (*http.Request, error) + func NewVerifySignatureRequest(server string, body VerifySignatureJSONRequestBody) (*http.Request, error) + func NewVerifySignatureRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type AccessTokenRequestFailedResponse struct + Error AccessTokenRequestFailedResponseError + ErrorDescription string + type AccessTokenRequestFailedResponseError string + const AccessTokenRequestFailedResponseErrorInvalidGrant + const AccessTokenRequestFailedResponseErrorInvalidRequest + const AccessTokenRequestFailedResponseErrorUnsupportedGrantType + type AccessTokenResponse struct + AccessToken string + ExpiresIn int + TokenType string + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) CreateAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreateJwtGrant(ctx context.Context, body CreateJwtGrantJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateJwtGrantWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreateSignSession(ctx context.Context, body CreateSignSessionJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateSignSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) DrawUpContract(ctx context.Context, body DrawUpContractJSONRequestBody, ...) (*http.Response, error) + func (c *Client) DrawUpContractWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) GetContractByType(ctx context.Context, contractType string, params *GetContractByTypeParams, ...) (*http.Response, error) + func (c *Client) GetSignSessionStatus(ctx context.Context, sessionID string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) IntrospectAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) RequestAccessToken(ctx context.Context, body RequestAccessTokenJSONRequestBody, ...) (*http.Response, error) + func (c *Client) RequestAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) VerifyAccessToken(ctx context.Context, params *VerifyAccessTokenParams, ...) (*http.Response, error) + func (c *Client) VerifySignature(ctx context.Context, body VerifySignatureJSONRequestBody, ...) (*http.Response, error) + func (c *Client) VerifySignatureWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientInterface interface + CreateAccessTokenWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + CreateJwtGrant func(ctx context.Context, body CreateJwtGrantJSONRequestBody, ...) (*http.Response, error) + CreateJwtGrantWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + CreateSignSession func(ctx context.Context, body CreateSignSessionJSONRequestBody, ...) (*http.Response, error) + CreateSignSessionWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + DrawUpContract func(ctx context.Context, body DrawUpContractJSONRequestBody, ...) (*http.Response, error) + DrawUpContractWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + GetContractByType func(ctx context.Context, contractType string, params *GetContractByTypeParams, ...) (*http.Response, error) + GetSignSessionStatus func(ctx context.Context, sessionID string, reqEditors ...RequestEditorFn) (*http.Response, error) + IntrospectAccessTokenWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + RequestAccessToken func(ctx context.Context, body RequestAccessTokenJSONRequestBody, ...) (*http.Response, error) + RequestAccessTokenWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + VerifyAccessToken func(ctx context.Context, params *VerifyAccessTokenParams, ...) (*http.Response, error) + VerifySignature func(ctx context.Context, body VerifySignatureJSONRequestBody, ...) (*http.Response, error) + VerifySignatureWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) CreateAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAccessTokenResponse, error) + func (c *ClientWithResponses) CreateJwtGrantWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateJwtGrantResponse, error) + func (c *ClientWithResponses) CreateJwtGrantWithResponse(ctx context.Context, body CreateJwtGrantJSONRequestBody, ...) (*CreateJwtGrantResponse, error) + func (c *ClientWithResponses) CreateSignSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSignSessionResponse, error) + func (c *ClientWithResponses) CreateSignSessionWithResponse(ctx context.Context, body CreateSignSessionJSONRequestBody, ...) (*CreateSignSessionResponse, error) + func (c *ClientWithResponses) DrawUpContractWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DrawUpContractResponse, error) + func (c *ClientWithResponses) DrawUpContractWithResponse(ctx context.Context, body DrawUpContractJSONRequestBody, ...) (*DrawUpContractResponse, error) + func (c *ClientWithResponses) GetContractByTypeWithResponse(ctx context.Context, contractType string, params *GetContractByTypeParams, ...) (*GetContractByTypeResponse, error) + func (c *ClientWithResponses) GetSignSessionStatusWithResponse(ctx context.Context, sessionID string, reqEditors ...RequestEditorFn) (*GetSignSessionStatusResponse, error) + func (c *ClientWithResponses) IntrospectAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*IntrospectAccessTokenResponse, error) + func (c *ClientWithResponses) RequestAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RequestAccessTokenResponse, error) + func (c *ClientWithResponses) RequestAccessTokenWithResponse(ctx context.Context, body RequestAccessTokenJSONRequestBody, ...) (*RequestAccessTokenResponse, error) + func (c *ClientWithResponses) VerifyAccessTokenWithResponse(ctx context.Context, params *VerifyAccessTokenParams, ...) (*VerifyAccessTokenResponse, error) + func (c *ClientWithResponses) VerifySignatureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*VerifySignatureResponse, error) + func (c *ClientWithResponses) VerifySignatureWithResponse(ctx context.Context, body VerifySignatureJSONRequestBody, ...) (*VerifySignatureResponse, error) + type ClientWithResponsesInterface interface + CreateAccessTokenWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAccessTokenResponse, error) + CreateJwtGrantWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CreateJwtGrantResponse, error) + CreateJwtGrantWithResponse func(ctx context.Context, body CreateJwtGrantJSONRequestBody, ...) (*CreateJwtGrantResponse, error) + CreateSignSessionWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSignSessionResponse, error) + CreateSignSessionWithResponse func(ctx context.Context, body CreateSignSessionJSONRequestBody, ...) (*CreateSignSessionResponse, error) + DrawUpContractWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*DrawUpContractResponse, error) + DrawUpContractWithResponse func(ctx context.Context, body DrawUpContractJSONRequestBody, ...) (*DrawUpContractResponse, error) + GetContractByTypeWithResponse func(ctx context.Context, contractType string, params *GetContractByTypeParams, ...) (*GetContractByTypeResponse, error) + GetSignSessionStatusWithResponse func(ctx context.Context, sessionID string, reqEditors ...RequestEditorFn) (*GetSignSessionStatusResponse, error) + IntrospectAccessTokenWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*IntrospectAccessTokenResponse, error) + RequestAccessTokenWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*RequestAccessTokenResponse, error) + RequestAccessTokenWithResponse func(ctx context.Context, body RequestAccessTokenJSONRequestBody, ...) (*RequestAccessTokenResponse, error) + VerifyAccessTokenWithResponse func(ctx context.Context, params *VerifyAccessTokenParams, ...) (*VerifyAccessTokenResponse, error) + VerifySignatureWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*VerifySignatureResponse, error) + VerifySignatureWithResponse func(ctx context.Context, body VerifySignatureJSONRequestBody, ...) (*VerifySignatureResponse, error) + type Contract struct + Language ContractLanguage + SignerAttributes *[]string + Template *string + TemplateAttributes *[]string + Type ContractType + Version ContractVersion + type ContractLanguage string + type ContractResponse struct + Language ContractLanguage + Message string + Type ContractType + Version ContractVersion + type ContractSigningRequest struct + Language ContractLanguage + LegalEntity LegalEntity + Type ContractType + ValidFrom *string + ValidTo *string + Version ContractVersion + type ContractType string + type ContractVersion string + type CreateAccessTokenRequest struct + Assertion string + GrantType string + type CreateAccessTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *AccessTokenResponse + JSON400 *AccessTokenRequestFailedResponse + func ParseCreateAccessTokenResponse(rsp *http.Response) (*CreateAccessTokenResponse, error) + func (r CreateAccessTokenResponse) Status() string + func (r CreateAccessTokenResponse) StatusCode() int + type CreateJwtGrantJSONBody CreateJwtGrantRequest + type CreateJwtGrantJSONRequestBody CreateJwtGrantJSONBody + type CreateJwtGrantRequest struct + Authorizer string + Credentials []VerifiableCredential + Identity *VerifiablePresentation + Requester string + Service string + type CreateJwtGrantResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *JwtGrantResponse + func ParseCreateJwtGrantResponse(rsp *http.Response) (*CreateJwtGrantResponse, error) + func (r CreateJwtGrantResponse) Status() string + func (r CreateJwtGrantResponse) StatusCode() int + type CreateSignSessionJSONBody SignSessionRequest + type CreateSignSessionJSONRequestBody CreateSignSessionJSONBody + type CreateSignSessionResponse struct + Body []byte + HTTPResponse *http.Response + JSON201 *SignSessionResponse + func ParseCreateSignSessionResponse(rsp *http.Response) (*CreateSignSessionResponse, error) + func (r CreateSignSessionResponse) Status() string + func (r CreateSignSessionResponse) StatusCode() int + type CredentialIssuer struct + CredentialType string + Issuer string + type CredentialSubject map[string]interface + type DID string + type DrawUpContractJSONBody DrawUpContractRequest + type DrawUpContractJSONRequestBody DrawUpContractJSONBody + type DrawUpContractRequest struct + Language ContractLanguage + LegalEntity LegalEntity + Type ContractType + ValidDuration *string + ValidFrom *string + Version ContractVersion + type DrawUpContractResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *ContractResponse + func ParseDrawUpContractResponse(rsp *http.Response) (*DrawUpContractResponse, error) + func (r DrawUpContractResponse) Status() string + func (r DrawUpContractResponse) StatusCode() int + type EchoRouter interface + Add func(method string, path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type ErrorStatusCodeResolver interface + ResolveStatusCode func(err error) int + type GetContractByTypeParams struct + Language *string + Version *string + type GetContractByTypeResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Contract + func ParseGetContractByTypeResponse(rsp *http.Response) (*GetContractByTypeResponse, error) + func (r GetContractByTypeResponse) Status() string + func (r GetContractByTypeResponse) StatusCode() int + type GetSignSessionStatusResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *SignSessionStatusResponse + func ParseGetSignSessionStatusResponse(rsp *http.Response) (*GetSignSessionStatusResponse, error) + func (r GetSignSessionStatusResponse) Status() string + func (r GetSignSessionStatusResponse) StatusCode() int + type HTTPClient struct + Timeout time.Duration + func NewHTTPClient(serverAddress string, timeout time.Duration, opts ...ClientOption) (*HTTPClient, error) + func (h HTTPClient) CreateAccessToken(endpointURL url.URL, bearerToken string) (*AccessTokenResponse, error) + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type IntrospectAccessTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *TokenIntrospectionResponse + func ParseIntrospectAccessTokenResponse(rsp *http.Response) (*IntrospectAccessTokenResponse, error) + func (r IntrospectAccessTokenResponse) Status() string + func (r IntrospectAccessTokenResponse) StatusCode() int + type JwtGrantResponse struct + AuthorizationServerEndpoint string + BearerToken string + type LegalEntity string + type Preprocessor interface + Preprocess func(operationID string, context echo.Context) + type RequestAccessTokenJSONBody RequestAccessTokenRequest + type RequestAccessTokenJSONRequestBody RequestAccessTokenJSONBody + type RequestAccessTokenRequest struct + Authorizer string + Credentials []VerifiableCredential + Identity *VerifiablePresentation + Requester string + Service string + type RequestAccessTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *AccessTokenResponse + func ParseRequestAccessTokenResponse(rsp *http.Response) (*RequestAccessTokenResponse, error) + func (r RequestAccessTokenResponse) Status() string + func (r RequestAccessTokenResponse) StatusCode() int + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type ServerInterface interface + CreateAccessToken func(ctx echo.Context) error + CreateJwtGrant func(ctx echo.Context) error + CreateSignSession func(ctx echo.Context) error + DrawUpContract func(ctx echo.Context) error + GetContractByType func(ctx echo.Context, contractType string, params GetContractByTypeParams) error + GetSignSessionStatus func(ctx echo.Context, sessionID string) error + IntrospectAccessToken func(ctx echo.Context) error + RequestAccessToken func(ctx echo.Context) error + VerifyAccessToken func(ctx echo.Context, params VerifyAccessTokenParams) error + VerifySignature func(ctx echo.Context) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) CreateAccessToken(ctx echo.Context) error + func (w *ServerInterfaceWrapper) CreateJwtGrant(ctx echo.Context) error + func (w *ServerInterfaceWrapper) CreateSignSession(ctx echo.Context) error + func (w *ServerInterfaceWrapper) DrawUpContract(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetContractByType(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetSignSessionStatus(ctx echo.Context) error + func (w *ServerInterfaceWrapper) IntrospectAccessToken(ctx echo.Context) error + func (w *ServerInterfaceWrapper) RequestAccessToken(ctx echo.Context) error + func (w *ServerInterfaceWrapper) VerifyAccessToken(ctx echo.Context) error + func (w *ServerInterfaceWrapper) VerifySignature(ctx echo.Context) error + type SignSessionRequest struct + Means SignSessionRequestMeans + Params map[string]interface{} + Payload string + type SignSessionRequestMeans string + const SignSessionRequestMeansDummy + const SignSessionRequestMeansIrma + type SignSessionResponse struct + Means SignSessionResponseMeans + SessionID string + SessionPtr map[string]interface{} + type SignSessionResponseMeans string + const SignSessionResponseMeansDummy + const SignSessionResponseMeansIrma + type SignSessionStatusResponse struct + Status string + VerifiablePresentation *VerifiablePresentation + type SignatureVerificationRequest struct + CheckTime *string + VerifiablePresentation VerifiablePresentation + type SignatureVerificationResponse struct + Credentials *map[string]interface{} + IssuerAttributes *map[string]interface{} + Validity bool + VpType *string + type TokenIntrospectionRequest struct + Token string + type TokenIntrospectionResponse struct + Active bool + Aud *string + Email *string + Exp *int + FamilyName *string + Iat *int + Initials *string + Iss *string + Osi *string + Prefix *string + ResolvedVCs *[]VerifiableCredential + Service *string + Sub *string + Vcs *[]string + type VerifiableCredential = vc.VerifiableCredential + type VerifiablePresentation = vc.VerifiablePresentation + type VerifyAccessTokenParams struct + Authorization string + type VerifyAccessTokenResponse struct + Body []byte + HTTPResponse *http.Response + func ParseVerifyAccessTokenResponse(rsp *http.Response) (*VerifyAccessTokenResponse, error) + func (r VerifyAccessTokenResponse) Status() string + func (r VerifyAccessTokenResponse) StatusCode() int + type VerifySignatureJSONBody SignatureVerificationRequest + type VerifySignatureJSONRequestBody VerifySignatureJSONBody + type VerifySignatureResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *SignatureVerificationResponse + func ParseVerifySignatureResponse(rsp *http.Response) (*VerifySignatureResponse, error) + func (r VerifySignatureResponse) Status() string + func (r VerifySignatureResponse) StatusCode() int + type Wrapper struct + Auth auth.AuthenticationServices + CredentialResolver vcr.Resolver + func (w *Wrapper) Preprocess(operationID string, context echo.Context) + func (w *Wrapper) ResolveStatusCode(err error) int + func (w *Wrapper) Routes(router core.EchoRouter) + func (w Wrapper) CreateAccessToken(ctx echo.Context) (err error) + func (w Wrapper) CreateJwtGrant(ctx echo.Context) error + func (w Wrapper) CreateSignSession(ctx echo.Context) error + func (w Wrapper) DrawUpContract(ctx echo.Context) error + func (w Wrapper) GetContractByType(ctx echo.Context, contractType string, params GetContractByTypeParams) error + func (w Wrapper) GetSignSessionStatus(ctx echo.Context, sessionID string) error + func (w Wrapper) IntrospectAccessToken(ctx echo.Context) error + func (w Wrapper) RequestAccessToken(ctx echo.Context) error + func (w Wrapper) VerifyAccessToken(ctx echo.Context, params VerifyAccessTokenParams) error + func (w Wrapper) VerifySignature(ctx echo.Context) error