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

Implement REST password provider support #3193

Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
52aecc4
implement rest password provider support
raphaelbadawi Sep 10, 2024
7b03e3e
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Sep 10, 2024
93a4638
commit missing query data for rest password provider support
raphaelbadawi Sep 10, 2024
bdf6859
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Sep 10, 2024
ef90a35
replicate instantly on synapse on login registration occurring with r…
raphaelbadawi Sep 11, 2024
0bb7c52
amend rust style
raphaelbadawi Sep 11, 2024
93fc3f1
remove native-tls dependency
raphaelbadawi Sep 11, 2024
b2b1d6d
normalize schema update
raphaelbadawi Sep 11, 2024
b174586
pass all unit tests
raphaelbadawi Sep 11, 2024
1c8db8b
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Sep 11, 2024
42604b1
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Sep 18, 2024
81d04b2
fix linter errors
raphaelbadawi Sep 18, 2024
f536e96
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Sep 25, 2024
fe19a27
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Oct 2, 2024
dded23b
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Oct 2, 2024
5226f80
fix fmt errors
raphaelbadawi Oct 2, 2024
7dafef0
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Oct 14, 2024
6fe85f1
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Oct 22, 2024
8f8f871
Merge branch 'main' into rbadawi/rest-password-provider-support
raphaelbadawi Oct 22, 2024
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
Prev Previous commit
Next Next commit
amend rust style
raphaelbadawi committed Sep 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 0bb7c523cdcb4fb131e6c8feaeeca6631dc06bef
11 changes: 6 additions & 5 deletions crates/storage/src/user/password.rs
Original file line number Diff line number Diff line change
@@ -56,10 +56,11 @@ pub trait UserPasswordRepository: Send + Sync {
upgraded_from: Option<&Password>,
) -> Result<Password, Self::Error>;

/// Update an existing password's hashed value (or insert it if it doesn't exist)
/// Update an existing password's hashed value (or insert it if it doesn't
/// exist)
///
/// This method updates the hashed password for a specific password identified by
/// its unique identifier.
/// This method updates the hashed password for a specific password
/// identified by its unique identifier.
///
/// Returns the updated [`Password`]
///
@@ -73,8 +74,8 @@ pub trait UserPasswordRepository: Send + Sync {
///
/// # Errors
///
/// Returns [`Self::Error`] if underlying repository fails or if the password
/// with the given `password_id` does not exist
/// Returns [`Self::Error`] if underlying repository fails or if the
/// password with the given `password_id` does not exist
async fn upsert(
&mut self,
rng: &mut (dyn RngCore + Send),