Skip to content

๐Ÿ”‘ Experimental implementation of Passkey Autofill in Go.

License

Notifications You must be signed in to change notification settings

kg0r0/passkey-autofill-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

passkey-autofill-example

License: MIT
๐Ÿ”‘ Experimental implementation of Passkey Autofill in Go.
This simple implementation provides for developers to try out Passkey Autofill in their environment. Note that this implementation uses the following two libraries:

The endpoint design of this implementation is based on [Web Authentication API Flow] and [Server Requirements and Transport Binding Profile]. If you want to check various behaviors according to your requirements, you should read the specifications on which Passkey is based, such as FIDO2 (Web Authentication + CTAP2).

Usage

Run the server with the following command:

$ go run .

Access to http://localhost:8080 and register a passkey.

Access to http://localhost:8080/login and authenticate.

Registration

Basically you can see the implementation for registration from the following library documentation description:

Note that you will need to adjust some arguments based on the descriptions in passkey.dev and others. Also make sure that there are parameters that should be properly verified on the server side.

The registration-related implementations in this repository can be seen in attestation.go and templates/index.html.

Authentication

Basically you can see the implementation for authentication from the following library documentation description:

Note that you will need to adjust some arguments based on the descriptions in passkey.dev and others. Also make sure that there are parameters that should be properly verified on the server side.

The complete authentication-related implementations in this repository can be seen in assertion.go and templates/login.html.

About

๐Ÿ”‘ Experimental implementation of Passkey Autofill in Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published