Web Authentification API
Parts
- π Relying party
- Your website
- π Public key credential
- πΎ Authenticator
- like an iPhone
- πͺͺ Attestation (optional)
- Checking that the device is real
Face ID and Touch ID
- Meet Face ID and Touch ID for the web - WWDC20 - Videos - Apple Developer
- This is essentially multi-factor authentification: something you are (biometrics) and something you have (your phone)
Onboard user
- User to sign in with regular email and password
- Ask user if they want to use TouchId from now on
Enrollment
Handling response on server
- Validate all metadata
- Validate the attestation (optional)
- Save the credential ID and the public key data
- Set a server-side cookie (optional)