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

draft for sso_auth_session example #2117

Merged
merged 9 commits into from
Jan 15, 2024
Merged

Conversation

sjud
Copy link
Contributor

@sjud sjud commented Dec 18, 2023

Draft for an Example for SSO auth, based on conversation with Benwis & diversable. Please give all nits, thank you for your feedback.

@sjud sjud changed the title example draft example draft for sso_auth_session Dec 18, 2023
@sjud sjud changed the title example draft for sso_auth_session draft for sso_auth_session example Dec 18, 2023
@sjud
Copy link
Contributor Author

sjud commented Dec 18, 2023

halp

    Installed package `cargo-all-features v1.10.0` (executables `cargo-build-all-features`, `cargo-check-all-features`, `cargo-test-all-features`)
[cargo-make] INFO - Execute Command: "rustup" "run" "nightly" "cargo" "+nightly" "build-all-features"
error: no such command: `+nightly`

	Cargo does not handle `+toolchain` directives.
	Did you mean to invoke `cargo` through `rustup` instead?
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.
Error: Process completed with exit code 1.

wut i do wrong?

@sebadob
Copy link
Contributor

sebadob commented Dec 21, 2023

I have not looked into the code too much (short on time today), but I saw you refer to google SSO there.
You could, if you like, integrate Rauthy to have a fully self-contained example.
I do have created a minimal client as well from which you could just grab some code, if you like.

You could actually add Rauthy directly and push a pre-configured SQLite database to the example, which would even mean way less setup.

@sjud
Copy link
Contributor Author

sjud commented Dec 21, 2023

I have not looked into the code too much (short on time today), but I saw you refer to google SSO there. You could, if you like, integrate Rauthy to have a fully self-contained example. I do have created a minimal client as well from which you could just grab some code, if you like.

You could actually add Rauthy directly and push a pre-configured SQLite database to the example, which would even mean way less setup.

That looks like a cool project! I'll check that out. Thanks :)

@erlend-sh
Copy link

Prior art by @kerkmann might also be useful here: https://crates.io/crates/leptos_oidc

It’s already been tested with Rauthy as well.

@kerkmann
Copy link
Contributor

kerkmann commented Jan 7, 2024

Thanks @erlend-sh , thanks for mentioning it! ❤️

@sjud Yes, if you need some help or some knowledge sharing, just contact or ping me. :3

@benwis
Copy link
Contributor

benwis commented Jan 13, 2024

@sjud Do you think this is ready for merging?

@sjud
Copy link
Contributor Author

sjud commented Jan 14, 2024 via email

@benwis benwis merged commit 041b86e into leptos-rs:main Jan 15, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants