Has anyone used Ory in past with a FastAPI backend...
# ory-selfhosting
d
Has anyone used Ory in past with a FastAPI backend and Next.js(App router) frontend? I am working on a web-app and want to implement features for my users such as: • sign in with Google • sign in with Facebook • passwordless signin • username password signin • etc. I came to know about Ory from a blogpost, and am wondering if people have experience integrating Ory with a fastapi and nextjs project.. how did it go.. any gotchas.. looking for relevant documentation/tutorials/guides/links etc. I am interested in self-hosting for now. If someone can guide me with very high level steps that I need to take, I should be able to get going. Thanks in advance 🙏
for now, I am going to read through this: https://www.ory.sh/docs/ecosystem/projects will post any queries that I might have on this thread 🤞
hmm, wondering, how would this look like for my setup above • looks like I would definitely need to host Ory Kratos • it seems I might also need to host Ory Oathkeeper to protect the fastapi endpoints • maybe the nextjs frontend can directly interact with Ory Kratos for user management part • and then, when nextjs talks to fastapi, Ory Oathkeeper stands in between • not sure if I would need Ory Hydra too, as the diagram shows Oathkeeper authenticates credential with Hydra.. need to read up more on this • will keep posting running commentary on this as I move forward with the documentation and implementation please correct me if I am heading in wrong direction
hmm, based on these two blogs (part 1, part 2), it seems I can get my work done by just hosting Ory Kratos.. digging more 🤞
another interesting read here
m
See this setup too @damp-notebook-13395 https://www.ory.sh/zero-trust-api-security-ory-tutorial/ I think its closest to one that provides a) all sane authentication methods for web/mobile b) auth on the API level Read this before you go into OAuth2 more: https://www.ory.sh/docs/hydra/concepts/before-oauth2 The diagram you posted above is more a functional overview of what you could do with Ory. You can use all the services but I would start with a simpler baseline with Ory Kratos and Oathkeeper.
👍 1
a
Hydra is most likely not needed for you, unless you want to have "sign in with example.com"
👍 1