faint-jewelry-62144
11/26/2024, 9:49 AM"phone": {
"type": "string",
"title": "Phone"
"format": "tel",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"verification": {
"via": "sms"
}
}
},
We're able to get the verification message sent to our backend:webhook on setting the traits.phone
(phone trait is set and have unverified flag on it) via SettingFlow
, but are unable to get the verification flow for submitting the code
How do you trigger phone verification? when we're trying to createBrowserVerificationFlow
, the choose_method
response only have email option in itsteep-lamp-91158
faint-jewelry-62144
11/26/2024, 9:14 PMredirect_browser_to
in the continue_with
response
"continue_with": [
{
"action": "redirect_browser_to",
"redirect_browser_to": "<http://andy-ubuntu:4000/ui/settings?flow=807e35fb-00e5-426c-ac74-e0aab0b4b029>"
}
]
faint-jewelry-62144
11/26/2024, 10:24 PMshow_verification_ui
on updated the traits.phone
"continue_with": [
{
"action": "show_verification_ui",
"flow": {
"id": "3c2c8771-bc43-46bd-b411-412b7e0c4dae",
"verifiable_address": "+6281312781223",
"url": "<http://andy-ubuntu:4000/ui/verification?flow=3c2c8771-bc43-46bd-b411-412b7e0c4dae>"
}
},
{
"action": "redirect_browser_to",
"redirect_browser_to": "<http://andy-ubuntu:4000/ui/settings?flow=22ec417b-497e-4ee3-a351-78c056f3c858>"
}
]
but we need to be able to verify both the email and phonefaint-jewelry-62144
11/27/2024, 2:52 AMloginFlow:aal2
it only returns email in the nodes for mfa
"nodes": [
{
"type": "input",
"group": "default",
"attributes": {
"name": "csrf_token",
...
},
"messages": [],
"meta": {}
},
{
"type": "input",
"group": "code",
"attributes": {
"name": "address",
"type": "submit",
...
},
"messages": [],
"meta": {
"label": {
...
}
}
}
],
my identity schema already include these
"phone": {
"type": "string",
"title": "Phone",
"format": "tel",
"ory.sh/kratos": {
"verification": {
"via": "sms"
},
"credentials": {
"code": {
"identifier": true,
"via": "sms"
}
}
}
},
many-library-37373
11/27/2024, 9:09 AMsteep-lamp-91158
faint-jewelry-62144
11/27/2024, 10:24 AM{
"$id": "<https://schemas.ory.sh/presets/kratos/identity.email.schema.json>",
"$schema": "<http://json-schema.org/draft-07/schema#>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
},
"webauthn": {
"identifier": true
},
"totp": {
"account_name": true
},
"code": {
"identifier": true,
"via": "email"
},
"passkey": {
"display_name": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
},
"maxLength": 320
},
"name": {
"type": "object",
"properties": {
"first": {
"title": "First name",
"type": "string"
},
"last": {
"title": "Last name",
"type": "string"
}
}
},
"phone": {
"type": "string",
"title": "Phone",
"format": "tel",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"verification": {
"via": "sms"
}
}
},
"date_of_birth": {
"type": "string",
"title": "Date Of Birth"
},
"referral_code": {
"type": "string",
"title": "Referral Code"
},
"general_consent_version": {
"type": "string",
"title": "General Consent Version"
}
},
"required": [
"email",
"name",
"general_consent_version"
],
"additionalProperties": false
}
}
}
@steep-lamp-91158steep-lamp-91158
faint-jewelry-62144
11/27/2024, 11:53 AMmany-library-37373
11/28/2024, 7:41 AMmany-library-37373
11/28/2024, 7:41 AMbland-eye-99092
11/28/2024, 1:35 PMselfservice.methods.code.mfa_enabled
property to true.faint-jewelry-62144
11/28/2024, 8:34 PMfaint-jewelry-62144
11/28/2024, 8:37 PM...
"methods": {
"code": {
"config": {
"lifespan": "15m0s"
},
"enabled": true,
"mfa_enabled": true,
"passwordless_enabled": false,
"passwordless_login_fallback_enabled": false
},
...
@bland-eye-99092many-library-37373
11/29/2024, 10:02 AMbland-eye-99092
11/29/2024, 10:03 AMfaint-jewelry-62144
11/29/2024, 10:17 AM