mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
[PR #332] [MERGED] feat(passkeys): name new passkeys based on agguids #873
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/332
Author: @kmendell
Created: 3/14/2025
Status: ✅ Merged
Merged: 3/20/2025
Merged by: @stonith404
Base:
main← Head:feat/passkey-auth-info📝 Commits (10+)
359079cfeat(passkeys): name new passkeys based on agguids2f4aa1aadd fido mds cache in addition to manual map for aaguids entries are not in the MDScca1fdcremove userAgent commented code6fa205cstore aaguids.json locally in container, update once a week via github actionsc779784remove un-needed log, and userAgent argumentsb6af4b9Merge branch 'main' into feat/passkey-auth-info39aaa78add test file35563edadd minified to jq commandfe45d8bci/cd: remove install jq from workflow69451d2use hex.EncodeToString instead of fmt.Sprintf📊 Changes
6 files changed (+240 additions, -2 deletions)
View changed files
➕
.github/workflows/update-aaguids.yml(+34 -0)📝
backend/internal/service/webauthn_service.go(+14 -1)➕
backend/internal/utils/aaguid_util.go(+64 -0)➕
backend/internal/utils/aaguid_util_test.go(+126 -0)➕
backend/resources/aaguids.json(+1 -0)📝
backend/resources/files.go(+1 -1)📄 Description
This is a QoL feature, but instead of just "New Passkey" always being the default name, this PR introduces a AAGUID list that will name the passkey according to the aaguid for the password manager, or platform authenticator.
I forked the list i found: https://github.com/kmendell/passkey-authenticator-aaguids/tree/main, there may be a better way to implement the list, but i didn't think we would want to load that big of a json file all at once, so i just picked some common ones.
Another more official list would be the FIDO MDS https://fidoalliance.org/metadata/
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.