breezy-air-36947
02/11/2022, 10:13 PMlocalhost:4433
and my app on localhost:3000
breezy-air-36947
02/11/2022, 10:13 PM<https://kratos-reference-ui-react-nextjs.vercel.app/>
it appears the api is running on the same domain:
:authority: <http://kratos-reference-ui-react-nextjs.vercel.app|kratos-reference-ui-react-nextjs.vercel.app>
:method: POST
:path: /api/.ory/self-service/registration?flow=939f4dad-a543-45b4-adc3-cc0ed0780f08
and so the cookie is getting sentsparse-analyst-13835
02/11/2022, 7:54 PMbrash-gpu-27606
02/11/2022, 3:16 PMcuddly-father-90762
02/10/2022, 7:31 PMkind-pencil-94329
02/09/2022, 6:15 PMkey: {null value}
, removing the key entirely, and now with a dummy value to be overwritten.silly-magazine-7905
02/09/2022, 3:53 PMfreezing-needle-9807
02/09/2022, 3:48 PMstale-tomato-90284
02/09/2022, 11:19 AMwhite-dawn-42840
02/09/2022, 4:36 AM@ory/kratos-selfservice-ui-react-nextjs
into Vue. Before I move on into a more in-depth application, I was thinking about forking the repository into an example we can add to the guides. Is that something that I could do for the project? Currently, I’m setting everything up in Docker as well, so I could probably tie all the strings together with a small effort. I could bring it up to feature parity with the React example.square-belgium-19904
02/08/2022, 9:44 PMacceptable-salesmen-8957
02/07/2022, 11:00 PMminiature-beach-16869
02/07/2022, 5:43 PMminiature-beach-16869
02/07/2022, 4:35 PM{
"$id": "<https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.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",
"minLength": 3,
---------------------------------------------------------
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
}
},
"verification": {
"via": "email"
},
"recovery": {
"via": "email"
}
}
---------------------------------------------------------
},
"name": {
"type": "object",
"properties": {
"first": {
"title": "First Name",
"type": "string"
},
"last": {
"title": "Last Name",
"type": "string"
}
}
}
},
"required": [
"email"
],
"additionalProperties": false
}
}
}
lively-beard-47107
02/04/2022, 11:28 AMworried-breakfast-57531
02/04/2022, 12:21 AM<http://auth.example.com|auth.example.com>
and Kratos is on <http://kratos.example.com|kratos.example.com>
so without this attribute, I can’t seem to set the cookie properly over multiple subdomainsmany-potato-72695
02/03/2022, 10:27 PMwide-butcher-30761
02/03/2022, 7:34 PMjolly-tiger-57705
02/03/2022, 5:04 PMmsg=Encountered self-service flow error. audience=audit error=map[message:I[#/] S[] could not find a strategy to sign up with trace:
Any ideas?quick-painter-97778
02/03/2022, 4:06 PMadventurous-window-85960
02/03/2022, 3:29 PM{
error: {
code: 404,
status: "Not Found",
request: "ebeaa314-d275-4843-8c97-ee3ec13a05dd",
reason: "The requested Ory Cloud Project does not exist. Please ensure your custom domain or Ory Cloud Project Slug are correct.",
message: "project not found"
}
}
best-shampoo-20854
02/03/2022, 1:06 PMfaint-wire-27923
02/02/2022, 1:15 PMadorable-article-65467
02/02/2022, 9:21 AMbrainy-plumber-70688
02/01/2022, 10:28 PMimportant-fall-74969
02/01/2022, 3:29 PMcsrf_token
when working on the registration flow. We are trying to configure our frontend (Vue
) with Kratos using the quickstart example with Kratos running in docker. We have replaced port 4455
in the Kratos config with our frontend port, and changed the registration routes to match our sign-up page.
On our registration page we call initializeSelfServiceRegistrationFlowForBrowsers
passing in the returnTo
string and this returns with status 200
and gives us the csrf_token
as part of the data.ui.nodes
along with the other form nodes. We can also see the cookie in the Set-Cookie Response Header, however it appears they are different from the ones in the form attributes. Are the cookie and form tokens different because they are values in a pair?
When testing the same part of the React example app, we can see that there is a Location Header
in the browser call and the csrf_token
cookie is being set as a cookie when clicking the Sign up button. However, we are not getting the same behaviour in our app. We cannot see a Location
Header, and although we see a Set-Cookie
header, the cookie does not seem to be being set in the browser.
Also, when we call submitSelfServiceRegistrationFlow
passing in the csrf_token
that was initially included in the data.ui.nodes
response from initializeSelfServiceRegistrationFlowForBrowsers
we get a 403
error:
"The HTTP Cookie Header was set and a CSRF token was sent but they do not match. We recommend deleting all cookies for this domain and retrying the flow."
How can we make sure that the tokens match?
Our config:
version: v0.7.1-alpha.1
dsn: memory
serve:
public:
base_url: <http://127.0.0.1:4433/>
cors:
enabled: true
admin:
base_url: <http://kratos:4434/>
selfservice:
default_browser_return_url: <http://127.0.0.1:8084/>
whitelisted_return_urls:
- <http://127.0.0.1:8084>
methods:
password:
enabled: true
flows:
error:
ui_url: <http://127.0.0.1:8084/error>
settings:
ui_url: <http://127.0.0.1:8084/settings>
privileged_session_max_age: 15m
recovery:
enabled: true
ui_url: <http://127.0.0.1:8084/recovery>
verification:
enabled: true
ui_url: <http://127.0.0.1:8084/verification>
after:
default_browser_return_url: <http://127.0.0.1:8084/>
logout:
after:
default_browser_return_url: <http://127.0.0.1:8084/login>
login:
ui_url: <http://127.0.0.1:8084/login>
lifespan: 10m
registration:
lifespan: 10m
ui_url: <http://127.0.0.1:8084/sign-up>
after:
password:
hooks:
-
hook: session
log:
level: debug
format: text
leak_sensitive_values: true
secrets:
cookie:
- PLEASE-CHANGE-ME-I-AM-VERY-INSECURE
cipher:
- 32-LONG-SECRET-NOT-SECURE-AT-ALL
ciphers:
algorithm: xchacha20-poly1305
hashers:
argon2:
parallelism: 1
memory: 128MB
iterations: 2
salt_length: 16
key_length: 16
identity:
default_schema_url: file:///etc/config/kratos/identity.schema.json
courier:
smtp:
connection_uri: <smtps://test:test@mailslurper:1025/?skip_ssl_verify=true>
thousands-church-11419
02/01/2022, 2:17 PMcold-evening-80162
02/01/2022, 1:30 PMnumerous-energy-92403
02/01/2022, 11:40 AMuser-agent
set to assure Kratos thinks it is talking to a browser to complete the operation. That is a lot of work and not really proper process--it's a hack. However, it is the only way to automate a necessary process. Any thoughts on that?green-waiter-57771
02/01/2022, 11:39 AM