I've been reading the <self-service flows> and the...
# ory-network
e
I've been reading the self-service flows and the add your own UI guides in an attempt to figure out how to use my own login and registration pages. I've started with the registration path and thought the following curl commands would work to add a user account but I get redirected to an error. Anyone have tips on bringing in your own UI or on what's wrong with my test?
Copy code
## Create cookie storage
~> var cookie = (mktemp)

## Initialization
~> curl -s -X GET --cookie-jar $cookie --cookie $cookie -H "Accept: application/json" '<https://ory.site.tech/self-service/registration/browser>'
{"id":"5-8edd-476d-b0f5-119544c251db","type":"browser","expires_at":"2022-04-03T01:16:21.67589865Z","issued_at":"2022-04-03T00:16:21.67589865Z","request_url":"<http://a-b-g.projects.oryapis.com/self-service/registration/browser>","ui":{"action":"<https://ory.site.tech/self-service/registration?flow=5-8edd-476d-b0f5-119544c251db>","method":"POST","nodes":[{"type":"input","group":"default","attributes":{"name":"csrf_token","type":"hidden","value":"oqbbdo/3JTWZG665Sm1a7aBXwGN4dW+SYFbRO2EcIxCZ/lgy1HTkiQWJ5bniFkewqs2llZauqUbo/NyFD7xOTg==","required":true,"disabled":false,"node_type":"input"},"messages":[],"meta":{}},{"type":"input","group":"password","attributes":{"name":"traits.email","type":"email","required":true,"disabled":false,"node_type":"input"},"messages":[],"meta":{"label":{"id":1070002,"text":"E-Mail","type":"info"}}},{"type":"input","group":"password","attributes":{"name":"password","type":"password","required":true,"disabled":false,"node_type":"input"},"messages":[],"meta":{"label":{"id":1070001,"text":"Password","type":"info"}}},{"type":"input","group":"password","attributes":{"name":"method","type":"submit","value":"password","disabled":false,"node_type":"input"},"messages":[],"meta":{"label":{"id":1040001,"text":"Sign up","type":"info","context":{}}}}]}}

## Take the flow ID and the csrf_token and send a registration form
~> curl -i --cookie $cookie --cookie-jar $cookie -X POST '<https://ory.site.tech/self-service/registration?flow=5-8edd-476d-b0f5-119544c251d>' -H 'Content-Type: application/x-www-form-urlencoded' -d 'method=password&traits.email=foo1@acme.com&password=aoeiAOEU1234!@#$&csrf_token=oqbbdo/3JTWZG665Sm1a7aBXwGN4dW+SYFbRO2EcIxCZ/lgy1HTkiQWJ5bniFkewqs2llZauqUbo/NyFD7xOTg=='
HTTP/2 303 
date: Sun, 03 Apr 2022 00:20:20 GMT
content-length: 0
cache-control: private, no-cache, no-store, must-revalidate
location: /ui/error?id=3a17a15c-dc64-4d0e-b550-cfcfe36f9a8e
vary: Origin,Cookie
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>"
server: cloudflare
cf-ray: 6f5da3493aa5c8fb-CMH
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
p
Hi @User It looks like the url might be wrong in the post.
Not sure if this would be the problem, but the rest of the flows look correct
e
Hi @User, That indeed was the issue. Thank you for catching this! I even ran through this a few times thinking I'd avoid a copy/paste issue like this.