diff options
| author | rtkay123 <dev@kanjala.com> | 2026-02-10 23:38:02 +0200 |
|---|---|---|
| committer | rtkay123 <dev@kanjala.com> | 2026-02-10 23:38:02 +0200 |
| commit | 4f30128feb0715f05c103fec20aa6cba61e60984 (patch) | |
| tree | 8291d4accb1bdf98c9afb0dca9686aa34880c62f /lib/auth-service/src/client/mod.rs | |
| parent | 375da0e07f2b3e88c2f6db0e6f4565b3ad555b95 (diff) | |
| download | sellershut-4f30128feb0715f05c103fec20aa6cba61e60984.tar.bz2 sellershut-4f30128feb0715f05c103fec20aa6cba61e60984.zip | |
feat: db create account
Diffstat (limited to 'lib/auth-service/src/client/mod.rs')
| -rw-r--r-- | lib/auth-service/src/client/mod.rs | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/lib/auth-service/src/client/mod.rs b/lib/auth-service/src/client/mod.rs index 45260fb..e02672b 100644 --- a/lib/auth-service/src/client/mod.rs +++ b/lib/auth-service/src/client/mod.rs @@ -1,3 +1,6 @@ +pub(crate) mod http; +use std::ops::Deref; + use oauth2::{ AuthUrl, ClientId, ClientSecret, CsrfToken, EndpointNotSet, EndpointSet, RedirectUrl, Scope, TokenUrl, @@ -8,16 +11,24 @@ use url::Url; use crate::{AuthServiceError, Provider}; +type Inner = oauth2::basic::BasicClient< + EndpointSet, + EndpointNotSet, + EndpointNotSet, + EndpointNotSet, + EndpointSet, +>; + #[derive(Debug, Clone)] -pub struct OauthClient( - oauth2::basic::BasicClient< - EndpointSet, - EndpointNotSet, - EndpointNotSet, - EndpointNotSet, - EndpointSet, - >, -); +pub struct OauthClient(Inner); + +impl Deref for OauthClient { + type Target = Inner; + + fn deref(&self) -> &Self::Target { + &self.0 + } +} #[derive(Debug)] pub struct ClientConfig { |
