Fix compilation issue with leptos-keycloak

This commit is contained in:
Thomas Gideon 2024-09-29 09:57:52 -04:00
parent b990c545e6
commit 9bd87146fd
3 changed files with 5 additions and 4 deletions

1
Cargo.lock generated
View file

@ -3812,6 +3812,7 @@ dependencies = [
"http", "http",
"leptos", "leptos",
"leptos-keycloak-auth", "leptos-keycloak-auth",
"leptos-use",
"leptos_axum", "leptos_axum",
"leptos_meta", "leptos_meta",
"leptos_router", "leptos_router",

View file

@ -29,6 +29,7 @@ uuid = { version = "1.10.0", features = ["serde", "v4"] }
serde = { version = "1.0.209", features = ["derive"] } serde = { version = "1.0.209", features = ["derive"] }
tokio-stream = { version = "0.1.15", optional = true, features = ["full"] } tokio-stream = { version = "0.1.15", optional = true, features = ["full"] }
leptos-keycloak-auth = "0.2.0" leptos-keycloak-auth = "0.2.0"
leptos-use = "0.13.5"
[features] [features]
hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"] hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]
@ -39,6 +40,7 @@ ssr = [
"dep:tower-http", "dep:tower-http",
"dep:leptos_axum", "dep:leptos_axum",
"leptos/ssr", "leptos/ssr",
"leptos-use/ssr",
"leptos_meta/ssr", "leptos_meta/ssr",
"leptos_router/ssr", "leptos_router/ssr",
"dep:tracing", "dep:tracing",
@ -48,10 +50,6 @@ ssr = [
"dep:rust-embed", "dep:rust-embed",
"dep:tokio-stream" "dep:tokio-stream"
] ]
log = ["dep:log"]
env_logger = ["dep:env_logger"]
rust-embed = ["dep:rust-embed"]
tokio-stream = ["dep:tokio-stream"]
# Defines a size-optimized profile for the WASM bundle in release mode # Defines a size-optimized profile for the WASM bundle in release mode
[profile.wasm-release] [profile.wasm-release]

View file

@ -48,6 +48,8 @@ pub fn Login() -> impl IntoView {
view! { view! {
<h1>"Unauthenticated"</h1> <h1>"Unauthenticated"</h1>
<div>Is authenticated? {auth.is_authenticated.get()}</div>
<a href={ move || login_url.get() } target="self" disabled={ move || login_disabled.get() }> <a href={ move || login_url.get() } target="self" disabled={ move || login_disabled.get() }>
"Log in" "Log in"
</a> </a>