Skip to content

Commit

Permalink
Merge pull request #296 from yoshidan/fix_database_admin_if
Browse files Browse the repository at this point in the history
Modify database admin with auth
  • Loading branch information
yoshidan authored Aug 12, 2024
2 parents 1e98ed4 + c87bc62 commit b124c4c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions spanner/src/admin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,9 @@ impl AdminClientConfig {
}

fn auth_config() -> google_cloud_auth::project::Config<'static> {
google_cloud_auth::project::Config {
audience: Some(crate::apiv1::conn_pool::AUDIENCE),
scopes: Some(&crate::apiv1::conn_pool::SCOPES),
sub: None,
..Default::default()
}
google_cloud_auth::project::Config::default()
.with_audience(crate::apiv1::conn_pool::AUDIENCE)
.with_scopes(&crate::apiv1::conn_pool::SCOPES)
}
}

Expand Down

0 comments on commit b124c4c

Please sign in to comment.