Skip to content

Commit

Permalink
feat: return verification flow ID after registration flow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Mar 10, 2023
1 parent cca36f8 commit 4c7f9cf
Show file tree
Hide file tree
Showing 37 changed files with 2,393 additions and 34 deletions.
14 changes: 14 additions & 0 deletions .schema/openapi/patches/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,17 @@

- op: remove
path: "#/components/schemas/identityTraits/type"

- op: add
path: /components/schemas/continue_with/discriminator
value:
propertyName: action
mapping:
verification_ui: "#/components/schemas/continue_with_verification_ui"
set_token: "#/components/schemas/continue_with_set_token"

- op: add
path: /components/schemas/continue_with/oneOf
value:
- "$ref": "#/components/schemas/continue_with_verification_ui"
- "$ref": "#/components/schemas/continue_with_set_token"
3 changes: 1 addition & 2 deletions identity/identity_verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ type VerifiableAddress struct {

// IdentityID is a helper struct field for gobuffalo.pop.
IdentityID uuid.UUID `json:"-" faker:"-" db:"identity_id"`
// CreatedAt is a helper struct field for gobuffalo.pop.
NID uuid.UUID `json:"-" faker:"-" db:"nid"`
NID uuid.UUID `json:"-" faker:"-" db:"nid"`
}

func (v VerifiableAddressType) HTMLFormInputType() string {
Expand Down
8 changes: 8 additions & 0 deletions internal/client-go/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ api_metadata.go
client.go
configuration.go
docs/AuthenticatorAssuranceLevel.md
docs/ContinueWith.md
docs/ContinueWithSetToken.md
docs/ContinueWithVerificationUi.md
docs/ContinueWithVerificationUiFlow.md
docs/CourierApi.md
docs/CourierMessageStatus.md
docs/CourierMessageType.md
Expand Down Expand Up @@ -113,6 +117,10 @@ git_push.sh
go.mod
go.sum
model_authenticator_assurance_level.go
model_continue_with.go
model_continue_with_set_token.go
model_continue_with_verification_ui.go
model_continue_with_verification_ui_flow.go
model_courier_message_status.go
model_courier_message_type.go
model_create_identity_body.go
Expand Down
4 changes: 4 additions & 0 deletions internal/client-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ Class | Method | HTTP request | Description
## Documentation For Models

- [AuthenticatorAssuranceLevel](docs/AuthenticatorAssuranceLevel.md)
- [ContinueWith](docs/ContinueWith.md)
- [ContinueWithSetToken](docs/ContinueWithSetToken.md)
- [ContinueWithVerificationUi](docs/ContinueWithVerificationUi.md)
- [ContinueWithVerificationUiFlow](docs/ContinueWithVerificationUiFlow.md)
- [CourierMessageStatus](docs/CourierMessageStatus.md)
- [CourierMessageType](docs/CourierMessageType.md)
- [CreateIdentityBody](docs/CreateIdentityBody.md)
Expand Down
146 changes: 146 additions & 0 deletions internal/client-go/model_continue_with.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

150 changes: 150 additions & 0 deletions internal/client-go/model_continue_with_flow_view.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c7f9cf

Please sign in to comment.