Hi,
I would like to add the Open ID Connect logic in kratos-selfservice-ui-node but I struggle to have a functional setup.
Is there any public functional setup somewhere?
I would like to have a github-identity.traits.schema.json to showcase an OIDC integration.
I struggle here and there in kratos/selfservice/strategy/oidc/strategy.go
here
, is the schema validation from the third party provider.
there
, is the identify schema validation.
For some reason, at first trial it fails to create a new identity and the request item ask to display a trait.email
field in the registration form.
With an email address I manage to get an identity created.
Many thanks,
The schema_url of github provider
{
"$schema": "I-cant-add-link#",
"$id": "I-cant-add-links",
"type": "object",
"title": "The Root Schema",
"description": "The root schema comprises the entire JSON document.",
"required": [
"name",
"email"
],
"properties": {
"name": {
"$id": "#/properties/name",
"type": "string",
"title": "The Subject Schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"ok"
]
},
"email": {
"$id": "#/properties/traits/email",
"type": "string",
"format": "email",
"title": "E-Mail",
"minLength": 3
}
},
"additionalProperties": true
}