ory / ory/sdk

Getting error in the response of "createNativeRegistrationFlow" API : Social Sign In and OpenID Connect are only supported for flows initiated using the Browser endpoint

Open
#334 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
178
Forks
96
Avg merge
6d 23h
Merged PRs (30d)
3

Description

Preflight checklist
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.