echoing-zoo-43852
04/03/2022, 12:55 AM## 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
proud-plumber-24205
04/04/2022, 9:35 AMproud-plumber-24205
04/04/2022, 9:36 AMechoing-zoo-43852
04/05/2022, 12:53 AM