Skip to content

Commit

Permalink
Fix oauth-client
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan committed Nov 28, 2024
1 parent 04fd7dc commit fc3ef22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ keywords = ["atproto", "bluesky"]

[workspace.dependencies]
# Intra-workspace dependencies
atrium-api = { version = "0.24.8", path = "atrium-api", default-features = false }
atrium-api = { version = "0.24.8", path = "atrium-api" }
atrium-common = { version = "0.1.0", path = "atrium-common" }
atrium-identity = { version = "0.1.0", path = "atrium-oauth/identity" }
atrium-xrpc = { version = "0.12.0", path = "atrium-xrpc" }
Expand Down
2 changes: 1 addition & 1 deletion atrium-oauth/oauth-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = ["atproto", "bluesky", "oauth"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
atrium-api = { workspace = true, features = ["agent"] }
atrium-api.workspace = true
atrium-common.workspace = true
atrium-identity.workspace = true
atrium-xrpc.workspace = true
Expand Down
9 changes: 5 additions & 4 deletions atrium-oauth/oauth-client/src/oauth_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ where
pub client_metadata: OAuthClientMetadata,
keyset: Option<Keyset>,
resolver: Arc<OAuthResolver<T, D, H>>,
state_store: S,
state_store: S0,
session_getter: SessionGetter<S1>,
http_client: Arc<T>,
}

Expand All @@ -106,12 +107,11 @@ impl<S0, S1, D, H> OAuthClient<S0, S1, D, H, crate::http_client::default::Defaul
}

#[cfg(not(feature = "default-client"))]
impl<S, D, H, T> OAuthClient<S, D, H, T>
impl<S0, S1, D, H, T> OAuthClient<S0, S1, D, H, T>
where
S: StateStore,
T: HttpClient + Send + Sync + 'static,
{
pub fn new<M>(config: OAuthClientConfig<S, T, M, D, H>) -> Result<Self>
pub fn new<M>(config: OAuthClientConfig<S0, S1, T, M, D, H>) -> Result<Self>
where
M: TryIntoOAuthClientMetadata<Error = crate::atproto::Error>,
{
Expand All @@ -123,6 +123,7 @@ where
keyset,
resolver: Arc::new(OAuthResolver::new(config.resolver, http_client.clone())),
state_store: config.state_store,
session_getter: SessionGetter::new(config.session_store),
http_client,
})
}
Expand Down

0 comments on commit fc3ef22

Please sign in to comment.