Skip to content

Commit

Permalink
Merge pull request #472 from sebadob/build-test-nightly+clippy
Browse files Browse the repository at this point in the history
clippy + build nightly for auth provider testing
  • Loading branch information
sebadob authored Jun 14, 2024
2 parents ea24e7e + 8e98b7d commit 481c9b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rauthy-models/src/entity/auth_providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ impl AuthProviderIdClaims<'_> {
// check / update email
if Some(user.email.as_str()) != self.email.as_deref() {
old_email = Some(user.email);
user.email = self.email.to_string();
user.email = self.email.as_ref().unwrap().to_string();
}

// check other existing values and possibly update them
Expand Down Expand Up @@ -1370,7 +1370,7 @@ impl AuthProviderIdClaims<'_> {
} else {
// Create a new federated user
let new_user = User {
email: self.email.to_string(),
email: self.email.as_ref().unwrap().to_string(),
given_name: self.given_name().to_string(),
family_name: self.family_name().to_string(),
roles: should_be_rauthy_admin
Expand Down

0 comments on commit 481c9b3

Please sign in to comment.