Skip to content

Commit

Permalink
fix: sdk login and registrion should contain code method
Browse files Browse the repository at this point in the history
  • Loading branch information
Benehiko committed Aug 22, 2023
1 parent e3fc2aa commit f2db1d4
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .schema/openapi/patches/selfservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- "$ref": "#/components/schemas/updateRegistrationFlowWithPasswordMethod"
- "$ref": "#/components/schemas/updateRegistrationFlowWithOidcMethod"
- "$ref": "#/components/schemas/updateRegistrationFlowWithWebAuthnMethod"
- "$ref": "#/components/schemas/updateRegistrationFlowWithCodeMethod"
- op: add
path: /components/schemas/updateRegistrationFlowBody/discriminator
value:
Expand All @@ -25,6 +26,7 @@
password: "#/components/schemas/updateRegistrationFlowWithPasswordMethod"
oidc: "#/components/schemas/updateRegistrationFlowWithOidcMethod"
webauthn: "#/components/schemas/updateRegistrationFlowWithWebAuthnMethod"
code: "#/components/schemas/updateRegistrationFlowWithCodeMethod"
- op: add
path: /components/schemas/registrationFlowState/enum
value:
Expand All @@ -44,6 +46,7 @@
- "$ref": "#/components/schemas/updateLoginFlowWithTotpMethod"
- "$ref": "#/components/schemas/updateLoginFlowWithWebAuthnMethod"
- "$ref": "#/components/schemas/updateLoginFlowWithLookupSecretMethod"
- "$ref": "#/components/schemas/updateLoginFlowWithCodeMethod"
- op: add
path: /components/schemas/updateLoginFlowBody/discriminator
value:
Expand All @@ -54,6 +57,7 @@
totp: "#/components/schemas/updateLoginFlowWithTotpMethod"
webauthn: "#/components/schemas/updateLoginFlowWithWebAuthnMethod"
lookup_secret: "#/components/schemas/updateLoginFlowWithLookupSecretMethod"
code: "#/components/schemas/updateLoginFlowWithCodeMethod"
- op: add
path: /components/schemas/loginFlowState/enum
value:
Expand Down
30 changes: 30 additions & 0 deletions internal/client-go/model_update_login_flow_body.go

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

30 changes: 30 additions & 0 deletions internal/client-go/model_update_registration_flow_body.go

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

30 changes: 30 additions & 0 deletions internal/httpclient/model_update_login_flow_body.go

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

30 changes: 30 additions & 0 deletions internal/httpclient/model_update_registration_flow_body.go

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

8 changes: 8 additions & 0 deletions spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,7 @@
"updateLoginFlowBody": {
"discriminator": {
"mapping": {
"code": "#/components/schemas/updateLoginFlowWithCodeMethod",
"lookup_secret": "#/components/schemas/updateLoginFlowWithLookupSecretMethod",
"oidc": "#/components/schemas/updateLoginFlowWithOidcMethod",
"password": "#/components/schemas/updateLoginFlowWithPasswordMethod",
Expand All @@ -2420,6 +2421,9 @@
},
{
"$ref": "#/components/schemas/updateLoginFlowWithLookupSecretMethod"
},
{
"$ref": "#/components/schemas/updateLoginFlowWithCodeMethod"
}
]
},
Expand Down Expand Up @@ -2663,6 +2667,7 @@
"description": "Update Registration Request Body",
"discriminator": {
"mapping": {
"code": "#/components/schemas/updateRegistrationFlowWithCodeMethod",
"oidc": "#/components/schemas/updateRegistrationFlowWithOidcMethod",
"password": "#/components/schemas/updateRegistrationFlowWithPasswordMethod",
"webauthn": "#/components/schemas/updateRegistrationFlowWithWebAuthnMethod"
Expand All @@ -2678,6 +2683,9 @@
},
{
"$ref": "#/components/schemas/updateRegistrationFlowWithWebAuthnMethod"
},
{
"$ref": "#/components/schemas/updateRegistrationFlowWithCodeMethod"
}
]
},
Expand Down

0 comments on commit f2db1d4

Please sign in to comment.