Open cmdln opened 1 month ago
I resolved this problem with cargo add leptos-use
then adding lepto-use
to the hydrate
feature in my project.
I now can get login to work. After login, the redirect has the session state parameter making me wonder if I am missing something in my config. If I reload the page, the app acts as if I am not authenticated and the sign in url used in my unauthenticated fallback reverts to being empty.
I see you wrote an axum crate as well, I am going to try adding that since it seems like it could handle the missing piece, processing the redirect for the oidc callback.
I added the crate and tried to follow the README. I had to make some changes to the code to get
cargo leptos build
to work.I have a branch in my repo on my own forge that reproduces this error: https://git.cmdln.net/cmdln/watch/src/branch/add-keycloak.
I am using leptos 0.6 with nightly. I tried disabling nightly and still get the error. FWIW, I also tried leptos-oidc with this project and ran into different errors. I am exploring using Keycloak either way so don't mind that your crate has that specific dependency.