Skip to content

How to store credentials in relational database (postgres / mariadb / mysql) #219

Answered by james-d-elliott
uvulpos asked this question in Q&A
Discussion options

You must be logged in to vote

I'll try to consolidate most of this information into a FAQ at some stage as a number of people have been asking.

  1. All of the data in the webauthn.Session struct returned from various functions must be in the same state between the Begin and Finish/Validate function pairs. i.e. if you use BeginLogin the webauthn.Session it returns should be provided to the FinishLogin function with the same field values. How you achieve this is up to you.
  2. The WebAuthnID implementation for the User interface should always return the same value. Generally speaking this should be an opaque value. This value is what I store in the webauthn_users table with the userid column. It should be noted there is a conv…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@james-d-elliott
Comment options

@ayushs-2k4
Comment options

Answer selected by uvulpos
Comment options

You must be logged in to vote
6 replies
@james-d-elliott
Comment options

@jgimenez
Comment options

@james-d-elliott
Comment options

@james-d-elliott
Comment options

@jgimenez
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants