Skip to content

Commit f06f2d5

Browse files
committed
App: Add oidc_key_stores hashmap
1 parent a598135 commit f06f2d5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use crate::storage::{Storage, StorageConfig};
1212
use axum::extract::{FromRef, FromRequestParts, State};
1313
use bon::Builder;
1414
use crates_io_github::GitHubClient;
15+
use crates_io_trustpub::keystore::OidcKeyStore;
1516
use deadpool_diesel::Runtime;
1617
use derive_more::Deref;
1718
use diesel_async::AsyncPgConnection;
@@ -42,6 +43,13 @@ pub struct App {
4243
pub github_oauth:
4344
BasicClient<EndpointSet, EndpointNotSet, EndpointNotSet, EndpointNotSet, EndpointSet>,
4445

46+
/// OIDC key stores for "Trusted Publishing"
47+
///
48+
/// This is a map of OIDC key stores, where the key is the issuer URL and
49+
/// the value is the OIDC key store instance.
50+
#[builder(default)]
51+
pub oidc_key_stores: HashMap<String, Box<dyn OidcKeyStore>>,
52+
4553
/// The server configuration
4654
pub config: Arc<config::Server>,
4755

0 commit comments

Comments
 (0)