Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add passkey properties to AuthenticationMethod #669

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/Auth0.ManagementApi/Models/Users/AuthenticationMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,36 @@ public class AuthenticationMethod : AuthenticationMethodBase

[JsonProperty("authentication_methods")]
public IList<AuthenticationMethodBase> AuthenticationMethods { get; set; }

/// <summary>
/// Applies to passkeys only.
/// The kind of device the credential is stored on as defined by backup eligibility.
/// "single_device" credentials cannot be backed up and synced to another device,
/// "multi_device" credentials can be backed up if enabled by the end-user.
/// </summary>
[JsonProperty("credential_device_type")]
public string CredentialDeviceType { get; set; } = null;

/// <summary>
/// Applies to passkeys only.
/// Whether the credential was backed up.
/// </summary>
[JsonProperty("credential_backed_up")]
public bool? CredentialBackedUp { get; set; } = null;

/// <summary>
/// Applies to passkeys only.
/// The ID of the user identity linked with the authentication method.
/// </summary>
[JsonProperty("identity_user_id")]
public string IdentityUserId { get; set; } = null;

/// <summary>
/// Applies to passkeys only.
/// The user-agent of the browser used to create the passkey.
/// </summary>
[JsonProperty("user_agent")]
public string UserAgent { get; set; } = null;
}
}