Hello, Looking for some help to link automatically...
# ory-selfhosting
r
Hello, Looking for some help to link automatically Google OIDC and Email/Password identities using self-hosted Ory Kratos
v1.3.0
.
I have a custom UI with Google sign-in and Email/password enabled. Both sign-up/in are working fine but when I try to sign-in with Google using an email already used in Email/Password sign-up, I get the following logs :
Copy code
msg=Received successful OpenID Connect callback but user is not registered. Re-initializing registration flow now. 
msg=OpenID Connect Jsonnet mapper completed.
msg=Running PostRegistrationPrePersistHooks. 
msg=completed handling request
with the response being
303
=>
<myproject://social_sign_in_return_url?flow=8db6ae97-e3c1-4a62-9add-7ba9a0859612&no_org_ui=true>
When getting the flow details through the API, I can see :
Copy code
"messages": [
            {
                "id": 4010002,
                "text": "Could not find a strategy to log you in with. Did you fill out the form correctly?",
                "type": "error"
            }
        ]
I am surprised to get this error as I was expecting the flow to prompt for the user password as described in this doc. or to have an identity conflict as described in this PR. I also tried to use the
settings
flow using my email/password identity session and I don't see any node with group
oidc
to link/unlink the account as described in the doc here
Is there any example on how to do automatic account linking using self-hosted Ory ?