Hey everyone! I was wondering if anyone knew if Pr...
# orm-help
f
Hey everyone! I was wondering if anyone knew if Prisma has any libraries or tools to support U2F, FIDO, and Yubikey. If so, please direct to me the resource. Thank you and have a great day!
n
Hey Frankie 👋 Can you please elaborate on your use case? From what I know Yubikey, FIDO is hardware that is used for authentication. How do you plan to use Prisma with it?
f
Hey Narul! We plan to use prisma as our database and use yubikey/fido to authenticate clients with that information
j
What would they authenticate against with that? The database? Or your application to use it to talk to the database?
Prisma only offers the normal authentication methods of a database, and these do not offer user side authentication at all - just user and password. But that also only on your application level (so 1 user+pw for all of your application, not individually for users)
f
To clarify, we're using the Yubikey to authorize your user for the application. The connection to the database doesn't involve the Yubikey. We want "prisma" to validate the user when logging with the Yubikey.
j
That sounds like something that PRisma itself does not have to support, you "just" need to build this using Prisma in your database.
So I would expect that they give you a token or an ID, and you then check if you have a user for that in the database, then log them in.
Might be as simple as having a
yubikey_token
field in your database and Schema prisma, then writing a query to find a user by the token value you get, and then do your login logic.
Prisma really is just a way to retrieve and check that data - everything else would live in your application.