Hi , While using kratos with google single sign on...
# ory-selfhosting
s
Hi , While using kratos with google single sign on i am getting stuck in a loop for registration here is the screenshot , Even after proceeding it will get me back to this page only , Can anyone please help me in correct configuration guide for this
b
Can you post the datamapping of the social sign in provider and your identity schema?
s
here is the data mapping
Copy code
local claims = {
  email_verified: true,
} + std.extVar('claims');

{
  identity: {
    traits: {
      email: claims.email,
      name: {
        first: claims.given_name,
        last: claims.family_name,
      },
    },
  },
}
and identity schema
Copy code
{
  "$id": "<https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json>",
  "$schema": "<http://json-schema.org/draft-07/schema#>",
  "title": "Person",
  "type": "object",
  "properties": {
    "traits": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "title": "email",
          "minLength": 6,
          "ory.sh/kratos": {
            "credentials": {
              "password": {
                "identifier": true
              }
            }
          }
        }
      },
      "required": [
        "email"
      ],
      "additionalProperties": false
    }
  }
}
c
@bland-eye-99092 any updates on this I have exactly the same issue
@swift-battery-54395 looks like it's related to webhooks check you registration webhooks
b
The problem is, that your identity schema doesn't define
Copy code
name: {
        first: claims.given_name,
        last: claims.family_name,
      },
Add them or remove them from the data mapping.