Replies: 2 comments 2 replies
-
I don't have the specific example you're looking for but the concept is relatively straight forward to explain: import (
"context"
"fmt"
"github.com/google/uuid"
"github.com/go-webauthn/webauthn/metadata"
)
var mds3 metadata.Provider
func ExampleLogic(aaguid string) (err error)
aaguid, err := uuid.Parse(rawAAGUID)
if err != nil {
return err
}
entry, err := mds3.GetEntry(context.Background(), aaguid)
if err != nil {
return err
}
fmt.Println(entry.MetadataStatement.TcDisplayPNGCharacteristics)
} |
Beta Was this translation helpful? Give feedback.
2 replies
-
Also here is a decent few examples of how it's intended to be used (attestation statement validation that's baked into the library, we just parse all of the data for the sake of people may choose to use it for other reasons): |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't see any information at all about the Metadata provider. I see that it downloads a blob from the Fido alliance, I found an example of caching that blob with the cache provider and that seems to work, but I can't find any examples of anyone using it. I'd be interested in getting some of the data out like TcDisplayPNGCharacteristics or the PassKeyAuthenticatorAAGUID structure (which looks more like a placeholder and not actually used by the metadata provider) but its not really clear how. Anyone have more information or examples?
Beta Was this translation helpful? Give feedback.
All reactions