Versions in this module Expand all Collapse all v6 v6.2.13 Sep 22, 2026 v6.2.12 Sep 21, 2026 Changes in this version + var ErrBadGateway = errors.New("upstream returned unexpected result") + var ErrInvalidClientCall = errors.New("invalid client call") + var ErrPreconditionFailed = errors.New("precondition failed") + type Client interface + AccessToken func(ctx context.Context, code string, tokenURI, callbackURI string, subject string, ...) (*oauth.TokenResponse, error) + AuthorizationServerMetadata func(ctx context.Context, oauthIssuer string) (*oauth.AuthorizationServerMetadata, error) + ClientMetadata func(ctx context.Context, endpoint string) (*oauth.OAuthClientMetadata, error) + OpenIDConfiguration func(ctx context.Context, issuer string) (*oauth.OpenIDConfiguration, error) + OpenIdCredentialIssuerMetadata func(ctx context.Context, oauthIssuerURI string) (*oauth.OpenIDCredentialIssuerMetadata, error) + PostAuthorizationResponse func(ctx context.Context, vp vc.VerifiablePresentation, ...) (string, error) + PostError func(ctx context.Context, auth2Error oauth.OAuth2Error, verifierResponseURI string, ...) (string, error) + PresentationDefinition func(ctx context.Context, endpoint string) (*pe.PresentationDefinition, error) + RequestObjectByGet func(ctx context.Context, requestURI string) (string, error) + RequestObjectByPost func(ctx context.Context, requestURI string, ...) (string, error) + RequestRFC021AccessToken func(ctx context.Context, clientID string, subjectDID string, authServerURL string, ...) (*oauth.TokenResponse, error) + VerifiableCredentials func(ctx context.Context, credentialEndpoint string, accessToken string, ...) (*CredentialResponse, error) + type CredentialRequest struct + Proof CredentialRequestProof + type CredentialRequestProof struct + Jwt string + ProofType string + type CredentialResponse struct + Credential string + type HTTPClient struct + func (hb HTTPClient) AccessToken(ctx context.Context, tokenEndpoint string, data url.Values, dpopHeader string) (oauth.TokenResponse, error) + func (hb HTTPClient) ClientMetadata(ctx context.Context, endpoint string) (*oauth.OAuthClientMetadata, error) + func (hb HTTPClient) KeyProvider() jws.KeyProviderFunc + func (hb HTTPClient) OAuthAuthorizationServerMetadata(ctx context.Context, oauthIssuer string) (*oauth.AuthorizationServerMetadata, error) + func (hb HTTPClient) OpenIDConfiguration(ctx context.Context, issuerURL string) (*oauth.OpenIDConfiguration, error) + func (hb HTTPClient) OpenIdCredentialIssuerMetadata(ctx context.Context, oauthIssuerURI string) (*oauth.OpenIDCredentialIssuerMetadata, error) + func (hb HTTPClient) PostAuthorizationResponse(ctx context.Context, vp vc.VerifiablePresentation, ...) (string, error) + func (hb HTTPClient) PostError(ctx context.Context, err oauth.OAuth2Error, verifierCallbackURL url.URL) (string, error) + func (hb HTTPClient) PresentationDefinition(ctx context.Context, presentationDefinitionURL url.URL) (*pe.PresentationDefinition, error) + func (hb HTTPClient) RequestObjectByGet(ctx context.Context, requestURI string) (string, error) + func (hb HTTPClient) RequestObjectByPost(ctx context.Context, requestURI string, form url.Values) (string, error) + func (hb HTTPClient) VerifiableCredentials(ctx context.Context, credentialEndpoint string, accessToken string, ...) (*CredentialResponse, error) + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (m *MockClient) AccessToken(ctx context.Context, ...) (*oauth.TokenResponse, error) + func (m *MockClient) AuthorizationServerMetadata(ctx context.Context, oauthIssuer string) (*oauth.AuthorizationServerMetadata, error) + func (m *MockClient) ClientMetadata(ctx context.Context, endpoint string) (*oauth.OAuthClientMetadata, error) + func (m *MockClient) EXPECT() *MockClientMockRecorder + func (m *MockClient) OpenIDConfiguration(ctx context.Context, issuer string) (*oauth.OpenIDConfiguration, error) + func (m *MockClient) OpenIdCredentialIssuerMetadata(ctx context.Context, oauthIssuerURI string) (*oauth.OpenIDCredentialIssuerMetadata, error) + func (m *MockClient) PostAuthorizationResponse(ctx context.Context, vp vc.VerifiablePresentation, ...) (string, error) + func (m *MockClient) PostError(ctx context.Context, auth2Error oauth.OAuth2Error, ...) (string, error) + func (m *MockClient) PresentationDefinition(ctx context.Context, endpoint string) (*pe.PresentationDefinition, error) + func (m *MockClient) RequestObjectByGet(ctx context.Context, requestURI string) (string, error) + func (m *MockClient) RequestObjectByPost(ctx context.Context, requestURI string, ...) (string, error) + func (m *MockClient) RequestRFC021AccessToken(ctx context.Context, clientID, subjectDID, authServerURL, scopes string, ...) (*oauth.TokenResponse, error) + func (m *MockClient) VerifiableCredentials(ctx context.Context, credentialEndpoint, accessToken, proofJWT string) (*CredentialResponse, error) + type MockClientMockRecorder struct + func (mr *MockClientMockRecorder) AccessToken(ctx, code, tokenURI, callbackURI, subject, clientID, codeVerifier, useDPoP any) *gomock.Call + func (mr *MockClientMockRecorder) AuthorizationServerMetadata(ctx, oauthIssuer any) *gomock.Call + func (mr *MockClientMockRecorder) ClientMetadata(ctx, endpoint any) *gomock.Call + func (mr *MockClientMockRecorder) OpenIDConfiguration(ctx, issuer any) *gomock.Call + func (mr *MockClientMockRecorder) OpenIdCredentialIssuerMetadata(ctx, oauthIssuerURI any) *gomock.Call + func (mr *MockClientMockRecorder) PostAuthorizationResponse(ctx, vp, presentationSubmission, verifierResponseURI, state any) *gomock.Call + func (mr *MockClientMockRecorder) PostError(ctx, auth2Error, verifierResponseURI, verifierClientState any) *gomock.Call + func (mr *MockClientMockRecorder) PresentationDefinition(ctx, endpoint any) *gomock.Call + func (mr *MockClientMockRecorder) RequestObjectByGet(ctx, requestURI any) *gomock.Call + func (mr *MockClientMockRecorder) RequestObjectByPost(ctx, requestURI, walletMetadata any) *gomock.Call + func (mr *MockClientMockRecorder) RequestRFC021AccessToken(ctx, clientID, subjectDID, authServerURL, scopes, useDPoP, credentials any) *gomock.Call + func (mr *MockClientMockRecorder) VerifiableCredentials(ctx, credentialEndpoint, accessToken, proofJWT any) *gomock.Call + type OpenID4VPClient struct + func NewClient(wallet holder.Wallet, keyResolver resolver.KeyResolver, ...) *OpenID4VPClient + func (c *OpenID4VPClient) AccessToken(ctx context.Context, code string, tokenEndpoint string, callbackURI string, ...) (*oauth.TokenResponse, error) + func (c *OpenID4VPClient) AuthorizationServerMetadata(ctx context.Context, oauthIssuer string) (*oauth.AuthorizationServerMetadata, error) + func (c *OpenID4VPClient) ClientMetadata(ctx context.Context, endpoint string) (*oauth.OAuthClientMetadata, error) + func (c *OpenID4VPClient) OpenIDConfiguration(ctx context.Context, issuer string) (*oauth.OpenIDConfiguration, error) + func (c *OpenID4VPClient) OpenIdCredentialIssuerMetadata(ctx context.Context, oauthIssuerURI string) (*oauth.OpenIDCredentialIssuerMetadata, error) + func (c *OpenID4VPClient) PostAuthorizationResponse(ctx context.Context, vp vc.VerifiablePresentation, ...) (string, error) + func (c *OpenID4VPClient) PostError(ctx context.Context, auth2Error oauth.OAuth2Error, verifierResponseURI string, ...) (string, error) + func (c *OpenID4VPClient) PresentationDefinition(ctx context.Context, endpoint string) (*pe.PresentationDefinition, error) + func (c *OpenID4VPClient) RequestObjectByGet(ctx context.Context, requestURI string) (string, error) + func (c *OpenID4VPClient) RequestObjectByPost(ctx context.Context, requestURI string, ...) (string, error) + func (c *OpenID4VPClient) RequestRFC021AccessToken(ctx context.Context, clientID string, subjectID string, authServerURL string, ...) (*oauth.TokenResponse, error) + func (c *OpenID4VPClient) VerifiableCredentials(ctx context.Context, credentialEndpoint string, accessToken string, ...) (*CredentialResponse, error)