Skip to content

Commit

Permalink
feat: basic ack
Browse files Browse the repository at this point in the history
  • Loading branch information
skynet2 committed Nov 21, 2023
1 parent 1f94a3e commit 98789d0
Show file tree
Hide file tree
Showing 14 changed files with 885 additions and 202 deletions.
303 changes: 152 additions & 151 deletions api/spec/openapi.gen.go

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions docs/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,9 @@ components:
wallet_initiated_auth_flow_supported:
type: boolean
description: JSON Boolean indicating whether the issuer profile supports wallet initiated flow in OIDC4CI. The default is false.
acknowledgement_endpoint:
type: string
description: URL of the acknowledgement endpoint.
required:
- authorization_endpoint
- token_endpoint
Expand All @@ -868,6 +871,7 @@ components:
- grant_types_supported
- wallet_initiated_auth_flow_supported
- pre-authorized_grant_anonymous_access_supported
- acknowledgement_endpoint
WellKnownOpenIDIssuerConfiguration:
title: WellKnownOpenIDIssuerConfiguration response
x-tags:
Expand Down Expand Up @@ -923,6 +927,9 @@ components:
items:
type: string
description: JSON array containing a list of client authentication methods supported by this token endpoint. Default is "none".
acknowledgement_endpoint:
type: string
description: URL of the acknowledgement endpoint.
required:
- authorization_endpoint
- token_endpoint
Expand All @@ -935,6 +942,7 @@ components:
- credential_endpoint
- credentials_supported
- token_endpoint_auth_methods_supported
- acknowledgement_endpoint
description: WellKnownOpenIDIssuerConfiguration represents the OIDC Configuration response for cases when VCS serves as IDP.
CredentialIssuanceHistoryData:
title: CredentialIssuanceHistory response
Expand Down Expand Up @@ -1756,10 +1764,14 @@ components:
audienceClaim:
type: string
description: The "aud" claim received from the client.
hashed_token:
type: string
description: Hashed token received from the client.
required:
- tx_id
- types
- audienceClaim
- hashed_token
PrepareCredentialResult:
title: PrepareCredentialResult
x-tags:
Expand All @@ -1777,6 +1789,9 @@ components:
oidc_format:
type: string
description: OIDC credential format
ack_id:
type: string
description: String identifying an issued Credential that the Wallet includes in the acknowledgement request.
retry:
type: boolean
description: TRUE if claim data is not yet available in the issuer OP server. This will indicate VCS OIDC to issue acceptance_token instead of credential response (Deferred Credential flow).
Expand Down Expand Up @@ -1842,6 +1857,9 @@ components:
c_nonce_expires_in:
type: integer
description: JSON integer denoting the lifetime in seconds of the c_nonce.
ack_id:
type: string
description: String identifying an issued Credential that the Wallet includes in the acknowledgement request.
required:
- format
- credential
Expand Down
3 changes: 3 additions & 0 deletions pkg/event/spi/spi.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const (
IssuerOIDCInteractionAuthorizationCodeStored EventType = "issuer.oidc-interaction-authorization-code-stored.v1" //nolint
IssuerOIDCInteractionAuthorizationCodeExchanged EventType = "issuer.oidc-interaction-authorization-code-exchanged.v1" //nolint
IssuerOIDCInteractionFailed EventType = "issuer.oidc-interaction-failed.v1"
IssuerOIDCInteractionAckSucceeded EventType = "issuer.oidc-interaction-ack-succeeded.v1"
IssuerOIDCInteractionAckFailed EventType = "issuer.oidc-interaction-ack-failed.v1"
IssuerOIDCInteractionAckRejected EventType = "issuer.oidc-interaction-ack-rejected.v1"

CredentialStatusStatusUpdated EventType = "issuer.credential-status-updated.v1" //nolint:gosec
)
Expand Down
Loading

0 comments on commit 98789d0

Please sign in to comment.