Hi, welcome everyone. hope you are all having a good day. I had a question specific to kratos and social login. I was using these two sources as reference:
https://github.com/ory/kratos/blob/master/contrib/quickstart/kratos/oidc/identity.traits.schema.jsonhttps://www.ory.sh/docs/kratos/manage-identities/customize-identity-schema
From the generated UI, I can see, that this is going to have a form with email, password . but what I want is a single button 'Login with Oidc provider' I see in the github contrib, and in the docs, for social logins, the trait schema contains fields like email, password etc. Which I don't need. I just need a simple signin with google/github etc. So my question is do I need to have this schema.json and jsonnet? and use just setup the karatos server and use the golang client? we already have a front-facing. reference page: https://app.rendernet.ai/
wonderful-photographer-65845
03/11/2025, 9:54 AM
well looks like I need the schema json and jsonnet.
m
magnificent-energy-493
03/11/2025, 1:22 PM
Hello, yea you definitely need them.
You need some way to identify the user in your system and that is usually through the email.
The email gets mapped from the OIDC provider to Ory through the JSONNET.
So you can build a "social login" only platform, no problem!
magnificent-energy-493
03/11/2025, 1:23 PM
(Personally I would recommend to also offer password/email as well though 🙂 - some users might not have a Google account or would prefer pw/email)
w
wonderful-photographer-65845
03/11/2025, 1:43 PM
@magnificent-energy-493, so the frontend can still be whatever it is, and the kratos server runs with the jsonnet and schema . And from the kratos client I can programatically start the flow?
wonderful-photographer-65845
03/11/2025, 1:44 PM
Email/Password , Multiple Scoped api keys, is on scope. but first need to migrate the existing system.