Getting error in the response of "createNativeRegistrationFlow" API : Social Sign In and OpenID Connect are only supported for flows initiated using the Browser endpoint
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 178
- Forks
- 96
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
I am using the api 'createNativeRegistrationFlow' to get the flow_id and i am getting flow id in return, after this, I hit 'updateRegistrationFlow' method using the flow id and id_token of google, I am getting response like below, {"id":"someID","oauth2_login_challenge":null,"type":"api","expires_at":"2024-02-21T13:23:43.931974Z","issued_at":"2024-02-21T13:13:43.931974Z","request_url":"https://myurl/self-service/registration/api","ui":{"action":"https://myurl/public/self-service/registration?flow=flowIdFromtheInput","method":"POST","nodes":[{"type":"input","group":"default","attributes":{"name":"csrf_token","type":"hidden","value":"","required":true,"disabled":false,"node_type":"input"},"messages":[],"meta":{}},{"type":"input","group":"oidc","attributes":{"name":"provider","type":"submit","value":"google","disabled":false,"node_type":"input"},"messages":[],"meta":{"label":{"id":7879758,"text":"Continue","type":"info"}}}],"messages":[{"id":4000001,"text":"Social Sign In and OpenID Connect are only supported for flows initiated using the Browser endpoint.","type":"error"}]}} getting some response but I dont know what this line means "Social Sign In and OpenID Connect are only supported for flows initiated using the Browser endpoint" coming in the response and due to this i can't even see my user on ory. Can someone help me out I want to register my google sign in in the ory
Reproducing the bug
Use the given API's given in the description of bug with basic oryclient setup using dio and hit the createNativeRegistrationFlow API first and using flow id of the createNativeRegistrationFlow API, hit updateRegistrationFlow API
Relevant log output
{"id":"someID","oauth2_login_challenge":null,"type":"api","expires_at":"2024-02-21T13:23:43.931974Z","issued_at":"2024-02-21T13:13:43.931974Z","request_url":"https://myurl/self-service/registration/api","ui":{"action":"https://myurl/public/self-service/registration?flow=flowIdFromtheInput","method":"POST","nodes":[{"type":"input","group":"default","attributes":{"name":"csrf_token","type":"hidden","value":"","required":true,"disabled":false,"node_type":"input"},"messages":[],"meta":{}},{"type":"input","group":"oidc","attributes":{"name":"provider","type":"submit","value":"google","disabled":false,"node_type":"input"},"messages":[],"meta":{"label":{"id":7879758,"text":"Continue","type":"info"}}}],"messages":[{"id":4000001,"text":"Social Sign In and OpenID Connect are only supported for flows initiated using the Browser endpoint.","type":"error"}]}}
Relevant configuration
No response
Version
ory_client: ^1.6.2
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the flow with ory_client 1.6.2 and Dio by calling createNativeRegistrationFlow followed by updateRegistrationFlow with the Google ID token. Start with the registration-flow API behavior and the reported response, then determine whether the observed error is an SDK or flow-handling issue; done means the supported behavior and a path to successful registration are clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100