Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Add interfaces for data structures #13

Merged
merged 11 commits into from
May 30, 2019
Merged

Add interfaces for data structures #13

merged 11 commits into from
May 30, 2019

Conversation

Firehed
Copy link
Owner

@Firehed Firehed commented May 27, 2019

Work on #4

The request side still needs a bit of work, but this decouples the response handling of the server from specific formats and changes the focus to be the high-level procedure.

Most notably, the "what data should have been signed?" shifts into the response structures, which not only is critical for basic WebAuthn support (#2), but potentially other attestation formats.

This may be adjusted slightly before the 2.0 tag.

@coveralls
Copy link

coveralls commented May 27, 2019

Coverage Status

Coverage increased (+0.03%) to 99.291% when pulling fd92116 on interfaces into 37656ad on master.


public function getSignature(): string;

public function getSignedData(): string;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should, in principle, be identical across all formats, and liable to be adjusted or removed (this should always be authData | sha256(clientData), where authData is sha256(rpID) | userPresence | counter)

@Firehed Firehed merged commit e83f4dd into master May 30, 2019
@Firehed Firehed deleted the interfaces branch May 30, 2019 03:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants