ory / kratos

The most scalable and customizable identity server on the market. Replace your Homegrown, Auth0, Okta, Firebase with better UX and DX. Has all the tablestakes: Passkeys, Social Sign In, Multi-Factor Auth, SMS, SAML, TOTP, and more. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.
https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=kratos
Apache License 2.0
11.07k stars 955 forks source link

OIDC Signing in and linking your credential #3785

Open AmineFrioua opened 6 months ago

AmineFrioua commented 6 months ago

Preflight checklist

Ory Network Project

No response

Describe the bug

In my project, I have set up sign-in methods using password/passkey and OIDC (Google and Apple). All the flows, including sign up/in, recovery, registration, and settings, are functioning as expected. However, I'm encountering an issue when attempting to register via OIDC with an account that already exists (registered using a password). I receive a message instructing me to sign in to link my account, and I'm presented with UI node buttons labeled 'Sign in with #{oidc provider}' and 'Link your account'. When I click on these, I'm redirected back to the registration page for that specific OIDC method, without being signed in, resulting in a loop from which I cannot escape.

Reproducing the bug

1- Register an Account using Password or Passkey using a google email ( can be any oidc provider) 2- Finish the Registration and verification 3- Sign in using the oidc provider with the email session 4- Redirected to registration flow, finish registration 5- redirected to login flow, with button "sign in using Google and connect your account" 6- click on the button 7- get redirected to registration flow

Relevant log output

No response

Relevant configuration

No response

Version

Kratos 1.1.0

On which operating system are you observing this issue?

None

In which environment are you deploying?

Docker

Additional Context

No response

SirDoe commented 6 months ago

did you put gas innit