pub struct ElementsConfiguration {Show 19 fields
pub contact_url: Option<String>,
pub default_redirect_url: String,
pub error_ui_url: String,
pub hide_ory_branding: bool,
pub hide_registration_link: bool,
pub login_ui_url: String,
pub logo_dark_url: Option<String>,
pub logo_light_url: Option<String>,
pub name: String,
pub privacy_policy_url: Option<String>,
pub recovery_enabled: bool,
pub recovery_ui_url: String,
pub registration_enabled: bool,
pub registration_ui_url: String,
pub settings_ui_url: String,
pub show_last_used_method: bool,
pub terms_of_service_url: Option<String>,
pub verification_enabled: bool,
pub verification_ui_url: String,
}Expand description
ElementsConfiguration : ElementsConfiguration is the subset of a project’s configuration that Ory Elements consumes to customize its behavior and appearance. It mirrors the ProjectConfiguration type in @ory/elements-react and intentionally omits account-experience-only fields (stylesheet, locales, translations, favicons).
Fields§
§contact_url: Option<String>The URL to the project’s Contact page.
default_redirect_url: StringThe default redirect URL.
error_ui_url: StringThe URL for the error UI.
hide_ory_branding: boolWhether to hide the Ory branding badge.
hide_registration_link: boolWhether to hide the "Sign up" link on the login card footer.
login_ui_url: StringThe URL for the login UI.
logo_dark_url: Option<String>The URL for the dark logo.
logo_light_url: Option<String>The URL for the light logo on the auth card.
name: StringThe name of the project displayed on the auth card.
privacy_policy_url: Option<String>The URL to the project’s Privacy Policy page.
recovery_enabled: boolWhether recovery is enabled.
recovery_ui_url: StringThe URL for the recovery UI.
registration_enabled: boolWhether registration is enabled.
registration_ui_url: StringThe URL for the registration UI.
settings_ui_url: StringThe URL for the settings UI.
show_last_used_method: boolWhether to show a "Last used" badge on the social sign-in or SSO button a user chose last time on this device.
terms_of_service_url: Option<String>The URL to the project’s Terms of Service page.
verification_enabled: boolWhether verification is enabled.
verification_ui_url: StringThe URL for the verification UI.
Implementations§
Source§impl ElementsConfiguration
impl ElementsConfiguration
Sourcepub fn new(
default_redirect_url: String,
error_ui_url: String,
hide_ory_branding: bool,
hide_registration_link: bool,
login_ui_url: String,
name: String,
recovery_enabled: bool,
recovery_ui_url: String,
registration_enabled: bool,
registration_ui_url: String,
settings_ui_url: String,
show_last_used_method: bool,
verification_enabled: bool,
verification_ui_url: String,
) -> ElementsConfiguration
pub fn new( default_redirect_url: String, error_ui_url: String, hide_ory_branding: bool, hide_registration_link: bool, login_ui_url: String, name: String, recovery_enabled: bool, recovery_ui_url: String, registration_enabled: bool, registration_ui_url: String, settings_ui_url: String, show_last_used_method: bool, verification_enabled: bool, verification_ui_url: String, ) -> ElementsConfiguration
ElementsConfiguration is the subset of a project’s configuration that Ory Elements consumes to customize its behavior and appearance. It mirrors the ProjectConfiguration type in @ory/elements-react and intentionally omits account-experience-only fields (stylesheet, locales, translations, favicons).