-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: remove deprecated values (#233)
This removes all deprecated fields and functions from the library. BREAKING CHANGE: the following fields and backwards compatible elements have been removed; Icon field from the CredentialEntity struct, WebAuthnIcon function from the User interface, RPIcon/RPOrigin/Timeout fields from the Config struct, Transports field from the CredentialCreationResponse (new field has existed in the AuthenticatorAttestationResponse struct for quite some time which matches the spec). Closes #221
- Loading branch information
1 parent
482cf89
commit f63fbc1
Showing
7 changed files
with
12 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,6 @@ type CredentialEntity struct { | |
// intended only for display, i.e., aiding the user in determining the difference between user accounts with similar | ||
// displayNames. For example, "alexm", "[email protected]" or "+14255551234". | ||
Name string `json:"name"` | ||
|
||
// A serialized URL which resolves to an image associated with the entity. For example, | ||
// this could be a user’s avatar or a Relying Party's logo. This URL MUST be an a priori | ||
// authenticated URL. Authenticators MUST accept and store a 128-byte minimum length for | ||
// an icon member’s value. Authenticators MAY ignore an icon member’s value if its length | ||
// is greater than 128 bytes. The URL’s scheme MAY be "data" to avoid fetches of the URL, | ||
// at the cost of needing more storage. | ||
// | ||
// Deprecated: this has been removed from the specification recommendations. | ||
Icon string `json:"icon,omitempty"` | ||
} | ||
|
||
// The RelyingPartyEntity represents the PublicKeyCredentialRpEntity IDL and is used to supply additional Relying Party | ||
|
@@ -32,6 +22,7 @@ type CredentialEntity struct { | |
// Specification: §5.4.2. Relying Party Parameters for Credential Generation (https://www.w3.org/TR/webauthn/#dictionary-rp-credential-params) | ||
type RelyingPartyEntity struct { | ||
CredentialEntity | ||
|
||
// A unique identifier for the Relying Party entity, which sets the RP ID. | ||
ID string `json:"id"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters