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

[SDK-4558] Add passkey metadata in authentication method and connections #296

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
34 changes: 34 additions & 0 deletions management/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,40 @@ type ConnectionOptions struct {

// Set to true to stop the "Forgot Password" being displayed on login pages
DisableSelfServiceChangePassword *bool `json:"disable_self_service_change_password,omitempty"`

// Options for enabling authentication methods.
AuthenticationMethods *AuthenticationMethods `json:"authentication_methods,omitempty"`

// Options for the passkey authentication method.
PasskeyOptions *PasskeyOptions `json:"passkey_options,omitempty"`
}

// AuthenticationMethods represents the options for enabling authentication methods for the connection.
type AuthenticationMethods struct {
Password *PasswordAuthenticationMethod `json:"password,omitempty"`
Passkey *PasskeyAuthenticationMethod `json:"passkey,omitempty"`
}

// PasswordAuthenticationMethod represents password authentication enablement for the connection.
type PasswordAuthenticationMethod struct {
// Determines whether passwords are enabled.
Enabled *bool `json:"enabled,omitempty"`
}

// PasskeyAuthenticationMethod represents passkey authentication enablement for the connection.
type PasskeyAuthenticationMethod struct {
// Determines whether passkeys are enabled.
Enabled *bool `json:"enabled,omitempty"`
}

// PasskeyOptions contains Passkey configuration for the connection.
type PasskeyOptions struct {
// Controls the UI used to challenge the user for their passkey. Should be one of "both", "autofill", or "button"
ewanharris marked this conversation as resolved.
Show resolved Hide resolved
ChallengeUI *string `json:"challenge_ui,omitempty"`
// Enables or disables progressive enrollment of passkeys for the connection.
ProgressiveEnrollmentEnabled *bool `json:"progressive_enrollment_enabled,omitempty"`
// Enables or disables enrollment prompt for local passkey when user authenticates using a cross-device passkey for the connection.
LocalEnrollmentEnabled *bool `json:"local_enrollment_enabled,omitempty"`
}

// ConnectionOptionsOkta is used to configure an Okta Workforce Connection.
Expand Down
124 changes: 124 additions & 0 deletions management/management.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading